admin管理员组文章数量:1435859
I'm using locust to do some load testing on our backend service and I have three classes defined in three different .py files
then I'm trying to run locust using this command line
==> locust -f locustfiles/locustfile.py --headless --config ../loadTestConfig.yml
locustfile.py
from myClass1 import MyClass1
from myClass2 import MyClass2
from myClass3 import MyClass3
loadTestConfig.yml
user_classes:
- class: MyClass1
users: 8
spawn_rate: 8
- class: MyClass2
users: 2
spawn_rate: 2
- class: MyClass3
users: 36
spawn_rate: 36
run_time: 2m
host: "https://myhost"
this would give me the error when lunched that it's not recongizing the option class
from the yml file.
TestConfig.yml
locust: error: ambiguous option: --=class: MyClass3 could match --locustfile, --config, --help, --version, --worker, --master, --master-host, --master-port
How could I specify per class (file) the number of user and spwan rate?? Trying to buld my load scenario.
本文标签: python locust config file for multiple filesclassesStack Overflow
版权声明:本文标题:python locust config file for multiple filesclasses - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745675255a2669812.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论