安装node.js
官网:https://nodejs.org/en/
验证
npm -v
node -v
淘宝镜像
npm get registry
npm config set registry http://registry.npm.taobao.org/
安装newman
管理员身份打开cmd
npm install -g newman
效果
安装html报告,生成测试报告
npm install -g newman-reporter-html
html测试报告格式:
newman run <postman文件名> -r html --reporter-html-export
<html报告名称>.html