public void SetUp(Application app, int windowNumber, ITestCommands commands, Point?point) { base.SetUp(app, windowNumber); controls.Add(nameof(controlNames.click_showOneDay_button), controlFactory.Assign(windowTools.GetButton(window, nameof(itemNames.ShowOneDay)), ControlType.button, ActionType.click)); controls.Add(nameof(controlNames.doubleClick_point), controlFactory.Produce(ControlType.point, ActionType.doubleClick)); setUpPointControl(controls[nameof(controlNames.doubleClick_point)], point); }
public void SetUp(Application app, int windowNumber, ITestCommands commands, string tabName) { base.SetUp(app, windowNumber); IUIItem tab = windowTools.GetIUIItemList <Tab>(window)[0]; controls.Add(nameof(controlNames.click_clients_button), controlFactory.Assign(windowTools.GetButton(window, nameof(itemNames.Clients)), ControlType.button, ActionType.click)); controls.Add(nameof(controlNames.click_tabControl_tabPage), controlFactory.Assign(tab, ControlType.tab, ActionType.click, tabName)); /* TODO: add other buttons * * Drop Down Button * Drop Down Button * Toggle Care/Coordination Team * Exit * Message * <done> Clients * Providers * Organizations * Shift Schedules * Internal Schedule * Import PXML * Font * Minimize * Maximize * Close */ }
public ClientNoteBook_CalendarService(Application app, ITestCommands TestCommands, int WindowNumber, Point?point = null) { SetUp(app, WindowNumber, TestCommands, point); foreach (string test in TestCommands.Commands) { controls[test].Action(); } }
public ClientCaseSearch(Application app, ITestCommands TestCommands, string searchText = "") { SetUp(app, WindowNames.SearchClientCases, searchText); foreach (string command in TestCommands.Commands) { controls[command].Action(); } }
public ClientNoteBook_CalendarService_AppointmentDetails(Application app, ITestCommands TestCommands) { SetUp(app, WindowNames.AppointmentDetails); foreach (string test in TestCommands.Commands) { controls[test].Action(); } }
public ClientNoteBook_CarePlan(Application app, ITestCommands TestCommands, int WindowNumber) { SetUp(app, WindowNumber, TestCommands); foreach (string test in TestCommands.Commands) { controls[test].Action(); } }
public MessageBox(Application app, ITestCommands TestCommands) { SetUp(app, WindowNames.CBI, TestCommands); foreach (string test in TestCommands.Commands) { controls[test].Action(); } }
public void SetUp(Application app, int windowNumber, ITestCommands commands, string tabName) { base.SetUp(app, windowNumber); IUIItem tab = windowTools.GetIUIItemList <Tab>(window)[1]; controls.Add(nameof(controlNames.click_tabControl_tabPage), controlFactory.Assign(tab, ControlType.tab, ActionType.click, tabName)); }
public ClientNoteBook(Application app, ITestCommands TestCommands, int WindowNumber, string tabName = "") { SetUp(app, WindowNumber, TestCommands, tabName); foreach (string test in TestCommands.Commands) { controls[test].Action(); } }
public Login(Application app, ITestCommands TestCommands) { SetUp(app, WindowNames.Login, TestCommands); foreach (string test in TestCommands.Commands) { controls[test].Action(); } }
public EditCarePlan_Revision(Application app, ITestCommands TestCommands, string criteria = "") { SetUp(app, WindowNames.EditCarePlanRevision, criteria); foreach (string command in TestCommands.Commands) { controls[command].Action(); } }
public void SetUp(Application app, WindowNames windowName, ITestCommands commands) { base.SetUp(app, windowName); controls.Add(nameof(controlNames.write_username_textBox), controlFactory.Assign(window.Get <WinFormTextBox>(SearchCriteria.ByAutomationId(nameof(itemNames.username))), ControlType.winFormTextBox, ActionType.write, username)); controls.Add(nameof(controlNames.write_password_textBox), controlFactory.Assign(window.Get <WinFormTextBox>(SearchCriteria.ByAutomationId(nameof(itemNames.password))), ControlType.winFormTextBox, ActionType.write, password)); controls.Add(nameof(controlNames.doubleClick_ok_button), controlFactory.Assign(window.Get <Button>(SearchCriteria.ByAutomationId(nameof(itemNames.okButton))), ControlType.button, ActionType.doubleClick)); }
public SelectFacility(Application app, ITestCommands TestCommands, string facilityName) { SetUp(app, WindowNames.SelectFacility, facilityName); foreach (string command in TestCommands.Commands) { if (command == nameof(controlNames.click_listView_listView_criteria)) { //state of listview changes after divisions combo box is updated controls[nameof(controlNames.click_listView_listView_criteria)] = controlFactory.Assign(window.Get <ListView>(SearchCriteria.ByAutomationId(itemNames.listView.ToString())), ControlType.listView, ActionType.click, facilityName); } controls[command].Action(); } }
public void SetUp(Application app, int windowNumber, ITestCommands commands) { base.SetUp(app, windowNumber); controls.Add(nameof(controlNames.click_editCarePlan_button), controlFactory.Assign(windowTools.GetButton(window, nameof(itemNames.EditCarePlan)), ControlType.button, ActionType.click)); controls.Add(nameof(controlNames.click_fillAssignments_button), controlFactory.Assign(windowTools.GetButton(window, nameof(itemNames.FillAssignments)), ControlType.button, ActionType.click)); /*TODO: Add more button controls * Add Care Plan * Edit Care Plan * Merge Care Plan * Edit Status * Fill Assignments * treatmentPlanButton * Equipment Orders * */ }
public SelectVisitCompletionTypeTime(Application app, ITestCommands TestCommands, VisitCompletionTypes type, VisitCompletionReasons reason, string note) { SetUp(app, WindowNames.SelectVisitCompletionTypeTime, type.ToString(), reason.ToString(), note); foreach (string command in TestCommands.Commands) { if (command == nameof(controlNames.click_type_comboBox)) { controls[nameof(controlNames.click_type_comboBox)] = controlFactory.Assign(window.Get <ComboBox>(SearchCriteria.ByAutomationId(nameof(itemNames.visitType))), ControlType.winFormComboBox, ActionType.click, type.ToString()); } //values of comboBox are updated when the value of the type comboBox are reset else if (command == nameof(controlNames.click_reason_comboBox)) { controls[nameof(controlNames.click_reason_comboBox)] = controlFactory.Assign(window.Get <ComboBox>(SearchCriteria.ByAutomationId(nameof(itemNames.visitCompletionType))), ControlType.winFormComboBox, ActionType.click, reason.ToString()); } controls[command].Action(); } }
public void SetUp(Application app, WindowNames windowName, ITestCommands commands) { base.SetUp(app, windowName); controls.Add(nameof(controlNames.doubleClick_ok_button), controlFactory.Assign(window.Items[0], ControlType.button, ActionType.doubleClick)); }
public void SetUp(Application app, int windowNumber, ITestCommands commands) { base.SetUp(app, windowNumber); controls.Add(nameof(controlNames.click_editRevision_button), controlFactory.Assign(windowTools.GetButton(window, nameof(itemNames.EditRevision)), ControlType.winFormTextBox, ActionType.click)); }