public void SetupReporting() { if (htmlReporter == null) { htmlReporter = ExtentReporter.getHtmlReport(); extent = new ExtentReports(); extent.AttachReporter(htmlReporter); } if (runID == null || runID == "") { runID = createTestRun(projectID); } }