variables - How to access regex groups using For Each Controller in JMeter -
is possible access different groups using output variable of foreach controller?
for instance i'm using regular expression extractor extracts 2 elements , both of them have 2 groups.
using debug sampler i'm seeing values extracted correctly:
treenodes_1_g1=id1 treenodes_1_g2=first title treenodes_2_g1=id2 treenodes_2_g2=second title next i'm iterating results using foreach controller with:
input variable: treenodes output variable name: node add "_" before number: checked and use ${node_${c}_g2} titles in name field in view results tree , ${node_${c}_g1} in other place, ${c} counter variable according http://jmeter.apache.org/usermanual/component_reference.html#foreach_controller.
values not resolved instance see ${node_${c}_g2} ${node_${c}_g2} text instead of first title.
what missing here?
in order evaluate multiple variables need use __v function.
${__v(node_${c})} ${__v(node_${c}_g2)}
Comments
Post a Comment