蝗虫不支持'exitcodeorror'参数?

2024-06-23 20:11:21 发布

您现在位置:Python中文网/ 问答频道 /正文

有人能帮我判断一下我做错了什么吗?你知道吗

python -m locust.main -f tt/tt_test.py -H http://thuis:8088/public --no-web --clients=3 --hatch-rate=1 --run-time=1m --csv=social_soak --exit-code-on-error=0

获取以下错误:

Usage: locust [options] [LocustClass [LocustClass2 ... ]]

main.py: error: no such option: --exit-code-on-error

显然,--exit-code-on-error是受支持的,如下所示:https://github.com/locustio/locust/blob/610a87f433900d8baae51709c41e3b147a53bc97/locust/main.py#L286

如果去掉此选项,则运行以下命令:

python -m locust.main -f tt/tt_test.py -H http://thuis:8088/public --no-web --clients=3 --hatch-rate=1 --run-time=1m --csv=social_soak

但是我真的很想使用--exit-code-on-error选项。你知道怎么做吗?提前谢谢。你知道吗


Tags: nopytestwebhttpmainonexit

热门问题