Thanks, sebb.
Random index seem to work. How about If I want to extract all the group value that I got from reg extractor within one loop.
I tried using foreachController
and then ${returnVar_g1} ${returnVar_g2} doesnt seem to work. Is it because it is not currently supported? Or maybe I am doing it wrong? please look at my testcase.
Dave
sebb <[EMAIL PROTECTED]> wrote:
sebb <[EMAIL PROTECTED]> wrote:
Try the Regex Extractor with:
RE:
Template: $1$$2$
Index: -1
This will extract both parts as a single variable.
You can also use refName_n_gm where
n=1,2,3 (match number)
m=0,1,2 = group number. 0 = whole text matched by RE
Seems to me this does what you want.
e.g refName_2_g2=item3 in this case.
S.
On 4/27/05, Dave Maung <[EMAIL PROTECTED]>wrote:
> I am trying to extract the following xml using regular _expression_
>
>
>
>
>
>
> I would like to extract "index" and "name" value within the same loop. I am not sure for each controller will be able to do it. It seem like you can only access one value index in one loop.
>
> ex in java code:
> for(int i=0; i< size(); i++) {
> do ${index[0]} , ${name[0]}
> }
>
> I am also wondering is JMeter variable support array l${index[0]} variable. this would be make it very easy to loop and accessing index value randomly.
>
> Just a suggestion to extend the functionality of JMeter variable.
>
> Dave
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

