public static void Initialize() { ExtentReportReq = bool.Parse(Configapp["Connection:ExtentReport"]); if (ExtentReportReq) { extent = ExtentReport.InitReport(Configapp["Connection:ExtentReportFolderName"]); path = CommonUtility.DeleteOldFolders(Configapp["Connection:ScreenShotsFolderName"], Configapp["Connection:NumberOfDaysToKeepScreenShots"]); path = CommonUtility.CreateFolder(path); } }