Deepak Shetty wrote:
>
> Use a counter
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Counter
> You can loop using any of the looping constructs that JMeter provides
> (loop
> controller, while controller, specify it on the threadgroup etc)
>
> regards
> deepak
>
> On Fri, Feb 26, 2010 at 9:50 AM, 5942marine <[email protected]> wrote:
>
>>
>> Hi everybody. New to the forum here. My question with Jmeter is, what is
>> the
>> best way to increment a Post Variable sent to our dev box?
>>
>> What I'm looking to do, is in the HTTP Request, theres the option to send
>> paramaters with the request, either Post or Get. Currently, I'm using
>> post.
>>
>> Now, I can do it one at a time, run it once, then change the value sent,
>> then run it again.
>>
>> However, what I'd like to do, is change is so that it increments 100
>> times.
>>
>> Example:
>>
>> the Name of the parameter is "profile" and the value is "40234"
>>
>> What I'd like to do, is have it Post "profile" with the value of 1, then
>> next iteration, 2, then 3, and so on.
>>
>> http://old.nabble.com/file/p27721405/Picture%2B2.png
>>
>> Is this possible with Jmeter?
>>
>> Thanks for your help!
>> --
>> View this message in context:
>> http://old.nabble.com/Question-on-incrementing-a-Post-Variable-tp27721405p27721405.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
I got it working via using a loop controller, and counter, like you
suggested. One last question though, I first tried setting it up using a
While Controller.
Example: ${Counter} < 20
But it just ran forever. Just curious why the while condition wasn't being
caught.
--
View this message in context:
http://old.nabble.com/Question-on-incrementing-a-Post-Variable-tp27721405p27723087.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]