[Performance Test] Jmeter - jmeter counter

jmeter counter

If the amount of data that needs to be referenced is large, and the requirements cannot be repeated or need to be incremented, you can use a counter to achieve it.

For example: for new functions, the names cannot be repeated.

1. Add counter

Counter: Allows the user to create a counter that can be referenced within the thread group.

The counter allows the user to configure a starting point, a maximum value, the number of increments, cycle to the maximum value, then start again, and continue this way until the end of the test.

Configuration path: Configuration component - counter

2. Reference counter ${data} in http request

3. The number of loops in the thread group is 10 times

4. Check the result tree after execution. The counter address of each cycle is a number; as shown below:

First iteration of data

Second iteration of data

Finally, I would like to thank everyone who has read my article carefully. Looking at the increase in fans and attention, there is always some courtesy. Although it is not a very valuable thing, if you can use it, you can take it directly!

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.
 

Insert image description here

Guess you like

Origin blog.csdn.net/myh919/article/details/132830701