Try the Regex Extractor with:

RE:  <list index="(.+?)" name="(.+?)"/>
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
> <root>
> <list idex="1" name="item2"/>
> <list idex="1" name="item3"/>
> 
> </root>
> 
> 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]

Reply via email to