【发布时间】:2019-10-11 14:30:46
【问题描述】:
如何在同一份报告中覆盖多个执行的测试用例?就像我多次运行失败的测试用例一样,它应该覆盖同一个文件而不会丢失其他记录。
就我而言,它会从文件中删除所有旧记录并添加新记录。
string path1 = AppDomain.CurrentDomain.BaseDirectory.Replace("\\bin\\Debug", "");
string path = path1 + "Report\\index.html";
ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(path);
htmlReporter.Configuration().Theme = AventStack.ExtentReports.Reporter.Configuration.Theme.Standard;
extent = new ExtentReports();
extent.AttachReporter(htmlReporter);
【问题讨论】:
标签: selenium automation extentreports selenium-extent-report