Change the thread count of test plan in JMeter, at run time

前端 未结 7 512
名媛妹妹
名媛妹妹 2020-12-10 14:09

I want to change the number of threads for a JMeter test plan at runtime.

I have Googled my problem and found a proposed solution to use JMeter plugins. But in this

7条回答
  •  我在风中等你
    2020-12-10 15:06

    By enabling the BeanShell server you can vary properties at runtime. Just enable it and telnet on port 9001 (warning: not secure!) Based on a test I did, unfortnately, it appears that the thread count it's not applied at runtime. However you can still manipulate the load of the test by other means, for example apply a costant throughput timer parametrized with a property named "throughput" and vary it at runtime like this:

    setprop("throughput","2000");
    

    It's well explained in the guide.

提交回复
热议问题