如何将纽曼htmlextra结果附加到现有的htmlextra报告文件中 [英] How to append Newman htmlextra results to existing htmlextra report file

查看:574
本文介绍了如何将纽曼htmlextra结果附加到现有的htmlextra报告文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个 Newman 命令


  1. newman运行集合。 json -e env.json --folder create_clients -dclients.csv -r htmlextra --htmlreporter-export report.html

newman运行collection.json -e env.json --folder create_orders -dorders.csv -r htmlextra --htmlreporter-export report.html

在执行了命令#2后,reporter.html被覆盖,我希望将结果追加。

After command #2 is executed reporter.html is overwritten, I want results to be appended.

有没有可能,请提出建议,谢谢。

Is there any possibility, please suggest, thanks.

推荐答案

记者无法以这种方式工作。您不能附加上一次运行的结果,因为它会再次创建全新的报告。

The reporter doesn't work in that way. You cannot append the results from a previous run as it creates a brand new report again.

从上下文上讲,这是两个不同的Collection运行。如果您要在应用程序中运行它们并在Runner中查看结果,那将是相同的。

Contextually, those are 2 different Collection runs. It would be the same if you were to run those in the app and see the results in the Runner.

如果要分别查看两个报告,则在导出时需要给它们起一个不同的名称,或者删除 export 标志和默认文件名将在 / newman 目录中创建。

If you wanted to see both reports individually, you would need to give them a different name, when exporting, or remove the export flag and the default filename would be created in the /newman directory.

这篇关于如何将纽曼htmlextra结果附加到现有的htmlextra报告文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆