Exemplo n.º 1
0
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_ComDLLConnector_Onto_DesignSurface();
 }
Exemplo n.º 2
0
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     UIMap.Click_NewWorkflow_RibbonButton();
     DropboxToolsUIMap.Drag_Toolbox_Dropbox_Upload_Onto_DesignSurface();
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
0
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_Oracle_Database_Onto_DesignSurface();
 }
 public void ChangeComPluginSelection()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_ComDLLConnector_Onto_DesignSurface();
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.NamespaceCombobox.Enabled, "COM namespace combobox should be disabled.");
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.RefreshNamespaceButton.Enabled, "COM namespace refresh button should be disabled.");
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.ActionsCombobox.Enabled, "COM actions combobox should be disabled.");
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.ActionRefreshButton.Enabled, "COM actions refresh button should be disabled.");
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.GenerateOutputsButton.Enabled, "COM generate outputs button should be disabled");
     ResourcesToolsUIMap.Select_Second_Item_From_Com_DLL_Large_View_Source_Combobox();
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.NamespaceCombobox.Enabled, "COM namespace combobox should be enabled.");
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.RefreshNamespaceButton.Enabled, "COM namespace refresh button should be enabled.");
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.ActionsCombobox.Enabled, "COM actions combobox should be enabled.");
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.ActionRefreshButton.Enabled, "COM actions refresh button should be enabled.");
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.GenerateOutputsButton.Enabled, "COM generate outputs button should be disabled");
     ResourcesToolsUIMap.Select_First_Item_From_Com_DLL_Large_View_Namespace_Combobox();
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.GenerateOutputsButton.Enabled, "COM generate outputs button should be disabled");
     ResourcesToolsUIMap.Select_First_Item_From_Com_DLL_Large_View_Action_Combobox();
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.GenerateOutputsButton.Enabled, "COM generate outputs button should be enabled");
     ResourcesToolsUIMap.Select_First_Item_From_Com_DLL_Large_View_Source_Combobox();
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.NamespaceCombobox.Enabled, "COM namespace combobox should be enabled.");
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.RefreshNamespaceButton.Enabled, "COM namespace refresh button should be enabled.");
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.ActionsCombobox.Enabled, "COM actions combobox should be enabled.");
     Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.ActionRefreshButton.Enabled, "COM actions refresh button should be enabled.");
     Assert.IsFalse(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.ComDll.LargeView.GenerateOutputsButton.Enabled, "COM generate outputs button should be disabled");
 }
Exemplo n.º 6
0
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_Sharepoint_Download_File_Onto_DesignSurface();
 }
Exemplo n.º 7
0
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_Move_Onto_DesignSurface();
     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.");
 }
Exemplo n.º 8
0
 public void UnpinAndRepinNewWorkflowWizardTabByDraggingOnly()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     UIMap.Unpin_Tab_With_Drag(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab);
     UIMap.Pin_Unpinned_Pane_To_Default_Position();
     Assert.IsFalse(UIMap.ControlExistsNow(UIMap.MainStudioWindow.UnpinnedTab), "Unpinned pane still exists after being dragged onto the central dock indicator.");
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.Exists, "Workflow tab did not dock into it's default position after being dragged onto the central dock indicator.");
 }
Exemplo n.º 9
0
 public void Deploy_From_RemoteConnection_CreateNewWorkflow()
 {
     DeployUIMap.Select_RemoteConnectionIntegration_From_Deploy_Tab_Source_Server_Combobox();
     DeployUIMap.WhenResourcesIsVisibleOnTheTree();
     Mouse.Click(DeployUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.SourceServerExplorer.ExplorerTree.SourceServerName);
     UIMap.Click_NewWorkflow_RibbonButton();
     Assert.AreEqual("Unsaved 1", WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.TabDescription.DisplayText, "Workflow created on different server than expected.");
 }
Exemplo n.º 10
0
 public void AssignToolInUnpinnedWorkflowWizardTabDebugOutputUITest()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_MultiAssign_Onto_DesignSurface();
     DataToolsUIMap.Assign_Value_To_Variable_With_Assign_Tool_Small_View_Row_1();
     UIMap.Unpin_Tab_With_Drag(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab);
     UIMap.Press_F6_On_UnPinnedTab();
     Assert.AreEqual("[[SomeVariable]]", UIMap.MainStudioWindow.UnpinnedTab.SplitPane.WorkSurfaceContext.SplitPaneRight.DebugOutput.DebugOutputTree.Step1.VariableTextbox2.DisplayText, "Variable name does not exist in unpinned debug output.");
     Assert.AreEqual("500", UIMap.MainStudioWindow.UnpinnedTab.SplitPane.WorkSurfaceContext.SplitPaneRight.DebugOutput.DebugOutputTree.Step1.ValueTextbox5.DisplayText, "Variable value does not exist in unpinned debug output.");
 }
Exemplo n.º 11
0
        public void AssignToolInUnpinnedWorkflowWizardTabAddVariableUITest()
        {
            UIMap.Click_NewWorkflow_RibbonButton();
            WorkflowTabUIMap.Drag_Toolbox_MultiAssign_Onto_DesignSurface();
            UIMap.Unpin_Tab_With_Drag(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab);
            const string Variable1Name = "SomeVariable";

            UIMap.Enter_Variable_Into_Assign_Row1_On_Unpinned_Tab("[[" + Variable1Name + "]]");
            Assert.IsTrue(UIMap.MainStudioWindow.UnpinnedTab.SplitPane.WorkSurfaceContext.SplitPaneRight.Variables.DatalistView.VariableTree.VariableTreeItem.TreeItem1.Exists, "Scalar variable list not found.");
        }
Exemplo n.º 12
0
 public void StepsWithoutOutputsShouldBeMarkedInvalid()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_MultiAssign_Onto_DesignSurface();
     UIMap.Save_With_Ribbon_Button_And_Dialog("AssignWorkflow");
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.Exists, "Test tab does not exist after clicking Create Test from debug button");
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.StepTestDataTreeTree.UIWarewolfStudioViewMoTreeItem.AssignAssert.Exists);
     UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog();
 }
Exemplo n.º 13
0
 public void NestedWorkflowCreatsATestStepAfterClickingCreateTestFromDebugButton()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     ExplorerUIMap.Filter_Explorer(WorkflowServiceTestingTests.DiceRoll);
     WorkflowTabUIMap.Drag_Explorer_Localhost_First_Items_First_Sub_Item_Onto_Workflow_Design_Surface();
     WorkflowTabUIMap.Drag_Dice_Onto_Dice_On_The_DesignSurface();
     UIMap.Press_F6();
     UIMap.Save_With_Ribbon_Button_And_Dialog(WorkflowServiceTestingTests.Nestedwf);
     UIMap.Click_Create_Test_From_Debug();
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.Exists, "Test tab does not exist after clicking Create Test from debug button");
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.StepTestDataTreeTree.UIWarewolfStudioViewMoTreeItem.DiceRollExpander.Exists);
 }
Exemplo n.º 14
0
 public void UnpinnedPaneContextMenuItems()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     UIMap.Unpin_Tab_With_Drag(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab);
     Mouse.Click(UIMap.MainStudioWindow.UnpinnedTab, MouseButtons.Right, ModifierKeys.None, new Point(14, 12));
     Assert.IsTrue(UIMap.MainStudioWindow.UnpinnedTabContextMenu.Floating.Exists, "Menu item as floating does not exist after openning unpinned tab context menu with a right click.");
     Assert.IsTrue(UIMap.MainStudioWindow.UnpinnedTabContextMenu.Dockable.Exists, "Menu item as dockable does not exist after openning unpinned tab context menu with a right click.");
     Assert.IsTrue(UIMap.MainStudioWindow.UnpinnedTabContextMenu.TabbedDocument.Exists, "Menu item as tabbed document does not exist after openning unpinned tab context menu with a right click.");
     Assert.IsTrue(UIMap.MainStudioWindow.UnpinnedTabContextMenu.AutoHide.Exists, "Menu item as auto hide does not exist after openning unpinned tab context menu with a right click.");
     Assert.IsTrue(UIMap.MainStudioWindow.UnpinnedTabContextMenu.Hide.Exists, "Menu item as hide does not exist after openning unpinned tab context menu with a right click.");
     UIMap.MainStudioWindow.UnpinnedTabContextMenu.TabbedDocument.Checked = true;
 }
Exemplo n.º 15
0
 public void CreateNewServer_CreateNewWorkflow_ClosingWorkflowDoesNotError()
 {
     //Create Source
     ExplorerUIMap.Select_NewServerSource_From_ExplorerContextMenu();
     ServerSourceUIMap.Enter_TextIntoAddress_On_ServerSourceTab("tst-ci-remote");
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Make_Workflow_Savable_By_Dragging_Start();
     Mouse.Click(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.CloseButton);
     DialogsUIMap.Click_MessageBox_Yes();
     UIMap.Save_With_Ribbon_Button_And_Dialog("WorkflowSaveError");
     Assert.IsTrue(ServerSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.ServerSourceTab.Exists);
 }
Exemplo n.º 16
0
 public void UnpinPutput_TestFrameworkPane()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_MultiAssign_Onto_DesignSurface();
     UIMap.Save_With_Ribbon_Button_And_Dialog("UnpinTestViewOutput");
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     UIMap.Unpin_Pane_With_Context_Menu(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.OUTPUT);
     ExplorerUIMap.Filter_Explorer("UnpinTestViewOutput");
     ExplorerUIMap.Delete_FirstResource_From_ExplorerContextMenu();
     DialogsUIMap.Click_MessageBox_Yes();
 }
Exemplo n.º 17
0
 public void CreateTestFromDebugOutputDontSaveCreateAnotherTestFromDebugOutput()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_Random_Onto_DesignSurface();
     UtilityToolsUIMap.Enter_Dice_Roll_Values();
     UIMap.Save_With_Ribbon_Button_And_Dialog("RandomWFForSaveButtonState");
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     UIMap.Click_New_Workflow_Tab();
     UIMap.Click_Create_Test_From_Debug();
     DialogsUIMap.Click_MessageBox_OK();
     Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled, "Save button is not enabled after creating two new unsaved tests.");
 }
Exemplo n.º 18
0
 public void CreateTestFromDebugOutputDontSaveCreateAnotherTestFromDebugOutput()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_Random_Onto_DesignSurface();
     UtilityToolsUIMap.Enter_Dice_Roll_Values();
     UIMap.Save_With_Ribbon_Button_And_Dialog("RandomWFForSaveButtonState");
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     UIMap.Click_New_Workflow_Tab();
     UIMap.Click_Create_Test_From_Debug();
     DialogsUIMap.Click_MessageBox_OK();
     UIMap.Save_Button_IsEnabled();
 }
Exemplo n.º 19
0
 public void Save_Resource_In_Nested_Folder_Saves_Correctly_UITest()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Make_Workflow_Savable();
     UIMap.Click_Save_RibbonButton();
     DialogsUIMap.Filter_Save_Dialog_Explorer("FolderD");
     Mouse.Click(DialogsUIMap.SaveDialogWindow.ExplorerView.ExplorerTree.localhost.FirstItem.FirstSubItem.FolderC.FolderD);
     DialogsUIMap.Enter_Valid_Service_Name_Into_Save_Dialog("SuperNestedResource");
     DialogsUIMap.Click_SaveDialog_Save_Button();
     ExplorerUIMap.Filter_Explorer("SuperNestedResource");
     Assert.IsTrue(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.FirstSubItem.FolderC.FolderD.SuperNestedResource.UIItemEdit.Exists);
     Assert.AreEqual(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.FirstSubItem.FolderC.FolderD.SuperNestedResource.UIItemEdit.Text, "SuperNestedResource");
 }
Exemplo n.º 20
0
 public void DebugInputWindow_Validation_UITest()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     UIMap.Click_Debug_RibbonButton();
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.Exists, "Debug Input window does not exist after clicking debug ribbon button.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.DebugF6Button.Exists, "Debug button in Debug Input window does not exist.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.CancelButton.Exists, "Cancel Debug Input Window button does not exist.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.RememberDebugInputCheckBox.Exists, "Remember Checkbox does not exist in the Debug Input window.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.ViewInBrowserF7Button.Enabled, "View in Browser button does not exist in Debug Input window.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.TabItemsTabList.InputDataTab.InputsTable.Exists, "Input Data Window does not exist in Debug Input window.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.TabItemsTabList.XMLTab.Exists, "Xml tab does not Exist in the Debug Input window.");
     Assert.IsTrue(UIMap.MainStudioWindow.DebugInputDialog.TabItemsTabList.JSONTab.Exists, "Assert Json tab does not exist in the debug input window.");
     UIMap.Click_DebugInput_ViewInBrowser_Button();
 }
Exemplo n.º 21
0
 public void CodedUIShowStartNodeContextMenuItems()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.DisplayStartNodeContextMenu();
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.TestEditorMenuItem.Enabled, "Test Editor must be disabled on a new workflow");
     Assert.IsTrue(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.DebugInputsMenuItem.Enabled, "Debug Inputs must be enabled on a new workflow");
     Assert.IsTrue(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.DebugStudioMenuItem.Enabled, "Debug Studio must be enabled on a new workflow");
     Assert.IsTrue(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.DebugBrowserMenuItem.Enabled, "Debug Browser must be enabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.ScheduleMenuItem.Enabled, "Schedule must be disabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.RunAllTestsMenuItem.Enabled, "Run All Tests must be disabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.DuplicateMenuItem.Enabled, "Duplicate must be disabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.DeployMenuItem.Enabled, "Deploy must be disabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.ShowDependenciesMenuItem.Enabled, "Show Dependencies must be disabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.ViewSwaggerMenuItem.Enabled, "View Swagger must be disabled on a new workflow");
     Assert.IsFalse(DialogsUIMap.StartNodePopupWindow.CustomWindow.StartNodeItemMenu.CopyURLtoClipboardMenuItem.Enabled, "Copy Url to Clipboard must be disabled on a new workflow");
 }
        public void CopyAndPasteWorkflowToItselfDoesNotCopy()
        {
            UIMap.Click_NewWorkflow_RibbonButton();
            ExplorerUIMap.Filter_Explorer("stackoverflowTestWorkflow");
            WorkflowTabUIMap.Drag_Explorer_Localhost_First_Item_Onto_Workflow_Design_Surface();
            Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.TabManSplitPane.TabMan.WorkflowTab.WorkflowSurfaceContext.ContentDockManagerCustom.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.stackOverflowTestWF.Exists);
            WorkflowTabUIMap.RightClick_StackOverFlowService_OnDesignSurface();
            UIMap.Select_Copy_FromContextMenu();
            ExplorerUIMap.Open_ExplorerFirstItem_From_ExplorerContextMenu();
            DataToolsUIMap.RightClick_AssignOnDesignSurface();
            UIMap.Select_Paste_FromContextMenu();
            var controlExistsNow = UIMap.ControlExistsNow(WorkflowTabUIMap.MainStudioWindow.TabManSplitPane.TabMan.WorkflowTab.WorkflowSurfaceContext.ContentDockManagerCustom.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.stackOverflowTestWF);

            Assert.IsFalse(controlExistsNow);
            UIMap.Click_Close_Workflow_Tab_Button();
            Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.TabManSplitPane.TabMan.WorkflowTab.WorkflowSurfaceContext.ContentDockManagerCustom.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.stackOverflowTestWF.Exists);
        }
Exemplo n.º 23
0
 public void CreateTestFromDebugOutputDeleteTestButDontCloseTestTabGoBackAndCreateTestAgain()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Drag_Toolbox_Random_Onto_DesignSurface();
     UtilityToolsUIMap.Enter_Dice_Roll_Values();
     UIMap.Save_With_Ribbon_Button_And_Dialog(WorkflowServiceTestingTests.RandomNewWorkFlow);
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.Exists, "Test tab does not exist after clicking Create Test from debug button");
     WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true);
     WorkflowServiceTestingUIMap.Click_Delete_Test_Button();
     DialogsUIMap.Click_MessageBox_Yes();
     UIMap.Click_New_Workflow_Tab();
     UIMap.Press_F6();
     UIMap.Click_Create_Test_From_Debug();
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.Exists, "Test tab does not exist after clicking Create Test from debug button");
     Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.StepTestDataTreeTree.UIWarewolfStudioViewMoTreeItem.RandomTreeItem.Exists);
 }
Exemplo n.º 24
0
 public void F6_Execute_OnFocustLost_Thus_Persisting_Textbox_Changes()
 {
     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();
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIF6ExecuteOnFocusLostTreeItem.UIPersonnameExpander.PersonOutputButton.Exists);
     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.IsFalse(UIMap.ControlExistsNow(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIF6ExecuteOnFocusLostTreeItem.UIPersonnameExpander.ThirdRowOfRecordset));
     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);
 }
Exemplo n.º 25
0
        public void AdvancedRecordsetTool_Declare_Value_Change_Debug_Should_Update()
        {
            ExplorerUIMap.Filter_Explorer(CopyPasteADNameChange);
            ExplorerUIMap.Open_Explorer_First_Item_With_Double_Click();
            DatabaseToolsUIMap.AdvancedRecordsetTool_ChangeView_With_DoubleClick();

            var advancedRecordset = DatabaseToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.AdvancedRecordset;

            Assert.IsTrue(advancedRecordset.LargeView.Exists, "Advanced Recordset tool does not exist on design surface.");
            UIMap.Press_F6();

            WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.SearchTextBox.Text = "Advanced Recordset";

            string displayTextJohn = WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIAdvancedRecordsetTreeItem.UIKimText.DisplayText;

            Assert.AreEqual("John", displayTextJohn);

            DatabaseToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.AdvancedRecordset.LargeView.DeclareVariablesDataTable.UINameRow.UIItemnameColumnDisplaCell.UIThevalueofthelocalvaComboBox.UITextEdit.Text = "Jeff";
            UIMap.Press_F6();
            string displayTextJeff = WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIAdvancedRecordsetTreeItem.UIKimText.DisplayText;

            Assert.AreEqual("Jeff", displayTextJeff);

            DatabaseToolsUIMap.AdvancedRecordsetTool_Select_With_SingleClick();

            Keyboard.SendKeys("^C");
            UIMap.Click_NewWorkflow_RibbonButton();
            WorkflowTabUIMap.Click_Start_Node();
            Keyboard.SendKeys("^V");

            DatabaseToolsUIMap.Right_Click_AdvancedRecordsetTool();
            UIMap.Context_Menu_Set_As_Start_Node();
            Mouse.DoubleClick(advancedRecordset, new Point(182, 15));

            UIMap.Press_F6();
            string displayTextGeorge = WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.DebugOutputTree.UIAdvancedRecordsetTreeItem.UIKimText.DisplayText;

            Assert.AreEqual("Jeff", displayTextGeorge);
        }
Exemplo n.º 26
0
 public void ServiceTool_CopyPaste_NoStudioFreeze_UITest()
 {
     Assert.IsTrue(DialogsUIMap.ServicePickerDialog.Explorer.Exists, "Service picker Explorer Tree does not exist on the Design Surface");
     Assert.IsTrue(DialogsUIMap.ServicePickerDialog.OK.Exists, "Service picker OK Button does not exist on the Design Surface");
     Assert.IsTrue(DialogsUIMap.ServicePickerDialog.Cancel.Exists, "Service picker cancel button does not exist on the Design Surface");
     // OK Button does not enable after clicking folder
     Assert.IsFalse(DialogsUIMap.ServicePickerDialog.OK.Enabled, "OK Button is enabled");
     DialogsUIMap.Select_FirstItem_From_ServicePicker_Tree();
     Assert.IsFalse(DialogsUIMap.ServicePickerDialog.OK.Enabled, "OK Button is enabled");
     // Selection of Hello World enables OK Button
     DialogsUIMap.Filter_ServicePicker_Explorer("Hello World");
     DialogsUIMap.Select_FirstItem_From_ServicePicker_Tree();
     Assert.IsTrue(DialogsUIMap.ServicePickerDialog.OK.Enabled, "OK Button is not enabled");
     // Hello World workflow opens
     DialogsUIMap.Click_Service_Picker_Dialog_OK();
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.HelloWorldWorkFlow.Exists, "Hello World work flow does not exist after selecting OK from Service Picker");
     // Copy
     Keyboard.SendKeys("^c");
     // Paste
     Keyboard.SendKeys("^v");
     // Validate Studio is active
     UIMap.Click_NewWorkflow_RibbonButton();
 }
Exemplo n.º 27
0
 public void WorkflowDesignSurface_StartNode_IsVisible_UITest()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.StartNode.Exists);
 }
Exemplo n.º 28
0
 public void CreateTestFromDebugButtonDisabledForUnsavedWorkflows()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     WorkflowTabUIMap.Make_Workflow_Savable_By_Dragging_Start();
     Assert.IsFalse(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.DebugOutput.CreateTestFromDebugButton.Enabled);
 }
Exemplo n.º 29
0
 public void UnpinPutput_WorkflowDesignerPane()
 {
     UIMap.Click_NewWorkflow_RibbonButton();
     UIMap.Unpin_Pane_With_Context_Menu(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.ContentPane.ContentDockManager.SplitPaneRight.Variables);
 }
Exemplo n.º 30
0
 public void MyTestInitialize()
 {
     UIMap.SetPlaybackSettings();
     UIMap.AssertStudioIsRunning();
     UIMap.Click_NewWorkflow_RibbonButton();
 }