Hi
I manage using PP UP: CounterName =
${__javaScript(parseInt('${CounterName}')+1)}
But if CounterName is defined in previous PP UP the increment happens
only once
FYI
Ori Marko
Quality Assurance Engineer
Praxell Inc.
Mobile: 0524-455-177
Office:03-6126060 Ext 612
Fax: 03-6126066
http://www.praxell.com
-----Original Message-----
From: Ori Marco [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 25, 2007 10:20 AM
To: JMeter Users List
Subject: RE: Problem with reseting variables
Hi
Can you give generic solution for using counter in a loop?
e.g. calculating factorial
ThreadGroup
Sum=1
+Loop
++Sum = Sum*LoopCounter
+Submit request with Sum
Thanks
Ori Marko
Quality Assurance Engineer
Praxell Inc.
http://www.praxell.com
-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 25, 2007 5:33 PM
To: JMeter Users List
Subject: Re: Problem with reseting variables
It's difficult to say what the problem is without knowing the actual
arrangement of the relevant items in the test plan.
Please describe the plan, e.g.'
ThreadGroup
+ UP NUM=1
+ WC cond
etc
[Don't send the JMX file - it makes reading postings difficult, wastes
space and tends to get mangled.]
If you can provide a sample failing JMX file, then I suggest you
create a Bugzilla issue and attach it to that. Or post it on a public
web-server and send the link.
On 25/10/2007, Ori Marco <[EMAIL PROTECTED]> wrote:
> In another User Parameters
>
> Ori Marko
> Quality Assurance Engineer
> Praxell Inc.
> Mobile: 0524-455-177
> Office:03-6126060 Ext 612
> Fax: 03-6126066
> http://www.praxell.com
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 25, 2007 5:23 PM
> To: JMeter Users List
> Subject: Re: Problem with reseting variables
>
> On 25/10/2007, Ori Marco <[EMAIL PROTECTED]> wrote:
> > 1. While Controller
> > 2. is used as a counter by ${__intSum(${INIT},1,INIT)} every
iteration
> > inside the loop at the beginning.
>
> But in which test element is the function?
>
> > 3. I don't find in History of Changes that while controller has
> changed
>
> Sorry - it did change, but that was before 2.2.
>
> 2.3 is still recommended over 2.2.
>
> > Ori Marko
> > Quality Assurance Engineer
> > Praxell Inc.
> > http://www.praxell.com
> >
> > -----Original Message-----
> > From: sebb [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 25, 2007 4:37 PM
> > To: JMeter Users List
> > Subject: Re: Problem with reseting variables
> >
> > In 25/10/2007, Ori Marco <[EMAIL PROTECTED]> wrote:
> > > Hi
> > >
> > >
> > >
> > > I have few loop controller with condition as
> > > ${__javaScript(${NUM}<=${ParamsNumber},dummy)}
> >
> > Loop controllers don't have conditions - do you mean the While
> > Controller?
> >
> > > NUM is used as a counter by ${__intSum(${INIT},1,INIT)} every
> > iteration.
> >
> > Where is this done?
> >
> > > Before the second I have User Parameters with row: NUM 1
> > > (resetting NUM variable)
> > >
> > > In the second loop NUM remain as ParamsNumber+1 as UP was ignored
> > >
> > > (Update Once Per Iteration is checked )
> > >
> > > I'm using Jmeter 2.2
> >
> > Try JMeter 2.3; the While Controller has been updated.
> >
> > >
> > >
> > >
> > >
> > > Ori Marko
> > > Quality Assurance Engineer
> > > Praxell Inc.
> > > http://www.praxell.com <http://www.praxell.com>
> > >
> > >
> >
> >
---------------------------------------------------------------------
> > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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]
>
>
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]