我正在尝试使用newman为邮递员脚本生成html报告。但是,我没有在所需位置生成报告。我正在使用天蓝色devops。
[command]/usr/local/bin/newman run /home/vsts/work/1/s/Postman/postman_collection.json --reporter-html-template /home/vsts/work/1/s/Postman/newman-reporter.html --reporter-html-export /home/vsts/work/1/s/Postman -r cli,html -n 1 -e /home/vsts/work/1/s/Postman/postman_environment.json
就目录而言,我已经在同一级别上安装了newman和html report generator。
答案 0 :(得分:0)
您还需要指定文件扩展名(.html
),而不仅仅是目录路径。
作为回退,它可能已经在运行命令的同一位置的名为newman
的目录中创建了默认文件。
如果您需要其他HTML报告程序-可以使用https://www.npmjs.com/package/newman-reporter-htmlextra