public static void BeforeTestRun() { ObjectRepository.ServerName = ConfigurationManager.AppSettings["ServerName"]; ObjectRepository.DataBaseName = ConfigurationManager.AppSettings["DataBaseName"]; ObjectRepository.ProjectName = "MOL"; string curPath = GenericHelper.CurrentDirectory(); string currentTime = DateTime.Now.ToString("yyyy-MM-dd_hh-mm-ss"); string ResultPath = curPath + "\\Result Folder\\MOL_" + currentTime; ObjectRepository.ParentResultPath = ResultPath; GenericHelper.CreatFolder(ResultPath); htmlReporter = new ExtentHtmlReporter(ResultPath + "\\Report.html"); htmlReporter.Configuration().Theme = Theme.Standard; htmlReporter.Configuration().DocumentTitle = "HTML Report"; htmlReporter.Configuration().ReportName = "Execution Report"; extent = new ExtentReports(); extent.AttachReporter(htmlReporter); // Creating the Log file SeleniumWebDriver.Reports.LogReport.CreateLogFile(); }