第一步:下载安装nodejs
下载地址:https://nodejs.org/zh-cn/
按照默认安装就完事了
配置环境变量到path路径下:


第二步:安装newman和html
npm install -g newman
npm install newman-reporter-html

第三步:在postman内保存接口并导出为json格式文件



第四步:在导出文件目录执行如下命令
newman run test_weibo.postman_collection.json -k -r html --reporter-html-export result1.html

第五步:查看测试报告

网友评论