Some postman

After listening to: https://v.qq.com/x/page/f0816egftuw.html

 

npm a node package manager, the manager of the package Nodejs. After the (node-v10.16.0-x64.msi) After installing nodejs, while it is installed.
postman can be used from the command line newman trigger Postman's json script.
The installation can be used while newman npm install -g newman accomplished.

There are two api sites can be used to practice postman with:

https://www.v2ex.com/p/7v9tec53
https://www.v2ex.com/api/topics/hot.json

And this kuaidi100 site that provides type and postid, you can submit get, the practice postman such as:

http://www.kuaidi100.com/query?type=tiantian&postid=669472972063

Tests [ "HTTP response code requires 200 is"] = 200 is responseCode.code ===;

var the JSON.parse RES = (the responseBody);
the console.log (res.length);
Tests [ "data needs to be returned home ten"] = 10 === res.length;


pm.test ( "returns the correct code", function ()
{
    pm.expect (pm.response). to.have.status (200 is);
});

 

 postman's api site:

https://www.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference
 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/backpacker/p/11184153.html