问题描述
我将范围报告用于报告目的,但是如果我们以以下方式运行多个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 (将#修改为@)