public void ExtentStart() { FileInfo file = new FileInfo(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"\Helpers\Files\TestEvidence")); var htmlreporter = new ExtentHtmlReporter(file + "Report" + DateTime.Now.ToString("_MMddyyyy_hhmmtt") + ".html"); htmlReporter = new ExtentHtmlReporter(htmlreporter.ToString()); extent = new ExtentReports(); extent.AttachReporter(htmlreporter); extent.AddSystemInfo("OS", "Windows"); }