小编Vov*_*ova的帖子

如何在没有 UI 的情况下生成 locust html 文件?

如何在没有 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
Run Code Online (Sandbox Code Playgroud)

我有错误

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
Run Code Online (Sandbox Code Playgroud)

和上面一样的错误。

python performance-testing locust

1
推荐指数
1
解决办法
363
查看次数

标签 统计

locust ×1

performance-testing ×1

python ×1