[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 SaveNewServerSource_GivenSourceName() { //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"); 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 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 EditServerSource_LoadCorrectly() { 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)."); UIMap._window.Get(SearchCriteria.ByAutomationId("Text")).Enter("localhost"); UIMap._window.Get <RadioButton>(SearchCriteria.ByAutomationId("WindowsRadioButton")).Click(); 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("localhost", UIMap._window.Get <TextBox>(SearchCriteria.ByAutomationId("Text")).Text, "The server name Texbox value is not set to localhost."); }
public void EditServerSource_LoadCorrectly() { const string ExistingSourceName = "ExistingCodedUITestServerSource"; 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.Click_UserButton_On_ServerSourceTab(); ServerSourceUIMap.Enter_RunAsUser_On_ServerSourceTab("IntegrationTester", "I73573r0"); 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("IntegrationTester", ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.WorkSurfaceContext.UsernameTextBox.Text, "The user name Texbox value is not set to Intergration Testet."); }
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 ClickingSave_ThenPressEnter_SavesServerResource_AndClosesSaveDialog() { ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu(); ServerSourceUIMap.Select_http_From_Server_Source_Wizard_Address_Protocol_Dropdown(); ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("tst-ci-remote"); ServerSourceUIMap.Select_Server_Authentication_Public(); 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(); Point point; DialogsUIMap.SaveDialogWindow.WaitForControlCondition(control => !control.TryGetClickablePoint(out point), 60000); Assert.IsFalse(DialogsUIMap.SaveDialogWindow.Exists); }
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); }
public void Try_Create_Server_Source_On_Restricted_Server() { var ServerSourceName = "Try_Create_Server_Source_On_Restricted_Server"; var ServerSourceDefinitionXml = @"\\tst-ci-remote.dev2.local\c$\ProgramData\Warewolf\Resources\" + ServerSourceName + ".xml"; var ServerSourceDefinitionBite = @"\\tst-ci-remote.dev2.local\c$\ProgramData\Warewolf\Resources\" + ServerSourceName + ".bite"; try { ExplorerUIMap.ConnectToRestrictedRemoteServer(); UIMap.WaitForControlVisible(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.FirstRemoteServer.FirstItem); if (File.Exists(ServerSourceDefinitionXml)) { File.Delete(ServerSourceDefinitionXml); ExplorerUIMap.Click_Explorer_Refresh_Button(); } if (File.Exists(ServerSourceDefinitionBite)) { File.Delete(ServerSourceDefinitionBite); ExplorerUIMap.Click_Explorer_Refresh_Button(); } ExplorerUIMap.Click_NewServerButton_From_ExplorerConnectControl(); ServerSourceUIMap.Select_http_From_Server_Source_Wizard_Address_Protocol_Dropdown(); ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("localhost"); ServerSourceUIMap.Select_Server_Authentication_Public(); 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(); UIMap.Save_With_Ribbon_Button_And_Dialog(ServerSourceName); } finally { if (File.Exists(ServerSourceDefinitionXml)) { File.Delete(ServerSourceDefinitionXml); Assert.Fail("Created new server source on server without permission to do so."); } else if (File.Exists(ServerSourceDefinitionBite)) { File.Delete(ServerSourceDefinitionBite); Assert.Fail("Created new server source on server without permission to do so."); } Keyboard.SendKeys(UIMap.MainStudioWindow, "^%{F4}"); } }