You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by waseemfa <fa...@gmail.com> on 2013/04/23 07:09:21 UTC

Re: Can any one suggest How to increment a variable...in jmeter

Just add a BSF sampler and declare the value.  Keep incrementing the value by
1 everytime and use vars.put("VariableName",value) in it so that it can be
used across the thread group



--
View this message in context: http://jmeter.512774.n5.nabble.com/Can-any-one-suggest-How-to-increment-a-variable-in-jmeter-tp5716766p5716773.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Can any one suggest How to increment a variable...in jmeter

Posted by Flavio Cysne <fl...@gmail.com>.
intSum or longSum functions may help with it.

http://jmeter.apache.org/usermanual/functions.html#__intSum
http://jmeter.apache.org/usermanual/functions.html#__longSum


2013/4/23 Philippe Mouawad <p....@ubik-ingenierie.com>

> You also have option to use Counter Element:
> - http://jmeter.apache.org/usermanual/component_reference.html#Counter
>
> Regards
>
> On Tuesday, April 23, 2013, waseemfa wrote:
>
> > Just add a BSF sampler and declare the value.  Keep incrementing the
> value
> > by
> > 1 everytime and use vars.put("VariableName",value) in it so that it can
> be
> > used across the thread group
> >
> >
> >
> > --
> > View this message in context:
> >
> http://jmeter.512774.n5.nabble.com/Can-any-one-suggest-How-to-increment-a-variable-in-jmeter-tp5716766p5716773.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org<javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> >
> >
>
> --
> Cordialement.
> Philippe Mouawad.
> Ubik-Ingénierie
>
> UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/>
>
> UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>
>

Re: Can any one suggest How to increment a variable...in jmeter

Posted by Philippe Mouawad <p....@ubik-ingenierie.com>.
You also have option to use Counter Element:
- http://jmeter.apache.org/usermanual/component_reference.html#Counter

Regards

On Tuesday, April 23, 2013, waseemfa wrote:

> Just add a BSF sampler and declare the value.  Keep incrementing the value
> by
> 1 everytime and use vars.put("VariableName",value) in it so that it can be
> used across the thread group
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Can-any-one-suggest-How-to-increment-a-variable-in-jmeter-tp5716766p5716773.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org<javascript:;>
>
>

-- 
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

UBIK LOAD PACK Web Site <http://www.ubikloadpack.com/>

UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>