我有两个纽曼命令
newman run collection.json -e env.json --folder create_clients -d clients.csv -r htmlextra --htmlreporter-export reporter.html
newman run collection.json -e env.json --folder create_orders -d orders.csv -r htmlextra --htmlreporter-export reporter.html
执行命令#2后,reporter.html被覆盖,我希望附加结果。
有没有可能,请提出建议,谢谢。
记者不是那样工作的。您无法附加上一次运行的结果,因为它会再次创建全新的报告。
在上下文中,这些是2个不同的Collection运行。如果您要在应用程序中运行它们并在Runner中查看结果,那将是相同的。
如果要分别查看两个报告,则在导出时需要给它们一个不同的名称,或者删除该export
标志,然后将在/newman
目录中创建默认文件名。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句