'Split function in jmeter
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 string
${__split(v_12,test_2,_)}
Solution 1:[1]
See :
You would use ${__split(v_12, varName, _)}
Then access $varName_1 which would contain v
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | UBIK LOAD PACK |
| Solution 2 | Gilles 'SO- stop being evil' |
