简体   繁体   English

将 2 份报告合并为一份 1 in (testng) 诱惑

[英]Combining 2 reports into one 1 in (testng) allure

My requirement is to combine 2 test results to publish an allure report.我的要求是结合2个测试结果发布一份诱惑报告。 Basically, our framework needs run 2 exclusive sets of related tests bases on system status as 2 different test runs.基本上,我们的框架需要根据系统状态运行 2 组专有的相关测试作为 2 个不同的测试运行。 These will run from 2 different JVMs.这些将从 2 个不同的 JVM 运行。 I need to combine the result of these 2 runs to show 1 report.我需要结合这 2 次运行的结果来显示 1 份报告。

As allure provides an adapter for testng, I'm wondering if this is possible or where should I start.由于 allure 为 testng 提供了一个适配器,我想知道这是否可行或者我应该从哪里开始。

Thanks in advance for all the guidance.在此先感谢您的所有指导。

Allure has built-in aggregation functionality, just put two allure results bundles in one folder and use it as a source for your report. Allure 具有内置的聚合功能,只需将两个诱惑结果包放在一个文件夹中,并将其用作报告的来源。 You will get report with two suites in it.您将获得包含两个套件的报告。

你也可以使用: allure serve /path/to/results1 /path/to/results2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM