Jmeter-json parameter handling

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.