You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Aliaksandr Yermakovich <Al...@epam.com> on 2006/02/16 16:54:35 UTC
increment in While Controller
Hi All,
Could somebody tell me, how too create and use a variable and increase it each
loop in While Controller? Like:
while ( foo=="true")
i++;
);
I've got a number of pages, (like question_1.aspx, question_2.aspx and so on)
which have a number at the end. Number gets increased and can dynamically
change (sometimes there are 11 pages, and another time 18). I'd like to go
through them in while cycle, but don't' know how to get this number increased
each loop.
Thanks.
Best Regards,
Alex
Re: increment in While Controller
Posted by sebb <se...@gmail.com>.
On 16/02/06, Richard Gaywood <ri...@gmail.com> wrote:
> On 2/16/06, Aliaksandr Yermakovich <Al...@epam.com> wrote:
> >
> > Could somebody tell me, how too create and use a variable and increase it
> > each
> > loop in While Controller? Like:
> >
> > while ( foo=="true")
BTW, this is not a valid expression for the While Controller - see the docs...
> > i++;
> > );
>
>
>
> Look at the Counter pre-processor. Try adding it to a While loop.
>
>
Or why not use a Loop Controller with a variable count?
Loop N times
- Counter 1 ... anything > N
- Sampler
S
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: increment in While Controller
Posted by Richard Gaywood <ri...@gmail.com>.
On 2/16/06, Aliaksandr Yermakovich <Al...@epam.com> wrote:
>
> Could somebody tell me, how too create and use a variable and increase it
> each
> loop in While Controller? Like:
>
> while ( foo=="true")
> i++;
> );
Look at the Counter pre-processor. Try adding it to a While loop.