Article directory
Featured blogs:
1 Overview
JMeter is an open source Java application. It is a project of the Apache Software Foundation. Its full name is Apache JMeter. JMeter is mainly used for performance testing and load testing. It can simulate a large number of users accessing a network application at the same time to evaluate the performance and stability of the application.
Official website: Apache JMeter - Apache JMeter™
2. Installation and startup
premise:
Jmeter depends on JDK, so you must ensure that JDK is installed on the current computer and environment variables are configured.
Step 1: Download
illustrate:
Download link: Apache JMeter - Download Apache JMeter
- Download arrow pointing to
zip
file
Step 2: Unzip
- Enter
bin
directory
illustrate:
The bin directory usually stores core files, including startup scripts
Step 3: Start
- Double click
jmeter.bat
the file
illustrate:
The startup speed is relatively slow, please wait patiently.
Notice:
The black window cannot be closed after startup, otherwise Jmeter will also be closed.
Description: View results
3.Set Chinese language
Step 1: Set option
options
The default Jmeter language is English, which needs to be set:
Notice:
The above configuration can only ensure that this run is in Chinese. If you want permanent Chinese, you need to modify the Jmeter configuration file.
Step 2: Modify jmeter
the configuration file
- Open the jmeter folder, find jmeter.properties in the bin directory , and add the following configuration:
language=zh_CN
Description: result
Notice:
Do not use # in front of it, # represents a comment, and it is an underline, not a dash.
4.General use
Step 1: Add thread group
illustrate:
Right-click the test plan and select Add > Thread (User) > Thread Group
Step 2: Add thread group information
illustrate:
In the newly added thread group, fill in the thread information
Step 3: Add Http
request sampler
illustrate:
Right-click the thread group and add http sampler
Step 4: Add sampler information
illustrate:
The sampler clearly sends the request protocol, IP, port, path and other information
Step 5: Add monitoring report
illustrate:
In the monitoring report, it is convenient to view the request duration and exception information after the request is executed.
Replenish:
- Monitoring report results
Step 6: Add monitoring result tree
illustrate:
In the result number, it is convenient to view the request response and other information after the request is executed.
Replenish:
- Results report