微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决如果我们在单个套件中运行多个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 举报,一经查实,本站将立刻删除。