postman:4.5.1
1. Install Postman
Enter the Postman official website, if the Mac system can be directly clicked Mac App installation
If it is windows, you need to install the Chrome browser under Windows and then enter chrome://extensions in the Address bar to check the developer mode
Then the download of the Postman plugin decompression, browser Click to load the unpacked extender, select the plugin directory on it
2. Test the first API, take the Watercress developer API as an example
The method for this interface is get,postman default to get, and input the tested interface in the URL bar
In the interface document, Q and tag one of them is required, so this requires configuration parameters, click on the right side of the URL params, and input parameters
Click the Send button to send the request, where you can see the returned response, the response status code, and the response time
Response can also be viewed in different ways, and you can also see cookies,headers information
3. Save the API, click the Save button, find the Save As button, click
At this point we can modify the request name and write the description
Next, create a new set of interfaces, write a collection name, click Save
Then on the left side of the function area, locate the Collections column and click
You can see the collection of APIs you just saved
4. Run API collection: Find the top functional area, locate the runner key, and click
Select the new API collection that you just created
Click Start Test to see the results of the run on the right side
5. Command line Run interface collection: First download the collection just created, click Export, and save to the specified path
Install the Postman command line run tool Newman
Note: If prompted without NPM command click on this link
After the Newman is installed, the command line executes and you see the execution results