-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlocustfile.py
41 lines (29 loc) · 942 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
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from locust import between
from locustodoorpc.client import OdooRPCLocust
from tasks import account, crm, project, purchase, sale, stock
class AccountUser(OdooRPCLocust):
wait_time = between(1, 15)
weight = 10
tasks = [account.AccountTaskSet]
class CRMUser(OdooRPCLocust):
wait_time = between(1, 15)
weight = 10
tasks = [crm.CRMTaskSet]
class ProjectUser(OdooRPCLocust):
wait_time = between(1, 15)
weight = 10
tasks = [project.ProjectTaskSet]
class PurchaseUser(OdooRPCLocust):
wait_time = between(1, 15)
weight = 10
tasks = [purchase.PurchaseTaskSet]
class SaleUser(OdooRPCLocust):
wait_time = between(1, 15)
weight = 10
tasks = [sale.SaleTaskSet]
class StockUser(OdooRPCLocust):
wait_time = between(1, 15)
weight = 10
tasks = [stock.StockTaskSet]