用postman测试接口,写好断言了,用postman也执行了,但是想看到像html那种测试报告怎么办?
这里就用到了newman这个工具
1.下载newman
Newman是一款基于nodejs开发的可以运行postman脚本的工具,所以要先安装node.js
(1)安装nodejs:
下载地址:https://nodejs.org/en/download/
安装完毕验证一下打开cmd:node -v
(2)安装newman:
打开cmd:
npm install -g newman
(3)安装html报告
npm install -g newman-reporter-html
2.从postman导出Collection
点击用例集右侧的三个点,点击Export