You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2005/09/01 01:09:17 UTC

Re: Foreach loops with groups

Yes, the foreach loop won't start if the first variable is missing.

What do your Regex and ForEach test elements look like now?

S.
On 31/08/05, Friedl, Justin <JF...@cdgnow.com> wrote:
> Thanks. I tried this.  Now it won't even go into the foreach loop. My guess
> is it's because the foreach input var doesn't match the regex reference
> name.
> 
> 
> 
> 
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, August 31, 2005 10:21 AM
> To: JMeter Users List
> Subject: Re: Foreach loops with groups
> 
> 
> Try
> 
> ForEach:
> Input:    RegexVar_g
> Output: outputVar
> Add '-':  unchecked
> 
> and refer to
> 
> ${outputVar}
> 
> S.
> On 31/08/05, Friedl, Justin <JF...@cdgnow.com> wrote:
> > I have a regular expression that returns three groups:
> > .*sendRequest\((\d+),(\d+), '(\d+-\d+).* I then have a foreach
> > controller in which I map input var "inputVar" to output var
> > "outputVar" with the "add '_' before number" checked.
> >
> > How can I access variables in a sample controller within the foreach
> > loop? I've tried:
> > ${outputVar_g1},${outputVar_1},${outputVar1},${outputVarg1},${outputVa
> > r_g1_1
> > },${outputVar_1_g1}
> > Nothing seems to work.   The result view tree shows the sample is being
> > called but the params output the literals and don't seem to replace the
> > variables with values.
> >
> > I'm using jmeter 2.1 and I see in the changes that "ForEach Controller
> > can now loop through sets of groups" was fixed in 2.0.3
> >
> > I'm sure I'm missing something simple.
> >
> > Thanks in advance,
> > Justin
> >
> >
> >
> 
> ---------------------------------------------------------------------
> 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