Define and increment a counter in Apache Jmeter

Create a User Defined Variable and initialize the value.  In this case the value is zero.

Here’s an example of incrementing the “my_counter” value in an HTTP request.  The request URL will include the name value pair:  counter=1

           ${__intSum(${my_counter},1,my_counter)}

About admin

Richard has worked in the Information Technology field for 25 years on a variety of platforms and lines of business.
This entry was posted in Apache Jmeter. Bookmark the permalink.