}//end method ReadApplicationConfigs /// <summary> /// Read the provided test configurations /// </summary> public static void ReadConfigs(string pathOfAutomationConfigs) { //Application Settings: load the Automation Directory Configs TextDataParser.LoadConfigurationValues(pathOfAutomationConfigs); AutomationDirectory = TextDataParser.LoadAndGetValue("AutomationDirectory", pathOfAutomationConfigs + ".dir"); AutomationDirectory = TextDataParser.GetValue("AutomationDirectory"); Url = TextDataParser.GetValue("Url"); Browser = TextDataParser.GetValue("Browser"); //Files: Test Data, Messages, ... TestDataFile = AutomationDirectory + TextDataParser.GetValue("TestDataFile"); LogFile = AutomationDirectory + TextDataParser.GetValue("LogFile"); ReportingDirectory = AutomationDirectory + TextDataParser.GetValue("ReportingDirectory"); }//end method ReadConfigs
} //end method /// <summary> /// Read the provided test configurations /// </summary> public static void ReadConfigs(string pathOfAutomationConfigs) { //Application Settings: load the Automation Directory Configs TextDataParser.LoadConfigurationValues(pathOfAutomationConfigs); //TODO: the below line is used to when the batch file is running. AutomationDirectory = TextDataParser.LoadAndGetValue("AutomationDirectory", pathOfAutomationConfigs + ".dir"); AutomationDirectory = TextDataParser.GetValue("AutomationDirectory"); Url = TextDataParser.GetValue("Url"); Browser = TextDataParser.GetValue("Browser"); //Files: Test Data, Messages, ... TestDataFile = AutomationDirectory + TextDataParser.GetValue("TestDataFile"); LogFile = AutomationDirectory + TextDataParser.GetValue("LogFile"); ReportingDirectory = AutomationDirectory + TextDataParser.GetValue("ReportingDirectory"); //TODO: Add the report path here ya Asmaa }//end method ReadConfigs