/// <summary> /// Function Name :- FnCreateExtentReport /// Created By :- Pankaj Kumar /// Date of Creation :- 11-Apr-2020 /// </summary> public static void FnCreateExtentReport() { try { string strGlobalConfigFile = GeneralUtil.FnGetProjectFolder() + @"Automation_Accelarator\Config\Global.config"; ExtentHtmlReporter htmlReporter = FnSetConfigDetails(); extent = new ExtentReports(); extent.AttachReporter(htmlReporter); extent.AddSystemInfo("Environment", ReadConfig.FnReadTestEngineConfig(strGlobalConfigFile, "Environment")); extent.AddSystemInfo("User Name", GeneralUtil.FnGetHostName()); extent.AddSystemInfo("IP Address", GeneralUtil.FnGetIPAddress()); } catch (Exception e) { Console.WriteLine(e.StackTrace); } }