In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to stress test http interface in JMeter. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Start the pressure test
Click jmeter.bat to open the software main page
Create thread group
The thread group declares the stress test strategy to be executed. On the test plan on the left, right-click > add > Thread > Thread Group
The thread group provides parameters by default, and we mainly modify the following three:
Thread group parameter description:
Parameter indicates the number of threads at a time. Ramp-Up time causes M threads to start and run in N seconds, where N is the configuration here, M is the number of cycles configured above, and the default is to create a HTTP request.
After the thread group is configured, start to configure the http request path: thread group right: add > sampler > HTTP request
Enter HTTP HRL and parameters in the interface.
Check the pressure test results
In fact, after the HTTP request is created above, you can run the stress test of the interface directly, but you cannot see the return value and statistical data of the interface.
We can use the listener to check the HTTP request status and return the result: right-click on the left HTTP request: add > listener > View the result tree
Next, you need to view the statistical information of the stress test. Right-click on the HTTP request on the left: add > listener > aggregate report
Run and view the results
View the request status and return information in the result tree
View statistical reports in aggregate reports
Add Unified cookie
Assuming that some interfaces need to log in and pass cookie, you can create a new unified http cookie manager.
About how to stress test http interface in JMeter to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.