解决postman命令执行过程中提示newman: could not find “html“ reporter的问题

postman集合测试,通过newman命令执行postman集合。

运行命令:newman run Postman_API.postman_collection.json -d data.json -r html,报错newman: could not find “html” reporter

 

 

解决方法:

需要安装newman-reporter-html,安装运行命令:npm install -g newman-reporter-html

如图所示:

 

 

 安装完成,重新运行命令:newman run Postman_API.postman_collection.json -d data.json -r html,报告导出成功。

 

posted @ 2022-02-11 10:48  CNF油条  阅读(417)  评论(0)    收藏  举报