Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Badboy Automated Test tool 11 exports scripts for Jmeter concurrent testing

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This section focuses on concurrent testing using Jmeter and the introduction of image reports.

1. In Jmeter, open the script Lashou_Search.jmx for query on Lashou net exported by Badboy in the previous lesson.

two。 Right-click the Lashou node, Add- > Listener- > Aggregate Graph & Graph Results

3. Configure the image report (configuration omitted)

4. Click the Search node to expand the thread group configuration interface:

5. Set load information in the thread group, that is, thread attributes, select Start next thread loop, number of threads: 10, Ramp-up period (inseconds): 0, number of cycles: 1

Note 1.: to add relevant load settings to the test plan, Jmeter needs to simulate ten requesters, each of which makes concurrent requests and requests twice in a row during the test.

The number of threads represents the number of users who sent requests, and Ramp-up period (inseconds) represents the total time interval, in seconds, that each request occurs. If the number of my requests is 5 and this parameter is 10, then the interval between each request is 10 + 5, or 2 seconds. If set to 0, it represents a concurrent request. Loop Count represents the number of repetitions of the request. If you select the following forever (the default), the request will continue, and if you do not select forever and enter a number in the input box, the request will repeat the specified number of times.

Description 2: scheduler configuration

Startup time: when the test plan starts, the startup delay will overwrite it.

End time: when the test plan ends and the duration will overwrite it.

Duration: how long the test plan lasts, it overrides the end time.

Start-up delay: how long the test plan delays starting will overwrite the start-up time.

6. Click Aggregate Graph and click run to observe the running result.

7. Observe the results of parallel tests

8. Running a 10-person query concurrency test again, we can observe that all running report trends are recorded under the Result interface, we can specify a file path and output file name, save the report, code optimization or performance improvement, we call this report again to compare the improvement results.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report