1, Postman Introduction

Postman is a powerful function google developed a web page debugging and send HTTP requests, and test cases can run the Chrome plug-ins. Its main features include:

1, various analog HTTP requests
from a common GET, POST to a RESTful PUT, DELETE ... and so on. You can even send files, send additional header.

2, Collection Function (test set)
Collection is a collection of requests in a test done, you can save this time to a specific request Collection inside, this way, the next time you do the same test, not need to re-enter. And a collection can contain multiple request, if we put a request as a test case, and that collection can be seen as a test suite. By classification collection, we can classify a good API test software has to offer. And you can also Import Collection Share or out, so that everyone inside the team you set up shared Collection.

3, humane Response finishing
in general when using other tools to test the contents of response are usually plain text raw, but if it is JSON, JSON is stuffed into a whole line. This can cause reading obstacles, and Postman can automatically format beautify for response content. JSON, XML or HTML format will be organized into we can read

4, built-in test scripting language
Postman support the preparation of test scripts, you can quickly check the results of the request and returns the results

5, set the environment variable
Postman free to set variables and Environment, in general we edit request, check response, there is always the need to re-enter certain characters, such as url, postman allow us to set a variable to store these values . And the variable stored in different environments. For example, we may have a variety of environmental, development, staging, or local, and the request URL these types of environments are also different, but we can set the same variables in different environments, but not the same as the value of the variable , so we do not modify our test script, and different test environments.

Guess you like

Origin www.cnblogs.com/zengfh/p/12287596.html