如果我们在单个套件中运行多个xml,则不会在“范围报告”中生成多个报告

问题描述

我将范围报告用于报告目的,但是如果我们以以下方式运行多个xml,则所有测试用例仓库都将显示在单个html中

<suite name="suite of suites">
<suite-files>
    <suite-file path="Suite1.xml" />
    <suite-file path="Suite2.xml" />
</suite-files>`
public synchronized static ExtentReports instance(String module) {
    if (report == null) {
        String Path = System.getProperty("user.dir") + "/Reports/"+module+".html";
        report = new ExtentReports(Path,false,DisplayOrder.OLDEST_FIRST);
        
    }
    return report;
}

如果我分别运行[suite1和suite2]模块,我将得到html报告。 我分别需要suite1.html和suite2.html

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...