【问题标题】:newman htmlextra reports are not getting generatednewman htmlextra 报告未生成
【发布时间】:2021-09-09 10:00:57
【问题描述】:

我正在尝试导出 htmlextra 报告以及 xml。但在下面的命令中,它只导出 prod_report.xml 文件,而不是 Prod_TestReport.html。

newman run Test.postman_collection.json -e Test.postman_environment.json -r htmlextra --reporter-htmlextra-export "newman/Prod_TestReport.html" -r cli,junit --reporter-junit-export "newman/prod_report .xml”

但是,如果我尝试单独导出 htmlreport 和 xml,它的工作正常。喜欢:

  • newman 运行 Test.postman_collection.json -e Test.postman_environment.json -r cli,junit --reporter-junit-export “newman/prod_report.xml”
  • newman 运行 Test.postman_collection.json -e Test.postman_environment.json -r htmlextra --reporter-htmlextra-export "newman/Prod_TestReport.html"

【问题讨论】:

    标签: jenkins postman newman


    【解决方案1】:
    newman run Test.postman_collection.json -e Test.postman_environment.json -r cli,junit,htmlextra --reporter-junit-export "newman/prod_report.xml" --reporter-htmlextra-export "newman/Prod_TestReport.html"
    

    你应该传递所有记者 -r ,个别标志 --reporter--export 可以以任何顺序给出,记者会考虑适用于他们的标志

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-27
      • 1970-01-01
      • 2020-03-13
      • 2023-03-10
      • 1970-01-01
      • 2019-09-11
      • 2021-04-23
      • 2021-08-30
      相关资源
      最近更新 更多