how to pass custom parameters to a locust test class?

前端 未结 2 1524
深忆病人
深忆病人 2021-02-18 14:53

I\'m currently passing custom parameters to my load test using environment variables. For example, my test class looks like this:

from locust import HttpLocust,         


        
2条回答
  •  情话喂你
    2021-02-18 15:22

    It is not recommended to run locust in command line if you want to test in high concurrency. As in --no-web mode, you can only use one CPU core, so that you can not make full use of your test machine.

    Back to your question, there is not another way to pass custom parameters to locust in command line.

提交回复
热议问题