In the process of working, many interfaces are in JSON form, then we will explain in detail how to test the JSON interface with JMeter.
1. RD provides the interface name of the test and the URL address as follows
As can be seen, our interface name is the city list interface, the requested URL has been given
2, the parameters should be returned as follows
3. Next we need to determine the IP and port number of our web server
4, the following JMeter test, build a thread
The test is in JSON form, so the HTTP header manager needs to be added
Since we are testing, multiple interfaces will be on one server, so we need to establish HTTP default requests so that they are managed, while preventing the hassle of setting IP and ports for each request
Next, create an HTTP request
Set assertions for requests
After you set it up, you can see the results.
At this point the whole process has ended, you crossing, understand?
In the middle if you encounter any problems, please check this http://www.cnblogs.com/zlj1992/p/5891981.html
JMeter pressure test JSON interface