public static void InitReporter() { if (isInit) { return; } string projectdirectory = GenericUtils.GetProjectDirectory(); GenericUtils.CreateDirectory($"{projectdirectory}/Reports"); ExtentHtmlReporter extentHtmlReporter = new ExtentHtmlReporter($"{projectdirectory}/Reports/Report.html"); _extentReports = new ExtentReports(); _extentReports.AttachReporter(extentHtmlReporter); _extentReports.AddSystemInfo("Machine User Name", Environment.UserName); isInit = true; }