有没有人可以帮我找出我用--exit-code-on-error
做错了什么?
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
选项。你知道怎么做吗?提前谢谢。
发布于 2019-12-12 05:52:28
请确保您使用的是最新版本的locust (目前为0.13.2)。
可能-exit-code-on-error功能还没有发布,或者你没有最新的发布版本。
https://stackoverflow.com/questions/57930793
复制相似问题