0.14.11
This commit is contained in:
parent
25848c5cd3
commit
f5af110ab2
18 changed files with 374 additions and 228 deletions
27
tests/locust/locustfile.py
Normal file
27
tests/locust/locustfile.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"""
|
||||
vue-poc performance locust script
|
||||
@author Andy Bunce
|
||||
@since 2017-08-03
|
||||
"""
|
||||
from locust import HttpLocust, TaskSet, task
|
||||
auth=("ArcadianUser","**password**")
|
||||
user={"username":"admin", "password":"uksapl"}
|
||||
class UserBehavior(TaskSet):
|
||||
|
||||
|
||||
|
||||
# images
|
||||
@task(2)
|
||||
def images(self):
|
||||
self.client.get("/vue-poc/api/images/list")
|
||||
|
||||
@task(1)
|
||||
def keyword(self):
|
||||
self.client.get("/vue-poc/api/images/list?page=0&from&keyword=albania", name="keyword=albania")
|
||||
|
||||
|
||||
class WebsiteUser(HttpLocust):
|
||||
host = "http://localhost:8984"
|
||||
task_set = UserBehavior
|
||||
min_wait = 5000
|
||||
max_wait = 10000
|
||||
BIN
tests/locust/locustfile.pyc
Normal file
BIN
tests/locust/locustfile.pyc
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue