开发者

JMeter Testing Configuration

I am passing a variable using the command line to the Jmeter. How can I read this variable and set it to the enabled attribute. Is there a way to do it. Based on the value passed from the command line (either true or false) i want开发者_如何学Python to enable or disable the test.

I am using Thanks


You can add an "If controller" to the begining of your "Thread group", set its condition to ${__P(MY_TEST_CASE_ENABLED)} (where MY_TEST_CASE_ENABLED is passed to JMeter process using -D option) and inside that controller add "Test Action" sampler with "Stop now" action.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜