生成普通测试报告:
需先下载安装node才可进行下面的操作
安装newman——安装newman-reporter-html
npm install -g newman
npm install -g newman-reporter-html
在postman中批量执行用例——确保无误
导出 .json 用例集,环境变量文件
终端执行命令,生成测试报告`
newman run xxx.json -e 环境变量文件 -d 外部数据文件 -r html --reporter-html-export 测试报告名.html
美化版测试报告
安装node.js——安装newman——安装newman-reporter-htmlextra
npm install -g newman-reporter-htmlextra
生成报告
newman run xxx.json -e 环境变量文件 -d 外部数据文件 -r --reporters htmlextra --reporter-htmlextra-export 测试报告名.html