public void Click_Deploy_Tab_Source_Refresh_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.SourceServerExplorer.RefreshButton); }
public void Click_Close_Settings_Tab_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.CloseButton, new Point(16, 6)); }
public void Select_SecurityTab() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.SecurityTab, new Point(102, 10)); }
public void Click_Select_ResourceButton() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.PerfomanceCounterTab.PerfmonViewContent.ResourceTable.Row1.ResourceCell.ResourceButton, new Point(9, 8)); }
public void Click_Server_Log_File_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.LoggingTab.LogSettingsView.ServerLogFileItemText.ServerLogFileHyperlink, new Point(83, 6)); }
/// <summary> /// TestInterfaceStandard - Utilisez 'TestInterfaceStandardParams' pour passer les parametres dans cette methode. /// </summary> public void TestInterfaceStandard() { #region Variable Declarations WinEdit uINomEdit = this.UIDebugWindow.UIItemWindow.UISpaceBattleViewexeListItem.UINomEdit; WinList uIBureauList = this.UIProgramManagerWindow.UIFolderViewWindow.UIBureauList; WpfComboBox uIComboBoxPlayerNbComboBox = this.UIPlayerSelectionWindow.UIComboBoxPlayerNbComboBox; WpfButton uIStartButton = this.UIPlayerSelectionWindow.UIStartButton; WpfComboBox uIComboBoxArtefactsComboBox = this.UIPlayerSelectionWindow.UIComboBoxArtefactsComboBox; WpfButton uIButtonDicesP3Button = this.UIPlayerSelectionWindow.UIButtonDicesP3Button; WpfButton uIButtonDicesP4Button = this.UIPlayerSelectionWindow.UIButtonDicesP4Button; WpfButton uIButtonDicesP2Button = this.UIPlayerSelectionWindow.UIButtonDicesP2Button; WpfButton uIButtonDicesP1Button = this.UIPlayerSelectionWindow.UIButtonDicesP1Button; WpfImage uIImageMusicImage = this.UIMainGameWindow.UIImageMusicImage; WpfButton uIButtonRollDicesButton = this.UIMainGameWindow.UIButtonRollDicesButton; WpfButton uIMoveButton = this.UIMainGameWindow.UIMoveButton; WpfImage uIImageStars2Image = this.UIMainGameWindow.UIImageStars2Image; WpfButton uIShootButton = this.UIMainGameWindow.UIShootButton; WinWindow uIMainGameWindow1 = this.UIMainGameWindow1; WinButton uIOKButton = this.UIOKWindow.UIOKButton; WpfButton uIFermerButton = this.UIPlayerSelectionWindow.UIPlayerSelectionTitleBar.UIFermerButton; #endregion // Double-clic 'Nom' zone de texte Mouse.DoubleClick(uINomEdit, new Point(72, 10)); // Clic 'Bureau' zone de liste Mouse.Click(uIBureauList, new Point(743, 95)); // Double-clic 'Nom' zone de texte Mouse.DoubleClick(uINomEdit, new Point(55, 8)); // Selectionner '4' dans 'comboBoxPlayerNb' zone de liste deroulante uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem; // Clic 'Start' bouton Mouse.Click(uIStartButton, new Point(27, 19)); // Selectionner '2' dans 'comboBoxArtefacts' zone de liste deroulante uIComboBoxArtefactsComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxArtefactsComboBoxSelectedItem; // Clic 'Start' bouton Mouse.Click(uIStartButton, new Point(40, 16)); // Selectionner '2' dans 'comboBoxPlayerNb' zone de liste deroulante uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem1; // Clic 'Start' bouton Mouse.Click(uIStartButton, new Point(63, 19)); // Selectionner '4' dans 'comboBoxPlayerNb' zone de liste deroulante uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem2; // Clic 'buttonDicesP3' bouton Mouse.Click(uIButtonDicesP3Button, new Point(38, 24)); // Clic 'buttonDicesP4' bouton Mouse.Click(uIButtonDicesP4Button, new Point(28, 9)); // Selectionner '2' dans 'comboBoxPlayerNb' zone de liste deroulante uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem3; // Clic 'buttonDicesP2' bouton Mouse.Click(uIButtonDicesP2Button, new Point(19, 10)); // Clic 'buttonDicesP1' bouton Mouse.Click(uIButtonDicesP1Button, new Point(26, 15)); // Clic 'Start' bouton Mouse.Click(uIStartButton, new Point(45, 23)); // Clic 'imageMusic' image Mouse.Click(uIImageMusicImage, new Point(6, 8)); // Clic 'imageMusic' image Mouse.Click(uIImageMusicImage, new Point(6, 8)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(19, 20)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(29, 19)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(246, 421)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(22, 22)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(24, 11)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(157, 251)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(32, 17)); // Clic 'Shoot' bouton Mouse.Click(uIShootButton, new Point(34, 10)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(308, 292)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(18, 31)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(19, 13)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(-1, 44)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(29, 30)); // Clic 'Shoot' bouton Mouse.Click(uIShootButton, new Point(35, 13)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(243, 316)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(33, 27)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(29, 8)); // Clic 'MainGame' fenetre Mouse.Click(uIMainGameWindow1, new Point(137, 471)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(14, 23)); // Clic 'Shoot' bouton Mouse.Click(uIShootButton, new Point(36, 10)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(131, 341)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(23, 31)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(37, 13)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(209, 258)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(30, 30)); // Clic 'Shoot' bouton Mouse.Click(uIShootButton, new Point(34, 19)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(16, 17)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(326, 222)); // Clic 'buttonRollDices' bouton Mouse.Click(uIButtonRollDicesButton, new Point(33, 26)); // Clic 'Move' bouton Mouse.Click(uIMoveButton, new Point(28, 15)); // Clic 'imageStars2' image Mouse.Click(uIImageStars2Image, new Point(25, 426)); // Clic 'OK' bouton Mouse.Click(uIOKButton, new Point(36, 11)); // Clic 'Fermer' bouton Mouse.Click(uIFermerButton, new Point(35, 14)); }
public void Click_Select_Resource_Button_From_Resource_Permissions() { Mouse.Click(FindAddResourceButton(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.SecurityTab.SecurityWindow.ResourcePermissions.Row1), new Point(13, 16)); Assert.IsTrue(DialogsUIMap.ServicePickerDialog.Exists, "Service window does not exist after clicking SelectResource button"); }
public void Click_Edit_Deploy_Destination_Server_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.EditDestinationButton); }
/// <summary> /// RecordedMethod1 - Verwenden Sie "RecordedMethod1Params", um Parameter an diese Methode zu übergeben. /// </summary> public void RecordedMethod1() { #region Variable Declarations WinComboBox uICb_startComboBox = this.UITransportAppWindow.UICb_startWindow.UICb_startComboBox; WinButton uIStationsuchenButton = this.UITransportAppWindow.UIStationsuchenWindow.UIStationsuchenButton; WinComboBox uIBittegebenSieIhreStaComboBox = this.UITransportAppWindow.UICb_endWindow.UIBittegebenSieIhreStaComboBox; WinButton uIStationsuchenButton1 = this.UITransportAppWindow.UIStationsuchenWindow1.UIStationsuchenButton; WinButton uIVerbindungsuchenButton = this.UITransportAppWindow.UIVerbindungsuchenWindow.UIVerbindungsuchenButton; WinButton uIZumStationenFahrplanButton = this.UITransportAppWindow.UIZumStationenFahrplanWindow.UIZumStationenFahrplanButton; WinTitleBar uIItemTitleBar = this.UIItemWindow.UIItemWindow1.UIItemTitleBar; WinClient uITransportAppClient = this.UITransportAppWindow.UITransportAppClient; #endregion // "Huob" in "cb_start" Kombinationsfeld auswählen uICb_startComboBox.EditableItem = this.RecordedMethod1Params.UICb_startComboBoxEditableItem; // Klicken "&Station suchen" Schaltfläche Mouse.Click(uIStationsuchenButton, new Point(18, 17)); // "Obermatts" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen uIBittegebenSieIhreStaComboBox.EditableItem = this.RecordedMethod1Params.UIBittegebenSieIhreStaComboBoxEditableItem; // Klicken "Station such&en" Schaltfläche Mouse.Click(uIStationsuchenButton1, new Point(28, 11)); // Klicken "Verbindung suchen" Schaltfläche Mouse.Click(uIVerbindungsuchenButton, new Point(107, 24)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(127, 5)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(134, 3)); // Klicken Titelleiste Mouse.Click(uIItemTitleBar, new Point(-4, 5)); // "huob" in "cb_start" Kombinationsfeld auswählen uICb_startComboBox.EditableItem = this.RecordedMethod1Params.UICb_startComboBoxEditableItem1; // Klicken "&Station suchen" Schaltfläche Mouse.Click(uIStationsuchenButton, new Point(70, 13)); // "obermattstrasse" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen uIBittegebenSieIhreStaComboBox.EditableItem = this.RecordedMethod1Params.UIBittegebenSieIhreStaComboBoxEditableItem1; // Klicken "Station such&en" Schaltfläche Mouse.Click(uIStationsuchenButton1, new Point(22, 18)); // Klicken "Verbindung suchen" Schaltfläche Mouse.Click(uIVerbindungsuchenButton, new Point(144, 16)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(147, 3)); // Klicken "Transport App" Client Mouse.Click(uITransportAppClient, new Point(254, 203)); // Klicken "Transport App" Client Mouse.Click(uITransportAppClient, new Point(254, 203)); }
public void Click_Close_Deploy_Tab_Button() { Assert.IsTrue(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.CloseButton.Exists, "DeployTab close tab button does not exist."); Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.CloseButton, new Point(16, 6)); }
public void Click_SelectAllDependencies_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.ShowDependenciesButton); }
public void Click_Deploy_Tab_Deploy_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.DeployButton); }
public void WhenISelectLocalhostFromTheSourceTab() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.SourceServerExplorer.ExplorerTree.LocalHost.EnvironmentNameCheckCheckBox); }
public void Click_Deploy_Tab_WarewolfStore_Item() { Mouse.Click(UIMap.MainStudioWindow.ComboboxListItemAsWarewolfStore, new Point(214, 9)); }
/// <summary> /// ClickExplorerTab - Use 'ClickExplorerTabParams' to pass parameters into this method. /// </summary> private void ClickExplorerTab() { #region Variable Declarations WpfTabPage uIExplorerTabPage = this.UIBusinessDesignStudioWindow.UIUI_DocManager_AutoIDCustom.UIPART_UnpinnedTabAreaTabList.UIExplorerTabPage; WpfComboBox uIUI_ExplorerServerCbxComboBox = this.UIBusinessDesignStudioWindow.UIExplorerCustom.UIExplorerCustom1.UIUI_ExplorerServerCbxComboBox; WinListItem uIRunninganexistingCodListItem = this.UIScreenAnnotationsWindow.UIList1Window.UIRunninganexistingCodListItem; WinClient uIRunninganexistingCodClient = this.UIRunninganexistingCodWindow.UIRunninganexistingCodClient; WinMenuItem uICloseMenuItem = this.UIItemWindow.UIContextMenu.UICloseMenuItem; WinListItem uIAfterTestListItem = this.UIScreenAnnotationsWindow.UIList1Window.UIAfterTestListItem; WinClient uIAfterTestClient = this.UIAfterTestWindow.UIAfterTestClient; WinMenuItem uIEditTextMenuItem = this.UIItemWindow.UIContextMenu.UIEditTextMenuItem; WinEdit uIItemEdit = this.UITextPropertiesWindow.UIItemWindow.UIItemEdit; WinButton uICloseButton = this.UITextPropertiesWindow.UICloseWindow.UICloseButton; WinButton uICloseButton1 = this.UIScreenAnnotationsWindow.UICloseWindow.UICloseButton; #endregion // Click 'Explorer' tab Mouse.Click(uIExplorerTabPage, new Point(14, 27)); // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys, ModifierKeys.Alt); // Double-Click 'Running an existing Coded UI Test' list item Mouse.DoubleClick(uIRunninganexistingCodListItem, new Point(62, 12)); // Double-Click 'Running an existing Coded UI Test' list item Mouse.DoubleClick(uIRunninganexistingCodListItem, new Point(52, 8)); // Right-Click 'Running an existing Coded UI Test' client Mouse.Click(uIRunninganexistingCodClient, MouseButtons.Right, ModifierKeys.None, new Point(73, 119)); // Click 'Close' menu item Mouse.Click(uICloseMenuItem, new Point(84, 6)); // Double-Click 'AfterTest' list item Mouse.DoubleClick(uIAfterTestListItem, new Point(40, 2)); // Move 'AfterTest' client Mouse.StartDragging(uIAfterTestClient, new Point(130, 86)); Mouse.StopDragging(uIAfterTestClient, -29, -166); // Right-Click 'AfterTest' client Mouse.Click(uIAfterTestClient, MouseButtons.Right, ModifierKeys.None, new Point(130, 82)); // Click 'Edit Text ...' menu item Mouse.Click(uIEditTextMenuItem, new Point(112, 21)); // Type 'I have clicked the "Explorer" tab. A single click is enough for one step.' in text box uIItemEdit.Text = this.ClickExplorerTabParams.UIItemEditText; // Click 'Close' button Mouse.Click(uICloseButton, new Point(28, 10)); // Move 'AfterTest' client Mouse.StartDragging(uIAfterTestClient, new Point(272, 164)); Mouse.StopDragging(uIAfterTestClient, 20, -74); // Click 'Close' button Mouse.Click(uICloseButton1, new Point(23, 6)); // Click 'Explorer' tab Mouse.Click(uIExplorerTabPage, new Point(12, 24)); // Type '{CapsLock}{CapsLock}{CapsLock}{CapsLock}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys1, ModifierKeys.None); // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys2, ModifierKeys.Alt); // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys3, ModifierKeys.Alt); // Right-Click 'AfterTest' client Mouse.Click(uIAfterTestClient, MouseButtons.Right, ModifierKeys.None, new Point(155, 57)); // Click 'Close' menu item Mouse.Click(uICloseMenuItem, new Point(64, 11)); // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys4, ModifierKeys.Alt); // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys5, ModifierKeys.Alt); // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys6, ModifierKeys.Alt); }
public void CheckExpectedResult() { this.treeName = "tVTestCases"; #region Variable Declarations WinComboBox uICBConversationsComboBox = this.UIONVIFClientTestToolWindow.UICBConversationsWindow.UICBConversationsComboBox; WinEdit uITBOutputEdit = this.UIONVIFClientTestToolWindow.UITBOutputWindow.UITBOutputEdit; WinTree uITVTestCasesTree = this.UIONVIFClientTestToolWindow.UITVTestCasesWindow.UITVTestCasesTree; WinTabPage uITestDetailsTabPage = this.UIONVIFClientTestToolWindow.UITCLogWindow.UITestDetailsTabPage; WinList uILVStepsList = this.UIONVIFClientTestToolWindow.UILVStepsWindow.UILVStepsList; #endregion if (test.expectedResults != null) { // Щелкните "Test Details" вкладка uITestDetailsTabPage.WaitForControlReady(); Mouse.Click(uITestDetailsTabPage); foreach (DeviceExpectedResult device in test.expectedResults) { this.mac = device.deviceMAC; foreach (ExpectedResult result in device.expectedResults) { foreach (string s in result.expectedResult.Keys) { mTree0 = result.parentNode0; mTree1 = result.parentNode1; mTree2 = s; this.mTreeItem = this.UIONVIFClientTestToolWindow.UITVTestCasesWindow.UIProfileSTestCasesTreeItem.UIMediaProfileConfigurTreeItem.UIMEDIAPROFILECONFIGURTreeItem1; bool currentResultNotStarted = false; // Щелкните по элементу дерева this.mTreeItem.WaitForControlExist(); Mouse.Click(this.mTreeItem); LogData logData = new LogData(); if (uICBConversationsComboBox.Items.Count != 0) { // выбрать элемент в списке устройств uICBConversationsComboBox.SelectedItem = this.macAndDevice["deviceName"] + " - " + this.macAndDevice[this.mac]; foreach (WinListItem item in uILVStepsList.Items) { TestStep testStep = new TestStep(); testStep.results = item.AccessibleDescription; logData.testSteps.Add(testStep); } } else { currentResultNotStarted = true; } if (currentResultNotStarted) { logData.currentResult = s + " NOT STARTED"; } else { if (logData.testSteps.Count == 0) { logData.currentResult = s + " NOT DETECTED"; } else { if (logData.testSteps.FindAll(C => C.results.Contains("NOT DETECTED")).Count != 0) { logData.currentResult = s + " NOT DETECTED"; } else { if (logData.testSteps.FindAll(C => C.results.Contains("FAILED")).Count != 0) { logData.currentResult = s + " FAILED"; } else { logData.currentResult = s + " PASSED"; } } } } logData.expectedResult = s + " " + result.expectedResult[s]; if (logData.currentResult == logData.expectedResult) { logData.result = "PASSED"; } else { logData.result = "FAILED"; } logData.testPath = this.testPath; logData.deviceMAC = this.mac; this.logData.Add(logData); } } } } }
/// <summary> /// Positivtest1 - Verwenden Sie "Positivtest1Params", um Parameter an diese Methode zu übergeben. /// </summary> public void Positivtest1() { #region Variable Declarations WinEdit uINameEdit = this.UIDebugWindow.UIItemWindow.UIM120LB2FS17ListItem.UINameEdit; WpfListItem uISystemDynamicExpandoListItem = this.UIMainWindowWindow.UILb_vermietungList.UISystemDynamicExpandoListItem; WpfButton uINeuButton = this.UIMainWindowWindow.UIItemCustom.UINeuButton; WpfButton uIItemButton = this.UIMainWindowWindow.UIItemCustom.UIDg_vermietungTable.UIItem0Row.UIElement0AnzeigeindexCell.UIItemButton; WpfText uIAntenerText = this.UIMainWindowWindow.UIUc_selectKundenCustom.UIDg_listeTable.UIItem1Row.UIAntenerCell.UIAntenerText; WpfButton uISpeichernButton = this.UIMainWindowWindow.UIUc_selectKundenCustom.UISpeichernButton; WpfButton uIItemButton1 = this.UIMainWindowWindow.UIItemCustom.UIDg_vermietungTable.UIItem0Row.UIElement0AnzeigeindexCell1.UIItemButton; WpfText uIScottText = this.UIMainWindowWindow.UIUc_selectFahrradCustom.UIDg_listeTable.UIItem1Row.UIScottCell.UIScottText; WpfButton uISpeichernButton1 = this.UIMainWindowWindow.UIUc_selectFahrradCustom.UISpeichernButton; WpfCell uIItem110001120000AMCell = this.UIMainWindowWindow.UIItemCustom.UIDg_vermietungTable.UIItem0Row.UIItem110001120000AMCell; WpfEdit uIItemEdit = this.UIMainWindowWindow.UIItemCustom.UIDg_vermietungTable.UIItem0Row.UIItem110001120000AMCell.UIItemEdit; WpfCell uIItem110001120000AMCell1 = this.UIMainWindowWindow.UIItemCustom.UIDg_vermietungTable.UIItem0Row.UIItem110001120000AMCell1; WpfEdit uIItemEdit1 = this.UIMainWindowWindow.UIItemCustom.UIDg_vermietungTable.UIItem0Row.UIItem110001120000AMCell1.UIItemEdit; WpfButton uISpeichernButton2 = this.UIMainWindowWindow.UIItemCustom.UISpeichernButton; WpfButton uIHauptmenuButton = this.UIMainWindowWindow.UIItemCustom.UIHauptmenuButton; WinButton uISchließenButton = this.UIMainWindowWindow1.UISchließenButton; #endregion // Doppelklicken "Name" Textfeld Mouse.DoubleClick(uINameEdit, new Point(123, 1)); // Klicken "System.Dynamic.ExpandoObject" Listenelement Mouse.Click(uISystemDynamicExpandoListItem, new Point(130, 11)); // Klicken "Neu" Schaltfläche Mouse.Click(uINeuButton, new Point(137, 10)); // Klicken Schaltfläche Mouse.Click(uIItemButton, new Point(27, 12)); // Klicken "Antener" Bezeichnung Mouse.Click(uIAntenerText, new Point(25, 8)); // Klicken "Speichern" Schaltfläche Mouse.Click(uISpeichernButton, new Point(98, 12)); // Klicken Schaltfläche Mouse.Click(uIItemButton1, new Point(23, 5)); // Klicken "Scott" Bezeichnung Mouse.Click(uIScottText, new Point(44, 10)); // Klicken "Speichern" Schaltfläche Mouse.Click(uISpeichernButton1, new Point(144, 22)); // "5/6/2017 8:00:00 AM" in "1/1/0001 12:00:00 AM" Zelle eingeben uIItem110001120000AMCell.Value = this.Positivtest1Params.UIItem110001120000AMCellValue; // '{Tab}' in Textfeld eingeben Keyboard.SendKeys(uIItemEdit, this.Positivtest1Params.UIItemEditSendKeys, ModifierKeys.None); // "5/6/2017 4:00:00 PM" in "1/1/0001 12:00:00 AM" Zelle eingeben uIItem110001120000AMCell1.Value = this.Positivtest1Params.UIItem110001120000AMCell1Value; // '{Enter}' in Textfeld eingeben Keyboard.SendKeys(uIItemEdit1, this.Positivtest1Params.UIItemEditSendKeys1, ModifierKeys.None); // Klicken "Speichern" Schaltfläche Mouse.Click(uISpeichernButton2, new Point(272, 15)); // Klicken "Hauptmenu" Schaltfläche Mouse.Click(uIHauptmenuButton, new Point(304, 10)); // Klicken "Schließen" Schaltfläche Mouse.Click(uISchließenButton, new Point(22, 24)); }
/// <summary> /// RunConformanceTest /// </summary> public void RunConformanceTest() { #region Variable Declarations WinTabPage uIDiagnosticsTabPage = this.UIONVIFClientTestToolWindow.UITCMainWindow.UIDiagnosticsTabPage; //WinButton uIRunConformanceTestButton = this.UIONVIFClientTestToolWindow.UIRunConformanceTestWindow.UIRunConformanceTestButton; WinButton uIRunConformanceTestButton = this.UIONVIFClientTestToolWindow.UIM_ToolStripToolBar.UIRunConformanceTestButton; WinWindow uIОКWindow = this.UIWarningWindow.UIОКWindow; WinList uILVUnitsList = this.UIONVIFClientTestToolWindow.UILVUnitsWindow.UILVUnitsList; #endregion string stepName = ""; try { stepName = "GetFeaturesList"; foreach (DeviceExpectedResult device in this.test.expectedResults) { this.mac = device.deviceMAC; foreach (WinCheckBox listItem in uILVUnitsList.Items) { if (listItem.AccessibleDescription.Contains(device.deviceMAC)) { string name = listItem.AccessibleDescription.Substring(listItem.AccessibleDescription.IndexOf("Name: ") + 6, listItem.AccessibleDescription.IndexOf("; MAC", 11) - 12); this.macAndDevice.Add(this.mac, name); break; } } } WinTabPage uIConformanceTabPage = this.UIONVIFClientTestToolWindow.UITCMainWindow.UIConformanceTabPage; WinEdit uITBProductNameEdit = this.UIONVIFClientTestToolWindow.UITBProductNameWindow.UITBProductNameEdit; stepName = "OpenConformanceTab"; uIConformanceTabPage.WaitForControlReady(); Mouse.Click(uIConformanceTabPage); stepName = "GetClientName"; uITBProductNameEdit.WaitForControlReady(); this.macAndDevice.Add("deviceName", uITBProductNameEdit.Text); // Щелкните "Diagnostics" вкладка stepName = "OpenDiagnosticsTab"; uIDiagnosticsTabPage.WaitForControlReady(10000); Mouse.Click(uIDiagnosticsTabPage); // Щелкните "Run Conformance Test" кнопка stepName = "RunConformance"; uIRunConformanceTestButton.WaitForControlReady(10000); Mouse.Click(uIRunConformanceTestButton); stepName = "CheckFeaturesWarningWindow"; if (uIОКWindow.Exists) { WinButton uIОКButton = this.UIWarningWindow.UIОКWindow.UIОКButton; // Щелкните "ОК" кнопка uIОКButton.WaitForControlReady(); Mouse.Click(uIОКButton); } stepName = "WaitingDone"; WinText text = this.UIONVIFClientTestToolWindow.UISSMainStatusBar.UIItemText; System.Threading.Thread.Sleep(1000); stepName = "WaitingDone2"; text.WaitForControlExist(5000); stepName = "WaitingDone3"; System.Threading.Thread.Sleep(1000); text.WaitForControlCondition(IsStatusDone, 2700000); stepName = "WaitingDone4"; } catch (Exception e) { throw new Exception(String.Format("Substep Name {0}. /n Message: {1}", stepName, e.Message), e); } }
public void Click_Settings_Resource_Permissions_Row1_Add_Resource_Button() { Assert.IsTrue(FindAddWindowsGroupButton(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.SecurityTab.SecurityWindow.ResourcePermissions.Row1).Enabled); Mouse.Click(FindAddResourceButton(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.SecurityTab.SecurityWindow.ResourcePermissions.Row1)); Assert.IsTrue(DialogsUIMap.ServicePickerDialog.Exists, "Service picker dialog does not exist."); }
public void ClickRemoveAllColumnsButton() { var btnRemoveAllColumns = ExcelClient().UIQuandlExcelAddincompPane.UIStepThreePaneCustom.UIRemoveAllButton; Mouse.Click(btnRemoveAllColumns); }
public void Click_Reset_Perfomance_Counter() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.PerfomanceCounterTab.PerfmonViewContent.ResetCounter.ItemHyperlink, new Point(49, 9)); Assert.IsTrue(DialogsUIMap.MessageBoxWindow.Exists, "MessageBoxWindow did not show after clicking reset counters"); Mouse.Click(DialogsUIMap.MessageBoxWindow.OKButton, new Point(50, 12)); }
public void ClickNextButton() { WpfButton btnNext = ExcelClient().UIItemCustom.UINextButton; Mouse.Click(btnNext); }
public void Click_Settings_Security_Resource_Permissions_Add_Resource_Button() { Mouse.Click(FindAddResourceButton(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.SecurityTab.SecurityWindow.ResourcePermissions.Row1), new Point(6, 15)); }
public void ClickInsertButton() { WpfButton btnInsert = ExcelClient().UIItemCustom.UIInsertButton; Mouse.Click(btnInsert); }
public void Click_Studio_Log_File() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.LoggingTab.LogSettingsView.StudioLogs.StudioLogFile.ItemHyperlink, new Point(79, 10)); }
/// <summary> /// RecordedMethod1 - Use 'RecordedMethod1Params' to pass parameters into this method. /// </summary> public void RecordedMethod1() { #region Variable Declarations WpfRadioButton uIRoadBike20RadioButton = this.UIMainWindowWindow.UIRoadBike20RadioButton; WpfComboBox uIComboBoxColorComboBox = this.UIMainWindowWindow.UIComboBoxColorComboBox; WpfCheckBox uISmall1718100CheckBox = this.UIMainWindowWindow.UISmall1718100CheckBox; WpfCheckBox uISingleSpeed20CheckBox = this.UIMainWindowWindow.UISingleSpeed20CheckBox; WpfCheckBox uICarbonSaddle20CheckBox = this.UIMainWindowWindow.UICarbonSaddle20CheckBox; WpfCheckBox uIBullhorn20CheckBox = this.UIMainWindowWindow.UIBullhorn20CheckBox; WpfCheckBox uIRoadWheels30CheckBox = this.UIMainWindowWindow.UIRoadWheels30CheckBox; WpfCheckBox uIRimBrakes20CheckBox = this.UIMainWindowWindow.UIRimBrakes20CheckBox; WpfCheckBox uIUpgradeto3yearwarranCheckBox = this.UIMainWindowWindow.UIUpgradeto3yearwarranCheckBox; WpfButton uISubmitPreferenceButton = this.UIMainWindowWindow.UISubmitPreferenceButton; WinButton uIYesButton = this.UIConfirmationWindow.UIYesWindow.UIYesButton; WpfButton uIClearButton = this.UIMainWindowWindow.UIClearButton; WpfRadioButton uIMountainBike50RadioButton = this.UIMainWindowWindow.UIMountainBike50RadioButton; WpfCheckBox uILarge1920150CheckBox = this.UIMainWindowWindow.UILarge1920150CheckBox; WpfCheckBox uIItem24Speed150CheckBox = this.UIMainWindowWindow.UIItem24Speed150CheckBox; WpfCheckBox uIGelSaddle30CheckBox = this.UIMainWindowWindow.UIGelSaddle30CheckBox; WpfCheckBox uIFlat15CheckBox = this.UIMainWindowWindow.UIFlat15CheckBox; WpfCheckBox uIOffRoadWheels50CheckBox = this.UIMainWindowWindow.UIOffRoadWheels50CheckBox; WinButton uIOKButton = this.UIOKWindow.UIOKButton; WpfCheckBox uIDiscBrakes50CheckBox = this.UIMainWindowWindow.UIDiscBrakes50CheckBox; #endregion // The recording for the application under test '\\napier-mail.napier.ac.uk\students\School of Computing\User Data\40288545\My Profile\Desktop\Presentation\Presentation\Presentation\bin\Debug\Presentation.exe' may not be correct as it is located on a network share. Please install the application on a local path. // Select 'Road Bike £20' radio button uIRoadBike20RadioButton.Selected = this.RecordedMethod1Params.UIRoadBike20RadioButtonSelected; // Select 'Green £20' in 'ComboBoxColor' combo box uIComboBoxColorComboBox.SelectedItem = this.RecordedMethod1Params.UIComboBoxColorComboBoxSelectedItem; // Select 'Small(17"-18") £100' check box uISmall1718100CheckBox.Checked = this.RecordedMethod1Params.UISmall1718100CheckBoxChecked; // Select 'Single Speed £20' check box uISingleSpeed20CheckBox.Checked = this.RecordedMethod1Params.UISingleSpeed20CheckBoxChecked; // Select 'Carbon Saddle £20' check box uICarbonSaddle20CheckBox.Checked = this.RecordedMethod1Params.UICarbonSaddle20CheckBoxChecked; // Select 'Bullhorn £20' check box uIBullhorn20CheckBox.Checked = this.RecordedMethod1Params.UIBullhorn20CheckBoxChecked; // Select 'Road Wheels £30' check box uIRoadWheels30CheckBox.Checked = this.RecordedMethod1Params.UIRoadWheels30CheckBoxChecked; // Select 'Rim Brakes £20' check box uIRimBrakes20CheckBox.Checked = this.RecordedMethod1Params.UIRimBrakes20CheckBoxChecked; // Select 'Upgrade to 3 year warranty £50' check box uIUpgradeto3yearwarranCheckBox.Checked = this.RecordedMethod1Params.UIUpgradeto3yearwarranCheckBoxChecked; // Click 'Submit Preference' button Mouse.Click(uISubmitPreferenceButton, new Point(57, 35)); // Click '&Yes' button Mouse.Click(uIYesButton, new Point(62, 14)); // Click 'Clear' button Mouse.Click(uIClearButton, new Point(78, 24)); // Select 'Mountain Bike £50' radio button uIMountainBike50RadioButton.Selected = this.RecordedMethod1Params.UIMountainBike50RadioButtonSelected; // Select 'Blue £20' in 'ComboBoxColor' combo box uIComboBoxColorComboBox.SelectedItem = this.RecordedMethod1Params.UIComboBoxColorComboBoxSelectedItem1; // Clear 'Small(17"-18") £100' check box uISmall1718100CheckBox.Checked = this.RecordedMethod1Params.UISmall1718100CheckBoxChecked1; // Select 'Large(19"-20") £150' check box uILarge1920150CheckBox.Checked = this.RecordedMethod1Params.UILarge1920150CheckBoxChecked; // Clear 'Single Speed £20' check box uISingleSpeed20CheckBox.Checked = this.RecordedMethod1Params.UISingleSpeed20CheckBoxChecked1; // Select '24-Speed £150' check box uIItem24Speed150CheckBox.Checked = this.RecordedMethod1Params.UIItem24Speed150CheckBoxChecked; // Clear 'Carbon Saddle £20' check box uICarbonSaddle20CheckBox.Checked = this.RecordedMethod1Params.UICarbonSaddle20CheckBoxChecked1; // Select 'Gel Saddle £30' check box uIGelSaddle30CheckBox.Checked = this.RecordedMethod1Params.UIGelSaddle30CheckBoxChecked; // Clear 'Bullhorn £20' check box uIBullhorn20CheckBox.Checked = this.RecordedMethod1Params.UIBullhorn20CheckBoxChecked1; // Select 'Flat £15' check box uIFlat15CheckBox.Checked = this.RecordedMethod1Params.UIFlat15CheckBoxChecked; // Clear 'Road Wheels £30' check box uIRoadWheels30CheckBox.Checked = this.RecordedMethod1Params.UIRoadWheels30CheckBoxChecked1; // Select 'Off-Road Wheels £50' check box uIOffRoadWheels50CheckBox.Checked = this.RecordedMethod1Params.UIOffRoadWheels50CheckBoxChecked; // Clear 'Rim Brakes £20' check box uIRimBrakes20CheckBox.Checked = this.RecordedMethod1Params.UIRimBrakes20CheckBoxChecked1; // Click 'Submit Preference' button Mouse.Click(uISubmitPreferenceButton, new Point(66, 50)); // Click 'OK' button Mouse.Click(uIOKButton, new Point(65, 16)); // Click 'OK' button Mouse.Click(uIOKButton, new Point(56, 15)); // Click 'Clear' button Mouse.Click(uIClearButton, new Point(84, 15)); // Select 'Disc Brakes £50' check box uIDiscBrakes50CheckBox.Checked = this.RecordedMethod1Params.UIDiscBrakes50CheckBoxChecked; // Click 'Submit Preference' button Mouse.Click(uISubmitPreferenceButton, new Point(35, 22)); // Click '&Yes' button Mouse.Click(uIYesButton, new Point(49, 13)); }
public void Select_Fatal_Event_Log() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.LoggingTab.LogSettingsView.LoggingTypesComboBox.ToggleButtonButton); Mouse.Click(MainStudioWindow.FatalOnlylogeventsthCustom); }
/// <summary> /// huobobermattstrasse2 - Verwenden Sie "huobobermattstrasse2Params", um Parameter an diese Methode zu übergeben. /// </summary> public void huobobermattstrasse2() { #region Variable Declarations WinComboBox uICb_startComboBox = this.UITransportAppWindow.UICb_startWindow.UICb_startComboBox; WinButton uIStationsuchenButton = this.UITransportAppWindow.UIStationsuchenWindow.UIStationsuchenButton; WinComboBox uIBittegebenSieIhreStaComboBox = this.UITransportAppWindow.UICb_endWindow.UIBittegebenSieIhreStaComboBox; WinButton uIStationsuchenButton1 = this.UITransportAppWindow.UIStationsuchenWindow1.UIStationsuchenButton; WinButton uIVerbindungsuchenButton = this.UITransportAppWindow.UIVerbindungsuchenWindow.UIVerbindungsuchenButton; WinButton uIZumStationenFahrplanButton = this.UITransportAppWindow.UIZumStationenFahrplanWindow.UIZumStationenFahrplanButton; WinCustom uIItemCustom = this.UICodedUITestsdoVisualWindow.UIItemGroup.UIItemCustom; WinClient uITransportAppClient = this.UITransportAppWindow.UITransportAppClient; #endregion // "Huob" in "cb_start" Kombinationsfeld auswählen uICb_startComboBox.EditableItem = this.huobobermattstrasse2Params.UICb_startComboBoxEditableItem; // Klicken "&Station suchen" Schaltfläche Mouse.Click(uIStationsuchenButton, new Point(26, 7)); // "obermattstrasse" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen uIBittegebenSieIhreStaComboBox.EditableItem = this.huobobermattstrasse2Params.UIBittegebenSieIhreStaComboBoxEditableItem; // Klicken "Station such&en" Schaltfläche Mouse.Click(uIStationsuchenButton1, new Point(32, 14)); // Klicken "Verbindung suchen" Schaltfläche Mouse.Click(uIVerbindungsuchenButton, new Point(125, 23)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(155, 18)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(154, 3)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(154, 3)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(154, 3)); // Klicken Benutzerdefiniertes Steuerelement Mouse.Click(uIItemCustom, new Point(534, 120)); // "huob" in "cb_start" Kombinationsfeld auswählen uICb_startComboBox.EditableItem = this.huobobermattstrasse2Params.UICb_startComboBoxEditableItem1; // Klicken "Transport App" Client Mouse.Click(uITransportAppClient, new Point(313, 58)); // Klicken "&Station suchen" Schaltfläche Mouse.Click(uIStationsuchenButton, new Point(41, 12)); // "kreuz" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen uIBittegebenSieIhreStaComboBox.EditableItem = this.huobobermattstrasse2Params.UIBittegebenSieIhreStaComboBoxEditableItem1; // Klicken "Station such&en" Schaltfläche Mouse.Click(uIStationsuchenButton1, new Point(26, 9)); // "Schaffhausen, Kreuz" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen uIBittegebenSieIhreStaComboBox.SelectedItem = this.huobobermattstrasse2Params.UIBittegebenSieIhreStaComboBoxSelectedItem; // Klicken "Verbindung suchen" Schaltfläche Mouse.Click(uIVerbindungsuchenButton, new Point(73, 24)); // Klicken "Verbindung suchen" Schaltfläche Mouse.Click(uIVerbindungsuchenButton, new Point(133, 9)); // Klicken "Transport App" Client Mouse.Click(uITransportAppClient, new Point(226, 197)); // Klicken "Zum Stationen Fahrplan" Schaltfläche Mouse.Click(uIZumStationenFahrplanButton, new Point(141, 4)); // Klicken "Transport App" Client Mouse.Click(uITransportAppClient, new Point(242, 198)); }
public void Select_PerfomanceCounterTab() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SettingsTab.WorksurfaceContext.SettingsView.TabList.PerfomanceCounterTab, new Point(124, 14)); }
public void Click_Deploy_Tab_Source_Server_Edit_Button() { Mouse.Click(MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.EditSourceButton, new Point(13, 8)); }