In the previous article using JMeter to construct a large number of concurrent HTTP requests for microservices performance testing, I described how to construct concurrent HTTP requests with JMeter. However, the request parameters of the concurrent request constructed by the method described in the article are hard-coded ' Wang '.
Is there a way to make the parameters of each concurrent request query different? For example, let JMeter construct some random numbers from 1 to 100 as part of the query request?
Jerrytestcustomer_<1~100>
Solution Solutions
Create a user Parameter:
The name of the parameter is UUID, and the value is ${__random (1,100)}
This __random (1,100) is a random number generator provided by JMeter.
Then, in the HTTP request's Parameters tab, use this parameter.
Test
The random number generation takes effect, and the query parameters emitted by each concurrent request are now different.
To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:
Constructing a large number of concurrent random HTTP requests using JMeter