Jmeter pressure test simulation
1. Introduction
Apache JMeter is a pure Java written load functional testing and performance testing open source tools. Small and light, free.
Apache JMeter – Download Apache JMeter
[baidu network backup] (link: https://pan.baidu.com/s/1CGvzyJ64zSGEQTATf6CoYg extraction code: WSKM – share from baidu network backup super member V4)
2. Use
❝
This simulation tests HTTP requests
❞
2.1 installation
The download directory is as follows:
GUI interface:
2.2 configuration
-
Creating a Test plan
-
Add a thread (user) group
-
The thread is set
-
Adding mock tests
-
The request is set
-
Set the request header. Generally, set content-type: application/json
-
Add summary reports if you want to see test results
-
Add response Assertion
-
If you save the test configuration, you will be prompted to select a location to save it
3. Start the test
Go to the Jmeter directory, enter CMD in the file address bar, open the command line, run jmeter.bat -n -t [configuration file path in 2], and press Enter to start the test