Discussion:
Can any one suggest How to increment a variable...in jmeter
waseemfa
2013-04-23 05:09:21 UTC
Permalink
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.
Philippe Mouawad
2013-04-23 05:36:56 UTC
Permalink
You also have option to use Counter Element:
- http://jmeter.apache.org/usermanual/component_reference.html#Counter

Regards
Post by waseemfa
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
--
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.
---------------------------------------------------------------------
--
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie

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

UBIK LOAD PACK on TWITTER <https://twitter.com/ubikloadpack>
Flavio Cysne
2013-04-23 11:08:33 UTC
Permalink
intSum or longSum functions may help with it.

http://jmeter.apache.org/usermanual/functions.html#__intSum
http://jmeter.apache.org/usermanual/functions.html#__longSum
Post by Philippe Mouawad
- http://jmeter.apache.org/usermanual/component_reference.html#Counter
Regards
Post by waseemfa
Just add a BSF sampler and declare the value. Keep incrementing the
value
Post by waseemfa
by
1 everytime and use vars.put("VariableName",value) in it so that it can
be
Post by waseemfa
used across the thread group
--
http://jmeter.512774.n5.nabble.com/Can-any-one-suggest-How-to-increment-a-variable-in-jmeter-tp5716766p5716773.html
Post by waseemfa
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
<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>
Loading...