You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
374 B
16 lines
374 B
from locust import HttpUser, TaskSet, task
|
|
|
|
|
|
class RegistredUser(HttpUser):
|
|
min_wait = 5000
|
|
max_wait = 9000
|
|
|
|
@task
|
|
class RandomStresstest(TaskSet):
|
|
@task(2)
|
|
def list(self):
|
|
self.client.get('/random-list')
|
|
|
|
@task(1)
|
|
def insert_random_value(self):
|
|
self.client.put('/random', {'lower': 0, 'upper': 10000})
|