Where i have to pass the split function in JMeter? I want to split the string such as V_12 I want the V for the if controller so how can I do this I tried to like this but it is not splitting the strin开发者_高级运维g
${__split(v_12,test_2,_)}
See :
- http://jmeter.apache.org/usermanual/functions.html
You would use ${__split(v_12, varName, _)}
Then access $varName_1 which would contain v
Make sure you're following proper syntax for variable names, etc. See the documentation of the split
function.
Also, you'd want to place it before the If controller as part of a beanshell script, OR as the logic for the IF controller.
精彩评论