How to test the interface you open to the client app

Source: Internet
Author: User

Here is a tool for testing the interface that the backend is opening to the client.

Using HTTP or HTTPS

Use form or JSON format

The tool was previously a plugin for Google Chrome and later appeared on the client side of each platform. Very practical.

Named Postman.

Official website: Https://www.getpostman.com/apps

This side is mainly a sharing, but also to those who finish the interface does not complete their own tests, or only write service Layer unit test people warning.

Your error will affect the progress of the client programmer.

Needless to say, this is the main introduction of Windows in the context of a few simple use.

1, set the request mode post, etc.

2. Set the request content

Commonly used for Form-data form format, the form can be uploaded files. Here you can choose

Raw can transmit JSON or XML, etc.

Binary binary data

is the file

3. Send

Click Send directly, you can save it automatically after sending it.

Advantages:

The various request types are full, and the messages sent and the messages returned are clear.

JSON format is automatically formatted

can set session and cookies, etc.

You can set the protocol header

Have a history, this is very useful for testing, do not worry about the test after the completion of the changes, directly saved, the next time you click on the test again.

Other features are not described more. According to their own needs to use.

After testing with this software, if the problem again you first Test yourself, if there are no problems you can directly query the client to write wrong. Have the clout.

How to test the interface you open to the client app

Related Article

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.