JMeter pressure test JSON interface

Source: Internet
Author: User

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

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.