[Ignore] //TODO: Re-introduce this test once the move to the new domain (premier.local) is done public void SaveNewServerSource_GivenSourceName() { using (var _containerOps = new Depends(Depends.ContainerType.CIRemote)) { //Create Source ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu(); ServerSourceUIMap.Select_http_From_Server_Source_Wizard_Address_Protocol_Dropdown(); ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("tst-ci-remote.premier.local"); Keyboard.SendKeys("{ESC}"); ServerSourceUIMap.Select_Server_Authentication_User(); ServerSourceUIMap.Enter_RunAsUser_On_ServerSourceTab("WarewolfAdmin", "W@rEw0lf@dm1n"); Assert.IsTrue( ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan .ServerSourceTab.WorkSurfaceContext.NewServerSource.TestConnectionButton.Enabled, "Test Connection button not enabled"); ServerSourceUIMap.Click_Server_Source_Wizard_Test_Connection_Button_For_Valid_Server_Source(); //Save Source const string sourceName = "NewCodedUITestServerSource"; UIMap.Save_With_Ribbon_Button_And_Dialog(sourceName); ExplorerUIMap.Filter_Explorer(sourceName); Assert.IsTrue( ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem .Exists, "Source did not save in the explorer UI."); } }
public void CreateNewServerSource_GivenTabIsOpenedUserButtonSelected_ShouldHaveCredentialsControls() { //Create Source ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu(); ServerSourceUIMap.Select_Server_Authentication_User(); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.UserRadioButton.Selected, "User Radio Button not selected"); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.UsernameTextBox.Enabled, "Username Textbox not enabled"); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.PasswordTextBox.Enabled, "Password Textbox not enabled"); }
public void EditServerSource_LoadCorrectly() { _containerOps = TestLauncher.StartLocalCIRemoteContainer(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TestResults")); const string ExistingSourceName = "ExistingUITestServerSource"; ExplorerUIMap.Select_Source_From_ExplorerContextMenu(ExistingSourceName); ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WaitForControlReady(60000); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.Exists, "Server Source Tab does not exist after clicking edit on an explorer server source context menu and waiting 1 minute (60000ms)."); ServerSourceUIMap.Select_Server_Authentication_User(); ServerSourceUIMap.Enter_RunAsUser_On_ServerSourceTab("WarewolfAdmin", "W@rEw0lf@dm1n"); ServerSourceUIMap.Click_Server_Source_Wizard_Test_Connection_Button_For_Valid_Server_Source(); UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog(); ServerSourceUIMap.Click_Close_Server_Source_Wizard_Tab_Button(); ExplorerUIMap.Select_Source_From_ExplorerContextMenu(ExistingSourceName); Assert.AreEqual("WarewolfAdmin", ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.UsernameTextBox.Text, "The user name Texbox value is not set to Intergration Testet."); }
public void SaveNewServerSource_GivenSourceName() { _containerOps = TestLauncher.StartLocalCIRemoteContainer(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TestResults")); //Create Source ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu(); ServerSourceUIMap.Select_http_From_Server_Source_Wizard_Address_Protocol_Dropdown(); ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("test-remotewarewolf"); ServerSourceUIMap.Select_Server_Authentication_User(); ServerSourceUIMap.Enter_RunAsUser_On_ServerSourceTab("WarewolfAdmin", "W@rEw0lf@dm1n"); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.NewServerSource.TestConnectionButton.Enabled, "Test Connection button not enabled"); ServerSourceUIMap.Click_Server_Source_Wizard_Test_Connection_Button_For_Valid_Server_Source(); //Save Source const string sourceName = "NewCodedUITestServerSource"; UIMap.Save_With_Ribbon_Button_And_Dialog(sourceName); ExplorerUIMap.Filter_Explorer(sourceName); Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.Exists, "Source did not save in the explorer UI."); }
public void ClickingSave_ThenPressEnter_SavesServerResource_AndClosesSaveDialog() { _containerOps = TestLauncher.StartLocalCIRemoteContainer(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TestResults")); ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu(); ServerSourceUIMap.Select_http_From_Server_Source_Wizard_Address_Protocol_Dropdown(); ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("test-remotewarewolf"); ServerSourceUIMap.Select_Server_Authentication_User(); ServerSourceUIMap.Enter_RunAsUser_On_ServerSourceTab("WarewolfAdmin", "W@rEw0lf@dm1n"); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.NewServerSource.TestConnectionButton.Enabled, "Test Connection button not enabled"); ServerSourceUIMap.Click_Server_Source_Wizard_Test_Connection_Button_For_Valid_Server_Source(); Mouse.Click(UIMap.MainStudioWindow.SideMenuBar.SaveButton); DialogsUIMap.Enter_Valid_Service_Name_Into_Save_Dialog("ClickSaveEnterSavesServerResource"); WorkflowTabUIMap.Enter_Using_Shortcut(); DialogsUIMap.SaveDialogWindow.WaitForControlCondition(control => !control.TryGetClickablePoint(out Point point), 60000); Assert.IsFalse(DialogsUIMap.SaveDialogWindow.Exists); }
[Ignore] //TODO: Re-introduce this test once the move to the new domain (premier.local) is done public void ClickingSave_ThenPressEnter_SavesServerResource_AndClosesSaveDialog() { _containerOps = new Depends(Depends.ContainerType.CIRemote); ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu(); ServerSourceUIMap.Select_http_From_Server_Source_Wizard_Address_Protocol_Dropdown(); ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("tst-ci-remote.premier.local"); Keyboard.SendKeys("{ESC}"); ServerSourceUIMap.Select_Server_Authentication_User(); ServerSourceUIMap.Enter_RunAsUser_On_ServerSourceTab("WarewolfAdmin", "W@rEw0lf@dm1n"); Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.NewServerSource.TestConnectionButton.Enabled, "Test Connection button not enabled"); ServerSourceUIMap.Click_Server_Source_Wizard_Test_Connection_Button_For_Valid_Server_Source(); Mouse.Click(UIMap.MainStudioWindow.SideMenuBar.SaveButton); DialogsUIMap.Enter_Valid_Service_Name_Into_Save_Dialog("ClickSaveEnterSavesServerResource"); WorkflowTabUIMap.Enter_Using_Shortcut(); DialogsUIMap.SaveDialogWindow.WaitForControlCondition(control => !control.TryGetClickablePoint(out Point point), 60000); Assert.IsFalse(DialogsUIMap.SaveDialogWindow.Exists); }