예제 #1
0
 public void DuplicateFolder_ThenAddsNewFolderItem()
 {
     ExplorerUIMap.Filter_Explorer("Examples");
     ExplorerUIMap.Duplicate_FirstResource_From_ExplorerContextMenu();
     WorkflowTabUIMap.Enter_Duplicate_workflow_name("Duplicated_ExampleFolder");
     DialogsUIMap.Click_Duplicate_From_Duplicate_Dialog();
 }
예제 #2
0
 public void Expand_Recordset_In_Debug_Output()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     ExplorerUIMap.Filter_Explorer(workflow);
     WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.EnsureClickable(new Point(307, 128));
     WorkflowTabUIMap.Drag_Explorer_Item_To_Design_Surface();
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.Connector1.Exists, "No connectors exist on design surface after dragging tool onto start node autoconnector.");
     Assert.AreEqual("[[person().name]]", ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.Flowchart1.Service.ServiceToolLargeView.UIOutputsDataGridTable.UIUI_ActivityGridRow_0Row.UIItemDev2StudioViewMoCell.UIItemComboBox.UITextEdit.Text);
     UIMap.Press_F6();
     UIMap._window.Get <TestStack.White.UIItems.TreeItems.TreeNode>(SearchCriteria.ByAutomationId("Service"))
     .Get <TestStack.White.UIItems.Button>(SearchCriteria.ByAutomationId("Expander"))
     .Click();
     while (UIMap._window.Get <TestStack.White.UIItems.Button>(SearchCriteria.ByAutomationId("HeaderSite"))
            .IsOffScreen || UIMap._window.Get <TestStack.White.UIItems.Button>(SearchCriteria.ByAutomationId("HeaderSite"))
            .ClickablePoint.Y > (UIMap._window.Bounds.Bottom - 50))
     {
         UIMap._window.Get <TestStack.White.UIItems.Panel>(SearchCriteria.ByAutomationId("instScroll")).ScrollBars.Vertical.ScrollDown();
     }
     UIMap._window.Get <TestStack.White.UIItems.Button>(SearchCriteria.ByAutomationId("HeaderSite")).Click();
     Assert.IsTrue(UIMap._window.Get <TestStack.White.UIItems.TreeItems.TreeNode>(SearchCriteria.ByAutomationId("End"))
                   .GetMultiple <TestStack.White.UIItems.Label>(SearchCriteria.ByAutomationId("UI_DebugOutputVariableTextBlock_AutoID")).Length == 3);
     ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.Flowchart1.Service.ServiceToolLargeView.UIOutputsDataGridTable.UIUI_ActivityGridRow_0Row.UIItemDev2StudioViewMoCell.UIItemComboBox.UITextEdit.Text = "[[person(*).name]]";
     UIMap.Press_F6();
     Mouse.Click(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIF6ExecuteOnFocusLostTreeItem.UIPersonnameExpander.PersonOutputButton);
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIF6ExecuteOnFocusLostTreeItem.UIPersonnameExpander.FirstRowOfRecordset.Exists);
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIF6ExecuteOnFocusLostTreeItem.UIPersonnameExpander.ThirdRowOfRecordset.Exists);
 }
예제 #3
0
 [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.");
     }
 }
 // ReSharper disable once InconsistentNaming
 public void Create_Save_And_Edit_SQLServerSource_From_ExplorerContextMenu_UITests()
 {
     //Create Source
     ExplorerUIMap.Click_NewSQLServerSource_From_ExplorerContextMenu();
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.Exists, "SQL Server Source does not exist.");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.ManageDatabaseSourceControl.ServerComboBox.Enabled, "SQL Server Address combobox is disabled new Sql Server Source wizard tab");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.UserRadioButton.Enabled, "User authentification rabio button is not enabled.");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.WindowsRadioButton.Enabled, "Windows authentification type radio button not enabled.");
     Assert.IsFalse(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.TestConnectionButton.Enabled, "Test Connection Button is enabled.");
     DBSourceUIMap.Click_UserButton_On_DatabaseSource();
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.UserNameTextBox.Exists);
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.PasswordTextBox.Exists);
     DBSourceUIMap.Enter_Text_Into_DatabaseServer_Tab("RSAKLFSVRDEV");
     DBSourceUIMap.IEnterRunAsUserTestUserOnDatabaseSource("testuser", "test123");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.TestConnectionButton.Enabled, "Test Connection Button is not enabled.");
     DBSourceUIMap.Click_DB_Source_Wizard_Test_Connection_Button();
     DBSourceUIMap.Select_Dev2TestingDB_From_DB_Source_Wizard_Database_Combobox();
     //Save Source
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save ribbon button is not enabled after successfully testing new 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.");
     //Edit Source
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.Exists, "SQL Server Source Tab does not exist");
     DBSourceUIMap.Click_WindowsButton_On_DatabaseSource();
     DBSourceUIMap.Click_DB_Source_Wizard_Test_Connection_Button();
     DBSourceUIMap.Select_master_From_DB_Source_Wizard_Database_Combobox();
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
     DBSourceUIMap.Click_Close_DB_Source_Wizard_Tab_Button();
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.WindowsRadioButton.Selected);
     Assert.AreEqual("master", DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.ManageDatabaseSourceControl.DatabaseComboxBox.masterText.DisplayText);
 }
예제 #5
0
 public void MergeFolders_InFileredExplorer_UITest()
 {
     ExplorerUIMap.Filter_Explorer("DragAndDropMergeFolder");
     ExplorerUIMap.Drag_Explorer_First_Item_Onto_Second_Item();
     ExplorerUIMap.Filter_Explorer("DragAndDropMergeResource1");
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.FirstSubItem.Exists, "Resource did not merge into folder after drag and drop in the explorer UI.");
 }
 // ReSharper disable once InconsistentNaming
 public void Create_Save_And_Edit_SharepointSource_From_ExplorerContextMenu_UITests()
 {
     //Create Source
     ExplorerUIMap.Select_NewSharepointSource_From_ExplorerContextMenu();
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.Exists, "Sharepoint Source Tab does not exist.");
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.ServerNameEdit.Enabled, "Server Name Textbox is not enabled.");
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.WindowsRadioButton.Enabled, "Windows Radio button is not enabled.");
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.UserRadioButton.Enabled, "User Radio button is not enabled.");
     Assert.IsFalse(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.TestConnectionButton.Enabled, "Test Connection button is enabled.");
     Assert.IsFalse(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.CancelTestButton.Enabled, "Cancel Test button is  enabled.");
     SharepointSourceUIMap.Enter_TextIntoAddress_In_SharepointServiceSourceTab();
     SharepointSourceUIMap.Click_UserButton_On_SharepointSource();
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.UserNameTextBox.Exists);
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.PasswordTextBox.Exists);
     SharepointSourceUIMap.Enter_Sharepoint_ServerSource_User_Credentials();
     SharepointSourceUIMap.Click_Sharepoint_Server_Source_TestConnection();
     SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.TestConnectionButton.DrawHighlight();
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save ribbon button is not enabled after successfully testing new 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.");
     SharepointSourceUIMap.Click_Close_SharepointSource_Tab_Button();
     //Edit Source
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.Exists, "Sharepoint Source Tab does not exist.");
     SharepointSourceUIMap.Click_WindowsButton_On_SharepointSource();
     SharepointSourceUIMap.Click_Sharepoint_Server_Source_TestConnection();
     SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.TestConnectionButton.DrawHighlight();
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
     SharepointSourceUIMap.Click_Close_SharepointSource_Tab_Button();
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(SharepointSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.SharepointServerSourceTab.SharepointServerSourceView.SharepointView.WindowsRadioButton.Selected);
 }
예제 #7
0
 public void CreateNewFolderInLocalHostUsingShortcutKeysUITest()
 {
     ExplorerUIMap.Click_LocalHost_Once();
     ExplorerUIMap.Create_New_Folder_Using_Shortcut();
     ExplorerUIMap.Filter_Explorer("New Folder");
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.Exists);
 }
예제 #8
0
 public void DuplicateResource_ThenAddsNewItemItem()
 {
     ExplorerUIMap.Filter_Explorer("Hello World");
     ExplorerUIMap.Duplicate_FirstResource_From_ExplorerContextMenu();
     WorkflowTabUIMap.Enter_Duplicate_workflow_name("Duplicated_HelloWorld");
     DialogsUIMap.Click_Duplicate_From_Duplicate_Dialog();
 }
예제 #9
0
 public void Create_Save_And_Edit_PostgreSQLSource_From_ExplorerContextMenu_UITests()
 {
     //Create Source
     ExplorerUIMap.Select_NewPostgreSQLSource_From_ExplorerContextMenu();
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.Exists, "PostgreSQL Source Tab does not exist");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.ManageDatabaseSourceControl.ServerComboBox.Enabled, "PostgreSQL Server Address combobox is disabled new PostgreSQL Source wizard tab");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.UserRadioButton.Enabled, "User authentification rabio button is not enabled.");
     Assert.IsFalse(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.TestConnectionButton.Enabled, "Test Connection Button is enabled.");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.UserNameTextBox.Enabled, "Username textbox is not enabled.");
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.PasswordTextBox.Enabled, "Password textbos is not enabled.");
     DBSourceUIMap.Enter_Text_Into_DatabaseServer_Tab(_dependency.Container.IP);
     DBSourceUIMap.IEnterRunAsUserPostGresOnDatabaseSource();
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.TestConnectionButton.Enabled, "Test Connection Button is not enabled.");
     DBSourceUIMap.Click_DB_Source_Wizard_Test_Connection_Button();
     DBSourceUIMap.Select_postgres_From_DB_Source_Wizard_Database_Combobox();
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save ribbon button is not enabled after successfully testing new 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.");
     DBSourceUIMap.Click_Close_DB_Source_Wizard_Tab_Button();
     //Edit Source
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.Exists, "PostgreSQL Source Tab does not exist");
     DBSourceUIMap.Select_TestDB_From_DB_Source_Wizard_Database_Combobox();
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
     DBSourceUIMap.Click_Close_DB_Source_Wizard_Tab_Button();
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.AreEqual("TestDB", DBSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DBSourceTab.WorkSurfaceContext.ManageDatabaseSourceControl.DatabaseComboxBox.TestDBText.DisplayText);
 }
예제 #10
0
 public void Sequence_DraggingResourceFromFolder_UITest()
 {
     Assert.IsTrue(ControlFlowToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.Sequence.Exists, "Sequence on the design surface does not exist");
     ExplorerUIMap.Filter_Explorer(HelloWorld);
     ControlFlowToolsUIMap.Drag_Explorer_First_Item_Onto_Sequence();
     Assert.IsTrue(ControlFlowToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.Sequence.SequenceSmallView.ElementTable.AssignObject.Exists, "Hello World Worflow does not exist.");
 }
예제 #11
0
 public void Create_Save_And_Edit_EmailSource_From_ExplorerContextMenu_UITests()
 {
     //Create Source
     ExplorerUIMap.Select_NewEmailSource_From_ExplorerContextMenu();
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.Exists, "Email Source Tab does not exist");
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.HostTextBoxEdit.Exists, "Host textbox does not exist after opening Email source tab");
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.UserNameTextBoxEdit.Exists, "Username textbox does not exist after opening Email source tab");
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.PasswordTextBoxEdit.Exists, "Password textbox does not exist after opening Email source tab");
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.PortTextBoxEdit.Exists, "Port textbox does not exist after opening Email source tab");
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.TimeoutTextBoxEdit.Exists, "Timeout textbox does not exist after opening Email source tab");
     EmailSourceUIMap.Enter_Text_Into_EmailSource_Tab();
     EmailSourceUIMap.Click_EmailSource_TestConnection_Button();
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.ToTextBoxEdit.ItemImage.Exists, "Connection test Failed");
     //Save Source
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save ribbon button is not enabled after successfully testing new 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.");
     EmailSourceUIMap.Click_Close_EmailSource_Tab();
     //Edit Source
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.Exists, "Email Source Tab does not exist");
     EmailSourceUIMap.Edit_Timeout_On_EmailSource();
     EmailSourceUIMap.Click_EmailSource_TestConnection_Button();
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
     EmailSourceUIMap.Click_Close_EmailSource_Tab();
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.AreEqual("2000", EmailSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.EmailSourceTab.SendTestModelsCustom.TimeoutTextBoxEdit.Text);
 }
예제 #12
0
 // ReSharper disable once InconsistentNaming
 public void Create_Save_And_Edit_WebServiceSource_From_ExplorerContextMenu_UITests()
 {
     //Create Source
     ExplorerUIMap.Click_NewWebSource_From_ExplorerContextMenu();
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.AddressTextbox.Enabled, "Web server address textbox not enabled.");
     Assert.IsFalse(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.TestConnectionButton.Enabled, "Test Connection button is enabled");
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.AnonymousRadioButton.Enabled, "Anonymous Radio button is not enabled");
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.UserRadioButton.Enabled, "User Radio button is not enabled");
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.DefaultQueryTextBox.Enabled, "Default Query Textbox is not enabled");
     WebSourceUIMap.Click_UserButton_On_WebServiceSourceTab();
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.UserNameTextBox.Enabled, "Username Textbox not enabled");
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.PasswordTextBox.Enabled, "Password Textbox not enabled");
     WebSourceUIMap.Enter_TextIntoAddress_On_WebServiceSourceTab("http://RSAKLFSVRTFSBLD:9810");
     WebSourceUIMap.Enter_RunAsUser_On_WebServiceSourceTab();
     WebSourceUIMap.Enter_DefaultQuery_On_WebServiceSourceTab("");
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.TestConnectionButton.Enabled, "Test Connection button not enabled");
     WebSourceUIMap.Click_NewWebSource_TestConnectionButton();
     //Save Source
     UIMap.MainStudioWindow.SideMenuBar.SaveButton.WaitForControlEnabled(60000);
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save Ribbon Button is not enabled after clicking new web source test button and waiting one minute (60000ms).");
     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.");
     //Edit Source
     WebSourceUIMap.Click_Close_Web_Source_Wizard_Tab_Button();
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.AddressTextbox.Enabled, "Web server address textbox not enabled.");
     WebSourceUIMap.Click_AnonymousButton_On_WebServiceSourceTab();
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
     WebSourceUIMap.Click_Close_Web_Source_Wizard_Tab_Button();
     ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
     Assert.IsTrue(WebSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WebSourceTab.WorkSurfaceContext.AnonymousRadioButton.Selected);
 }
예제 #13
0
 // ReSharper disable once InconsistentNaming
 public void Create_Save_And_Open_RabbitMQSource_From_ExplorerContextMenu_UITests()
 {
     using (ContainerLauncher RabbitMQContainer = TestLauncher.StartLocalRabbitMQContainer(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TestResults")))
     {
         //Create Source
         ExplorerUIMap.Select_NewRabbitMQSource_From_ExplorerContextMenu();
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.Exists, "RabbitMQ Source Tab does not exist");
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.HostTextBoxEdit.Enabled, "Host Textbox is not enabled");
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.PortTextBoxEdit.Enabled, "Port Textbox is not enabled");
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.UserNameTextBoxEdit.Enabled, "Username Textbox is not enabled");
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.PasswordTextBoxEdit.Enabled, "Password Textbox is not enabled");
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.VirtualHostTextBoxEdit.Enabled, "Virtual Host Textbox is not enabled");
         Assert.IsFalse(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.TestConnectionButton.Enabled, "Test Connection button is enabled");
         RabbitMQSourceUIMap.Enter_Text_On_RabbitMQSourceTab();
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.TestConnectionButton.Enabled, "Test Connection button is not enabled");
         RabbitMQSourceUIMap.Click_RabbitMQSource_TestConnectionButton();
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.RabbitMQSourceCustom.ItemImage.Exists, "Test Connection successful image does not appear.");
         Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save ribbon button is not enabled after successfully testing new 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.");
         RabbitMQSourceUIMap.Click_Close_RabbitMQSource_Tab_Button();
         //Open Source
         ExplorerUIMap.Select_Source_From_ExplorerContextMenu(SourceName);
         Assert.IsTrue(RabbitMQSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.RabbitMqSourceTab.Exists, "RabbitMQ Source Tab does not exist");
     }
 }
예제 #14
0
 public void Search_ExplorerResource()
 {
     ExplorerUIMap.Filter_Explorer("Hello World");
     Keyboard.SendKeys("{ENTER}");
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.Exists);
     Assert.IsFalse(UIMap.ControlExistsNow(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.SecondItem), "Second Item exists in the Explorer Exists");
 }
예제 #15
0
 public void DeleteDialog_PressEscape_ClosesDialogWindow()
 {
     ExplorerUIMap.Filter_Explorer("Hello World");
     ExplorerUIMap.Delete_FirstResource_From_ExplorerContextMenu();
     DialogsUIMap.WhenIHitEscapeKeyOnTheKeyboardOnMessagebox();
     Assert.IsFalse(UIMap.ControlExistsNow(DialogsUIMap.MessageBoxWindow), "Delete dialog still open after pressing escape key.");
 }
예제 #16
0
        public void RenameFolder_UsingF2_Shortcut()
        {
            var renamedFolder = Environment.ExpandEnvironmentVariables("%programdata%") + @"\Warewolf\Resources\";

            ExplorerUIMap.Filter_Explorer(Folder);
            ExplorerUIMap.Rename_Folder_Using_Shortcut(Folder + "_Renamed");
            Assert.IsTrue(Directory.Exists(renamedFolder + Folder + "_Renamed"), "Folder did not rename");
        }
예제 #17
0
 public void OpenManyNewWorkflowTabs(string numberOfTabs)
 {
     ExplorerUIMap.Filter_Explorer("All Tools");
     for (var i = int.Parse(numberOfTabs); i > 0; i--)
     {
         ExplorerUIMap.Open_Explorer_First_Item_With_Double_Click();
     }
 }
예제 #18
0
 public void Change_Value_On_HelloWorld_Assign_Marks_Workflow_As_Dirty_UITest()
 {
     ExplorerUIMap.Filter_Explorer("Hello World");
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     DataToolsUIMap.Click_Assign_Row_1_Value_TextBox();
     DataToolsUIMap.Add_Space_At_The_End_Of_Row1_Value();
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled);
 }
예제 #19
0
 public void Delete_ExplorerResource()
 {
     ExplorerUIMap.Filter_Explorer(flowSwitch);
     ExplorerUIMap.Delete_FirstResource_From_ExplorerContextMenu();
     DialogsUIMap.Click_MessageBox_Yes();
     UIMap.WaitForSpinner(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.Spinner);
     ExplorerUIMap.Click_Explorer_Refresh_Button();
 }
예제 #20
0
 public void DeletedRemoteServer_RemoveItemFromTree()
 {
     ExplorerUIMap.Filter_Explorer(DeleteRemoteServer);
     ExplorerUIMap.Delete_FirstResource_From_ExplorerContextMenu();
     Assert.IsTrue(DialogsUIMap.MessageBoxWindow.Exists);
     DialogsUIMap.Click_MessageBox_Yes();
     Assert.IsFalse(UIMap.ControlExistsNow(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem), "Remote server delete was not successful.");
 }
예제 #21
0
 public void CreateTestFromDebugButtonDisabledOnUnsavedWorkflow()
 {
     ExplorerUIMap.Filter_Explorer("VersionsTestWorkflow");
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     UtilityToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.Comment.LargeViewContentCustom.CommentComboBox.TextEdit.Text = "Matthew";
     UIMap.Press_F6();
     Assert.IsFalse(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.CreateTestFromDebugButton.Enabled, "Create test from debug output button is enabled on unsaved workflow.");
 }
예제 #22
0
 public void Open_SqlServer_Contains_Outputs()
 {
     ExplorerUIMap.Filter_Explorer("UITestingSqlServerOutputs");
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.Exists, "Source did not save in the explorer UI.");
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     DatabaseToolsUIMap.SqlServerDatabaseTool_ChangeView_With_DoubleClick();
     Assert.IsTrue(DatabaseToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.SqlServerDatabase.LargeView.RecordSetTextBoxEdit.Enabled, "Recordset textbox is not enabled on SQL Server database connector tool large view.");
 }
예제 #23
0
 public void Executing_Sql_Procedure_With_Errors()
 {
     ExplorerUIMap.Filter_Explorer("Raise_Hell_Procedure");
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.Exists, "Source did not save in the explorer UI.");
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     UIMap.Press_F6();
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UISQLServerDatabaseTreeItem.UISQLErrorError15700seText.Exists);
 }
예제 #24
0
 public void Delete_A_Version_Should_Remove_Version()
 {
     ExplorerUIMap.Filter_Explorer("Hello World");
     ExplorerUIMap.Select_ShowVersionHistory_From_ExplorerContextMenu();
     ExplorerUIMap.Delete_FirstResourceVersion_From_ExplorerContextMenu();
     DialogsUIMap.Click_Yes_On_The_Confirm_Delete();
     Assert.IsFalse(UIMap.ControlExistsNow(DialogsUIMap.MessageBoxWindow));
 }
예제 #25
0
 public void Shortcut_Control_S_Saves_Dirty_Workflows()
 {
     ExplorerUIMap.Filter_Explorer("Shortcut_Control_S_Saves_Dirty_Workflows");
     ExplorerUIMap.Open_ExplorerFirstItem_From_ExplorerContextMenu();
     WorkflowTabUIMap.Make_Workflow_Savable();
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled);
     WorkflowTabUIMap.Save_Workflow_Using_Shortcut();
     Assert.IsFalse(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled);
 }
예제 #26
0
 public void Shortcut_Control_W_Opens_NewWorkflow_In_The_Selected_Folder()
 {
     ExplorerUIMap.Filter_Explorer(Folder);
     ExplorerUIMap.Click_Explorer_Localhost_First_Item();
     ExplorerUIMap.Create_New_Workflow_In_Explorer_First_Item_With_Shortcut();
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.Exists);
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.TopScrollViewerPane.HttpLocalHostText.Exists);
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.TopScrollViewerPane.HttpLocalHostText.NewWorkflowHyperLink.Alt.Contains(Folder));
 }
예제 #27
0
 public void Can_SAve_Tests_With_Grided_Tools()
 {
     ExplorerUIMap.Filter_Explorer(Resource);
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
     Assert.IsFalse(MainStudioWindow.SideMenuBar.SaveButton.Enabled);
 }
예제 #28
0
 public void Open_Merge_WitH_Resource_History_Open_In_Exporer()
 {
     ExplorerUIMap.Filter_Explorer(Merge_FileNames);
     ExplorerUIMap.Open_ExplorerFirstSubItemVersionHistory_From_ExplorerContextMenu();
     ExplorerUIMap.Click_Explorer_Localhost_First_Item_First_History_Item();
     ExplorerUIMap.RightClick_Explorer_Localhost_First_Item_First_SubItem();
     Mouse.Click(UIMap.MainStudioWindow.ExplorerContextMenu.Merge);
     Assert.IsFalse(UIMap.ControlExistsNow(MergeDialogUIMap.MergeDialogWindow.MergeResourceVersionList.ViewListItem.ItemRadioButton.UICurrentText), "Can not Merge Current with current.");
 }
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     ExplorerUIMap.Filter_Explorer(HelloWorld);
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
 }
예제 #30
0
 public void ShowVersionHistory_ForResource()
 {
     ExplorerUIMap.Filter_Explorer("ShowVersionsTestWorkflow");
     ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
     WorkflowTabUIMap.Make_Workflow_Savable();
     WorkflowTabUIMap.Save_Workflow_Using_Shortcut();
     ExplorerUIMap.Select_ShowVersionHistory_From_ExplorerContextMenu();
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.FirstSubItem.Exists);
 }