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 2008/05/12 12:48:46 UTC
Re: counter reset for any loop Controller and CSV Content
Are you trying to ensure that the counter always starts from 1 each
time the While block is entered?
If so, then that is not possible using the Counter Pre-Processor.
You'll need to use a variable and do the counting using the __intSum
(or __longSum) function.
On 12/05/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> could any one help me?
> fulvio
>
> Fulvio Guglielmelli <fu...@yahoo.it> ha scritto: Hi
>
> i have this situation:
> i need the Counter must be reset for any loop Controller when exit from while and read a new line..
>
> Loop Controller
> + CSV Content (any line has different total)
> + While Condition (total)
> + Java Request
> + Counter (1, 10 , NO MAXIMUM)
>
> now the counter continue to be increment when exit from while
> Regards
>
>
> ---------------------------------
> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
>
>
> ---------------------------------
> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: counter reset for any loop Controller and CSV Content
Posted by sebb <se...@gmail.com>.
On 13/05/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> could you please tell me which is the property NAME of the test element ?
> i would like try to manage by beanshell.
> fulvio
There is no such thing.
As far as I can tell it's not possible to access the Counter object
from Beanshell.
But if you really want to try, then you will need check the JMeter source.
>
> sebb <se...@gmail.com> ha scritto:
>
> On 13/05/2008, Fulvio Guglielmelli wrote:
> > there is not the possibilities to set the counter value or counter maximum dynamicly, for example using beanshell.
> > vars.put("limit","10000");
> > if i can set the variable value by beanshell, i can manage my situation
> > regards
>
> No.
> The limit is not stored as a variable. It's stored in a property of
> the test element, and I don't think there's any way to get to the
> Counter object.
>
> It may be possible to use a variable as the limit, as the counter
> currently fetches the limit each time. However this could perhaps
> change in a future release of JMeter.
>
>
> > sebb ha scritto:
>
> >
> > Are you trying to ensure that the counter always starts from 1 each
> > time the While block is entered?
> >
> > If so, then that is not possible using the Counter Pre-Processor.
> >
> > You'll need to use a variable and do the counting using the __intSum
> > (or __longSum) function.
> >
> >
> >
> > On 12/05/2008, Fulvio Guglielmelli wrote:
> > > could any one help me?
> > > fulvio
> > >
> >
> > > Fulvio Guglielmelli ha scritto: Hi
> >
> > >
> > > i have this situation:
> > > i need the Counter must be reset for any loop Controller when exit from while and read a new line..
> > >
> > > Loop Controller
> > > + CSV Content (any line has different total)
> > > + While Condition (total)
> > > + Java Request
> > > + Counter (1, 10 , NO MAXIMUM)
> > >
> > > now the counter continue to be increment when exit from while
> > > Regards
> > >
> > >
> > > ---------------------------------
> > > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
> > >
> > >
> > > ---------------------------------
> > > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------
> > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
>
> Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: counter reset for any loop Controller and CSV Content
Posted by Fulvio Guglielmelli <fu...@yahoo.it>.
could you please tell me which is the property NAME of the test element ?
i would like try to manage by beanshell.
fulvio
sebb <se...@gmail.com> ha scritto:
On 13/05/2008, Fulvio Guglielmelli wrote:
> there is not the possibilities to set the counter value or counter maximum dynamicly, for example using beanshell.
> vars.put("limit","10000");
> if i can set the variable value by beanshell, i can manage my situation
> regards
No.
The limit is not stored as a variable. It's stored in a property of
the test element, and I don't think there's any way to get to the
Counter object.
It may be possible to use a variable as the limit, as the counter
currently fetches the limit each time. However this could perhaps
change in a future release of JMeter.
> sebb ha scritto:
>
> Are you trying to ensure that the counter always starts from 1 each
> time the While block is entered?
>
> If so, then that is not possible using the Counter Pre-Processor.
>
> You'll need to use a variable and do the counting using the __intSum
> (or __longSum) function.
>
>
>
> On 12/05/2008, Fulvio Guglielmelli wrote:
> > could any one help me?
> > fulvio
> >
>
> > Fulvio Guglielmelli ha scritto: Hi
>
> >
> > i have this situation:
> > i need the Counter must be reset for any loop Controller when exit from while and read a new line..
> >
> > Loop Controller
> > + CSV Content (any line has different total)
> > + While Condition (total)
> > + Java Request
> > + Counter (1, 10 , NO MAXIMUM)
> >
> > now the counter continue to be increment when exit from while
> > Regards
> >
> >
> > ---------------------------------
> > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
> >
> >
> > ---------------------------------
> > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------
> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
Re: counter reset for any loop Controller and CSV Content
Posted by sebb <se...@gmail.com>.
On 13/05/2008, Fulvio Guglielmelli <fu...@yahoo.it> wrote:
> there is not the possibilities to set the counter value or counter maximum dynamicly, for example using beanshell.
> vars.put("limit","10000");
> if i can set the variable value by beanshell, i can manage my situation
> regards
No.
The limit is not stored as a variable. It's stored in a property of
the test element, and I don't think there's any way to get to the
Counter object.
It may be possible to use a variable as the limit, as the counter
currently fetches the limit each time. However this could perhaps
change in a future release of JMeter.
> sebb <se...@gmail.com> ha scritto:
>
> Are you trying to ensure that the counter always starts from 1 each
> time the While block is entered?
>
> If so, then that is not possible using the Counter Pre-Processor.
>
> You'll need to use a variable and do the counting using the __intSum
> (or __longSum) function.
>
>
>
> On 12/05/2008, Fulvio Guglielmelli wrote:
> > could any one help me?
> > fulvio
> >
>
> > Fulvio Guglielmelli ha scritto: Hi
>
> >
> > i have this situation:
> > i need the Counter must be reset for any loop Controller when exit from while and read a new line..
> >
> > Loop Controller
> > + CSV Content (any line has different total)
> > + While Condition (total)
> > + Java Request
> > + Counter (1, 10 , NO MAXIMUM)
> >
> > now the counter continue to be increment when exit from while
> > Regards
> >
> >
> > ---------------------------------
> > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
> >
> >
> > ---------------------------------
> > Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------
> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: counter reset for any loop Controller and CSV Content
Posted by Fulvio Guglielmelli <fu...@yahoo.it>.
there is not the possibilities to set the counter value or counter maximum dynamicly, for example using beanshell.
vars.put("limit","10000");
if i can set the variable value by beanshell, i can manage my situation
regards
sebb <se...@gmail.com> ha scritto:
Are you trying to ensure that the counter always starts from 1 each
time the While block is entered?
If so, then that is not possible using the Counter Pre-Processor.
You'll need to use a variable and do the counting using the __intSum
(or __longSum) function.
On 12/05/2008, Fulvio Guglielmelli wrote:
> could any one help me?
> fulvio
>
> Fulvio Guglielmelli ha scritto: Hi
>
> i have this situation:
> i need the Counter must be reset for any loop Controller when exit from while and read a new line..
>
> Loop Controller
> + CSV Content (any line has different total)
> + While Condition (total)
> + Java Request
> + Counter (1, 10 , NO MAXIMUM)
>
> now the counter continue to be increment when exit from while
> Regards
>
>
> ---------------------------------
> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
>
>
> ---------------------------------
> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------
Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!