Do an interface test, before using the GET request, Key-value form to pass the parameter.
Later, the development was changed to post request, and the JSON form was used to transmit the parameter. Amount, before also do JSON form of the communication, but this time encountered a problem, write a blog here, convenient for everyone, also convenient for themselves.
1, first put out the information returned when groping.
2, later colleagues told me is the use of the JSON form, and he used the postman, pay attention to the wording: double quotation marks.
3, just start did not find, JMeter set the place, also thought JMeter function now no postman powerful, can only say not jmeter not, just their cognition is too little.
The process is to add: HTTP header manager, the parameter values are as follows:
Content-type |
Application/json |
4, the wording of the request, note: Utf-8
5. View Results
Jmeter-json parameter handling