html 在 cli 中有额外的工作,但在 Jenkins 中没有
html extra works in cli, but not in Jenkins
当 运行在 cli 中使用它时,它会生成报告。但是当我在 Jenkins 中使用相同的命令时,没有生成报告。
newman 运行 "C:\WORK\getMix-REST.postman_collection.json" --reporters htmlextra --reporter-htmlextra-export "C:\Jenkins\workspace\getMix_report.html"
这是 Jenkins 中显示的消息。
纽曼:找不到"htmlextra"记者
确保 reporter 安装在与 newman 相同的目录中
请使用 npm
安装 reporter
我已确认 newman 和 html extra 安装在正确的目录中
纽曼安装:
我卡住了。请帮忙。谢谢
**更新:当我只使用 newman-reporter-html 而不是 newman-reporter-htmlextra 时,它工作正常并生成报告。两个记者都安装在同一层,不知道为什么 html extra 不起作用??
解决方法如下:
1.- 查找文件夹:C:\Program Files (x86)\Jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\Node3\node_modules
** Node3 可能会改变您在 Jenkins 中分配的名称。
2.- 将 newman 和 newman-reporter-htmlextra 复制并粘贴到文件夹中,然后重试。
当 运行在 cli 中使用它时,它会生成报告。但是当我在 Jenkins 中使用相同的命令时,没有生成报告。 newman 运行 "C:\WORK\getMix-REST.postman_collection.json" --reporters htmlextra --reporter-htmlextra-export "C:\Jenkins\workspace\getMix_report.html"
这是 Jenkins 中显示的消息。
纽曼:找不到"htmlextra"记者 确保 reporter 安装在与 newman 相同的目录中 请使用 npm
安装 reporter我已确认 newman 和 html extra 安装在正确的目录中
纽曼安装:
我卡住了。请帮忙。谢谢
**更新:当我只使用 newman-reporter-html 而不是 newman-reporter-htmlextra 时,它工作正常并生成报告。两个记者都安装在同一层,不知道为什么 html extra 不起作用??
解决方法如下:
1.- 查找文件夹:C:\Program Files (x86)\Jenkins\tools\jenkins.plugins.nodejs.tools.NodeJSInstallation\Node3\node_modules
** Node3 可能会改变您在 Jenkins 中分配的名称。
2.- 将 newman 和 newman-reporter-htmlextra 复制并粘贴到文件夹中,然后重试。