On 28 November 2013 12:21, Neiman, Victor <[email protected]> wrote:
> Hi all,
>
> I have problem in my HTTP Request with getting the Counter to increment a 
> User Defined Variable. I have the following in place:
>
> User Defined Variable is set up like so:
> Name: transactionID
> value 7898922599
>
> Counter set up as follows
> Start: ${transactionID}
> Increment: 1
> Max:  9999999999
> number format: 0000000000
> reference name: transactionIDCounter
>
> Then inside my HTTP Request I have this:
> "transactionID":"${transactionIDCounter}"
>
> And every time the request goes out it goes out set to this every time I run 
> the test:
> "transactionID":"7898922599"
>
> So the HTTP Request picks up the variable but it is not incremented. What am 
> I missing?

Probably overlooked the first paragraph of the UDV docs:

"The User Defined Variables element lets you define an initial set of
variables , just as in the Test Plan . Note that all the UDV elements
in a test plan - no matter where they are - are processed at the
start. So you cannot reference variables which are defined as part of
a test run, e.g. in a Post-Processor. "

See: 
http://jmeter.apache.org/usermanual/component_reference.html#User_Defined_Variables

> Regards and thanks
> Victor
>
> To read FirstRand Bank's Disclaimer for this email click on the following 
> address or copy into your Internet browser:
> https://www.fnb.co.za/disclaimer.html
>
> If you are unable to access the Disclaimer, send a blank e-mail to
> [email protected] and we will send you a copy of the 
> Disclaimer.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to