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();
 }
 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();
 }
        public void DuplicateWorkflow_Updates_The_Workflow_Display_Name()
        {
            ExplorerUIMap.Click_Duplicate_From_ExplorerContextMenu("Hello World");
            const string newName = "HelloWorld2";

            WorkflowTabUIMap.Enter_Duplicate_workflow_name(newName);
            DialogsUIMap.Click_Duplicate_From_Duplicate_Dialog();
            ExplorerUIMap.Filter_Explorer(newName);
            Assert.AreEqual(newName, ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.ItemEdit.Text, "First Item is not the same as Filtered input.");
            ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
            Assert.AreEqual(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.BreadcrumbbarList.HelloWorld2ListItem.DisplayText, newName);
        }
Example #4
0
        public void DuplicateServerSource_AddsToConnectControl()
        {
            ExplorerUIMap.Click_Duplicate_From_ExplorerContextMenu("ExistingUITestServerSource");
            const string newName = "DuplicatedServerSource";

            WorkflowTabUIMap.Enter_Duplicate_workflow_name(newName);
            DialogsUIMap.Click_Duplicate_From_Duplicate_Dialog();
            UIMap.WaitForSpinner(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.Checkbox.Spinner);
            ExplorerUIMap.Filter_Explorer(newName);
            Assert.AreEqual(newName, ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ExplorerTree.localhost.FirstItem.ItemEdit.Text, "First Item is not the same as Filtered input.");
            ExplorerUIMap.Click_Explorer_Remote_Server_Dropdown_List();
            Assert.IsTrue(UIMap.MainStudioWindow.ComboboxListItemAsDuplicatedConnection.Exists, "New server source does not exist in the connect control dropdown list.");
        }
        public void DuplicatedWorkflowShouldUpdateTestResult()
        {
            ExplorerUIMap.Filter_Explorer("Hello World");
            ExplorerUIMap.Duplicate_FirstResource_From_ExplorerContextMenu();
            WorkflowTabUIMap.Enter_Duplicate_workflow_name("Duplicated_HelloWorld_Testing");
            DialogsUIMap.Click_Duplicate_From_Duplicate_Dialog();
            ExplorerUIMap.Filter_Explorer("Duplicated_HelloWorld_Testing");
            ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item();
            UIMap.Press_F6();
            UIMap.Click_Create_Test_From_Debug();

            WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass, 1);
            Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test1.Passing.Exists, "Failed status icon does not exist after running a test with the new duplicated workflow.");
        }
Example #6
0
        public void DuplicateServerSource_Then_Delete_Removes_Item_From_Dropdown()
        {
            ExplorerUIMap.Click_Duplicate_From_ExplorerContextMenu("ExistingCodedUITestServerSource");
            const string newName = "CodedUITestServerSourceDuplicated";

            WorkflowTabUIMap.Enter_Duplicate_workflow_name(newName);
            DialogsUIMap.Click_Duplicate_From_Duplicate_Dialog();
            Mouse.Click(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ConnectControl.ServerComboBox.ToggleButton);
            Assert.IsTrue(ExplorerUIMap.MainStudioWindow.CodedUITestServerSourceDuplicated.Exists, "This UI test expects ExistingCodedUITestServerSource to exist in the connect control dropdown list.");
            ExplorerUIMap.Filter_Explorer(newName);
            ExplorerUIMap.Delete_FirstResource_From_ExplorerContextMenu();
            DialogsUIMap.Click_Yes_On_The_Confirm_Delete();
            Mouse.Click(ExplorerUIMap.MainStudioWindow.DockManager.SplitPaneLeft.Explorer.ConnectControl.ServerComboBox.ToggleButton);
            Assert.IsFalse(UIMap.ControlExistsNow(ExplorerUIMap.MainStudioWindow.CodedUITestServerSourceDuplicated), "Server exists in connect control dropdown list after it was deleted from the explorer.");
        }