Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split function in jmeter

Tags:

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,_)}
like image 826
rajive Avatar asked Apr 25 '26 06:04

rajive


2 Answers

See :

  • http://jmeter.apache.org/usermanual/functions.html

You would use ${__split(v_12, varName, _)}

Then access $varName_1 which would contain v

like image 93
UBIK LOAD PACK Avatar answered Apr 27 '26 18:04

UBIK LOAD PACK


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.

like image 39
BlackGaff Avatar answered Apr 27 '26 17:04

BlackGaff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!