-
Notifications
You must be signed in to change notification settings - Fork 1
/
locustfile.py
47 lines (42 loc) · 1004 Bytes
/
locustfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
from locust import HttpLocust
# from locustfiles.common.dsslocust import DSSLocust
# from locustfiles import UploadTaskSet, NotifyTaskSet, SearchTaskSet, DownloadTaskSet, CheckoutTaskSet
from locustfiles import SearchTaskSet
HOST = os.getenv('TARGET_URL', "http://localhost")
# class UploadUser(DSSLocust):
# min_wait = 1000
# max_wait = 3000
# task_set = UploadTaskSet
# weight = 1
# host = HOST
#
#
# class CheckoutUser(DSSLocust):
# min_wait = 3000
# max_wait = 3000
# task_set = CheckoutTaskSet
# weight = 3
# host = HOST
#
#
# class DownloadUser(DSSLocust):
# min_wait = 500
# max_wait = 1000
# task_set = DownloadTaskSet
# weight = 3
# host = HOST
#
#
# class NotifiedUser(DSSLocust):
# min_wait = 1000
# max_wait = 3000
# task_set = NotifyTaskSet
# weight = 2
# host = HOST
class SearchUser(HttpLocust):
min_wait = 250
max_wait = 500
task_set = SearchTaskSet
weight = 4
host = HOST