You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by freesky <hw...@windowslive.com> on 2011/09/21 12:59:30 UTC

change the variable's value without the counter

Hi, I want to create a variable 'id', the default value is 0.  If there is a
specific request, such as submit data request, then the variable 'id' will
plus 1.  Then the 'id' will plus 1 in the next request, so now the value of
id is 2, and so on.

I don't want to use 'counter', so any other else solutions?  Thanks in
advance!

--
View this message in context: http://jmeter.512774.n5.nabble.com/change-the-variable-s-value-without-the-counter-tp4825954p4825954.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: change the variable's value without the counter

Posted by freesky <hw...@windowslive.com>.
Sorry, I forgot the function.  I tried the '_intSum', it works.  Thanks!

--
View this message in context: http://jmeter.512774.n5.nabble.com/change-the-variable-s-value-without-the-counter-tp4825954p4829190.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: change the variable's value without the counter

Posted by sebb <se...@gmail.com>.
On 21 September 2011 11:59, freesky <hw...@windowslive.com> wrote:
> Hi, I want to create a variable 'id', the default value is 0.  If there is a
> specific request, such as submit data request, then the variable 'id' will
> plus 1.  Then the 'id' will plus 1 in the next request, so now the value of
> id is 2, and so on.
>
> I don't want to use 'counter', so any other else solutions?  Thanks in
> advance!

Have a look at the JMeter functions [1], in particular intSum and StringFromFile

[1] http://jakarta.apache.org/jmeter/usermanual/functions.html

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