Constructing a large number of concurrent random HTTP requests using JMeter

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.