The example of an interface provided by a service-side system is:
The steps to use JMeter for stress testing after evaluation are:
Start JMeter: Click Jmeter.bat under Bin, run JMeter
2. Create a test plan:
A test technology template is loaded by default when JMeter is started
3. Save the Test plan: Modify the name to Http_demo, click Save, select Save Path
4. Add a thread group
Right-click on the test plan "Http_demo" node in the left tree, "add"---> "thread Group", add a "thread group"
After the add succeeds, the "Http_demo" node is more than the "Thread Group" node
5. Add HTTP Default request: (Used to configure public parameters, not HTTP requests)
Right-click the thread group, select "Add"-〉 "Configure symbol"-〉 "HTTP request Default", and after clicking "HTTP request default Value"
After the add succeeds, the thread group node is more than the HTTP request Defaults node
6. Set the HTTP request default value:
For this project fill in the following, the service side of the Department of the description
Fill in the default request name, server, default request path, save test plan
7. Add an HTTP request
Right-click "Http_demo" and select "Add"-〉 "Sampler"-〉 "http Request"
After the add succeeds, the HTTP request default value "XX Reading Platform" node issued "HTTP request"
8. Setting up HTTP Requests
Complete the reference service end-of-line:
Complete, save the test plan
9. Add a listener:
Right-click the thread group, select "Add"-〉 "Listener"-〉 "View result tree"
After the add succeeds, the view results tree node is added under "Thread Group"
10. Trial run
Click Execute
See Request and response execution: Execution succeeds as follows, checking the correctness of the response data return
11. Add a chart Analysis listener
12. Modify the thread number of thread group and other parameters for stress testing
13. Perform stress tests, see data
After clicking Execute, select Graphical results to observe the data content of the stress test
14. If you need to view the results in a table
Select "Add"-〉 "Listener"-〉 "View results with a table"
15. Set the main parameters for "View results with table":
Configure: Click "Configure" button to select "Save Response Data" in the pop-up window to save the response data.
This article is from the "Yekoven" blog, make sure to keep this source http://leafwf.blog.51cto.com/872759/1618409
JMeter Stress Test (simple HTTP request)-instance