开发者

JMeter Testing Configuration

开发者 https://www.devze.com 2023-03-30 06:06 出处:网络
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

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

精彩评论

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