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.
精彩评论