【发布时间】:2021-03-11 08:28:05
【问题描述】:
如何在没有UI的情况下生成locust html文件?
locustfile = /mnt/locust/locustfile.py
headless = true
host = https://uat.xxx.biz
users = 1000
spawn-rate = 1
run-time = 25m
expect-workers=4
master
html=basic.html
我有错误
master_1 |蝗虫:错误:无法识别的参数:--html=basic.html
编辑
蝗虫 1.4.1
docker run -p 127.0.0.1:8089:8089 -v $PWD:/mnt/locust tnt_locust:1.0.0 -f /mnt/locust/locustfile.py --headless -u 10 -r 10 --run-time 15s --html=basicNew.html
与上述相同的错误。
【问题讨论】:
-
你如何运行你的蝗虫?你试过吗?
locust -f locustfile.py --headless -u 10 -r 10 --run-time 15s --html=basicNew.html -
是否应该在 expected-workers=4 行之后出现 'master' 行?
标签: python performance-testing locust