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);
     }
 }
        public static void InitializeSettings()
        {
            ConfigReader.SetConfigSetting();
            if (Settings.ExtentReportReq)
            {
                extent = ExtentReport.InitReport(Settings.ReportPath);

                CommonUtility.DeleteOldFolders(Settings.ReportPath, Settings.KeepExtentReportDays);
                new Utils().DeleteFilesFromFolder(Settings.ReportPath, numberOfDaysToKeepExtent);
            }
        }