You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by matthew sporleder <ms...@gmail.com> on 2008/01/18 04:57:01 UTC

(multiple) (matches) regular expression and foreach

I'm trying to send multiple matches through a foreach, but I can't
seem to figure out what $var_'s are getting set.

My template is $1$$2$, refname is inVar, and match number is -2.
In my foreach I have input as inVar and output as matchVar.

I was expecting matchVar_1 and matchVar_2, but they don't seem to
work.  Any ideas?

Thanks,
Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: (multiple) (matches) regular expression and foreach

Posted by sebb <se...@gmail.com>.
On 18/01/2008, matthew sporleder <ms...@gmail.com> wrote:
> I'm trying to send multiple matches through a foreach, but I can't
> seem to figure out what $var_'s are getting set.
>
> My template is $1$$2$, refname is inVar, and match number is -2.

> In my foreach I have input as inVar and output as matchVar.
>
> I was expecting matchVar_1 and matchVar_2, but they don't seem to
> work.  Any ideas?

Perhaps the RE did not match.

If you are using JMeter 2.3.1, you can use the new Debug Sampler to
show the values of all variables - these appear in the result, so can
be viewed in the Tree View Listener.

Otherwise, just use the Java Sampler to put the values in the sample
result or label etc.

> Thanks,
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org