Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use jMeter to construct a large number of concurrent random HTTP requests

Shulou Source: shulou.com Published: 2022-06-03 12:11:14 10月01日 Update

This article mainly explains "how to use jMeter to construct a large number of concurrent random HTTP requests". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use jMeter to construct a large number of concurrent random HTTP requests".

In a previous article that used jMeter to construct a large number of concurrent HTTP requests for microservice performance testing, I introduced how to use jMeter to construct concurrent HTTP requests. However, for the concurrent requests constructed in the way introduced in this paper, the request parameters are all hard-coded 'Wang'.'.

Is there any 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_

Solution

Create a User Parameter:

The Name of Parameter is uuid, with a value of ${_ Random (1100)}

This _ _ Random (1100) is a random number generator provided by jMeter.

Then use this parameter in the Parameters tab of HTTP Request.

test

Random number generation takes effect, and the query parameters issued by each concurrent request are now different.

Thank you for your reading, the above is the content of "how to use jMeter to construct a large number of concurrent random HTTP requests". After the study of this article, I believe you have a deeper understanding of how to use jMeter to construct a large number of concurrent random HTTP requests. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Parameters random numbers learning query content articles methods generators that is ideas situations articles methods schemes more services tags knowledge knowledge points coding Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Information Redmi vpn Docker