newman是基于nodejs开发的一个可以用来运行postman的工具。所以首先需要安装nodejs
1.下载安装nodejs
https://nodejs.org/en/download/
2.查看nodejs是否安装成功命令(安装时环境变量会默认添加nodejs)
node -v
3. 安装newman命令
npm install -g newman
4.查看newman命令
newman -v
5.安装生成报告的newman组建
npm install -g newman-reporter-html
6.cd 到postman导出的json文件夹中
7.执行
newman run Postman_API.postman_collection.json -d data.json -r html
Postman_API.postman_collection.json 报告json
-d 接数据
-r 接报告
若是不明白,可以加群 677233980咨询