1. Download JMeter
http://jmeter.apache.org/download_jmeter.cgi
2. Unzip, locate Jmeter.bat in the Bin directory, and double-click to open.
3. Add a thread group
4. Add the HTTP header manager and configure the Content-type and Content-encoding header fields
5. Use Mocky This web tool to simulate return HTTP Response, first open this URL http://www.mocky.io/, then configure the body of the response, and finally click Generate My HTTP Response This button to generate an HTTP request address.
Body:
1 {2 "People": [3 {4 " firstName": "Brett",5 " lastName": "McLaughlin",6 " Email": "AAAA"7 },8 {9 " firstName": "Jason",Ten " lastName": "Hunter", One " Email": "BBBB" A }, - { - " firstName": "Elliotte", the " lastName": "Harold", - " Email": "CCCC" - } - ] +}
6. Add the HTTP request default value and fill in the request address obtained in the previous step into the path input box.
7. Add the HTTP request and view the result tree and fill in the information in the red box
8. Click the Start button and the results can be viewed in the view of the resulting tree species, such as the HTTP Response preset in Mocky.
HTTP request of JMeter