private static void InternalAssertContent(AutomationElement aeControl, string nameValue, string message) { //find text block using AutomationElement of window string actualValue; string expectedValue; ResXConfigHandler resx = new ResXConfigHandler(ConfigHandler.GetValue("TestDataInputFile")); actualValue = aeControl.Current.Name; expectedValue = resx.GetValue(nameValue); Assert.AreEqual(actualValue, expectedValue, true, message); }
public static string GetControlId(string key) { ResXConfigHandler testInputHandler = new ResXConfigHandler(ConfigHandler.GetValue("ControlIdentifiersFile")); return(testInputHandler.GetValue(key)); }
public static string GetTestInputData(string key) { ResXConfigHandler testInputHandler = new ResXConfigHandler(ConfigHandler.GetValue("TestDataInputFile")); return(testInputHandler.GetValue(key)); }