public void Deploying_From_Explorer_Opens_The_Deploy_With_Resource_Already_Checked() { ExplorerUIMap.Filter_Explorer("Hello World"); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); ExplorerUIMap.Select_Deploy_From_ExplorerContextMenu(); DeployUIMap.WhenISelectFromTheSourceTab("Hello World"); DeployUIMap.Click_Deploy_Tab_Source_Refresh_Button(); UIMap.WaitForSpinner(DeployUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.SourceServerExplorer.ExplorerTree.LocalHost.Spinner); DeployUIMap.ThenFilteredResourseIsCheckedForDeploy(); }
public void Explorer_GivenSourceIsDoubleClicked_ShouldOpenSourceTab() { //---------------Set up test pack------------------- const string Source = "DotNetPluginSource"; ExplorerUIMap.Filter_Explorer(Source); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); Mouse.Click(UIMap.MainStudioWindow.ExplorerContextMenu.ShowDependencies, new Point(50, 15)); Mouse.DoubleClick(DependencyGraphUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DependencyGraphTab.WorksurfaceContext.DependencyView.ScrollViewer.DotnetSourceNode.DotNetPluginSourceText); Assert.IsTrue(DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.Exists); Assert.AreEqual(@"C:\ProgramData\Warewolf\Resources\TestingDotnetDllCascading.dll", DotNetPluginSourceUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DotNetPluginSourceTab.WorkSurfaceContext.AssemblyComboBox.TextEdit.Text); }
public void Explorer_GivenSources_ShouldHaveShowDependencyMenuItem() { //---------------Set up test pack------------------- const string Source = "DotNetPluginSource"; ExplorerUIMap.Filter_Explorer(Source); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); Mouse.Click(UIMap.MainStudioWindow.ExplorerContextMenu.ShowDependencies, new Point(50, 15)); var displayText = DependencyGraphUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DependencyGraphTab.WorksurfaceContext.DependencyView.ScrollViewer.NodesCustom.DotnetWorkflowForTesText.DisplayText; Assert.AreEqual("DotnetWorkflowForTesting", displayText); }
public void Explorer_GivenDotnetWorkflowAsDependencyIsDoubleClicked_ShouldOpenWorkflowTabWithToolsInside() { //---------------Set up test pack------------------- const string Source = "DotNetPluginSource"; ExplorerUIMap.Filter_Explorer(Source); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); Mouse.Click(UIMap.MainStudioWindow.ExplorerContextMenu.ShowDependencies, new Point(50, 15)); Mouse.DoubleClick(DependencyGraphUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DependencyGraphTab.WorksurfaceContext.DependencyView.ScrollViewer.NodesCustom.DotnetWorkflowForTesText); WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WaitForControlExist(60000); Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.Exists, "Workflow tab does not exist after double clicking dependancy graph node and waiting a minute."); Assert.IsTrue(ResourcesToolsUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.DotNetDll.Exists, "Openned workflow does not contain expected DotNet Connector tool on the design surface."); }
public void Deploying_From_Explorer_Opens_The_Deploy_With_All_Resources_In_Folder_Already_Checked() { ExplorerUIMap.Filter_Explorer("Unit Tests"); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); ExplorerUIMap.Select_Deploy_From_ExplorerContextMenu(); DeployUIMap.Enter_DeployViewOnly_Into_Deploy_Source_Filter("Unit Tests"); DeployUIMap.Click_Deploy_Tab_Source_Refresh_Button(); UIMap.WaitForSpinner(DeployUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.SourceServerExplorer.ExplorerTree.LocalHost.Spinner); DeployUIMap.ThenFilteredResourseIsCheckedForDeploy(); Assert.AreEqual("4", DeployUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.OverrideHyperlink.UIItem1Text.DisplayText); DeployUIMap.Enter_DeployViewOnly_Into_Deploy_Source_Filter("Check Result"); DeployUIMap.DeSelect_Deploy_First_Source_Item(); Assert.AreEqual("3", DeployUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.DeployTab.WorkSurfaceContext.DockManager.DeployView.OverrideHyperlink.UIItem1Text.DisplayText); }
public void Explorer_DotNetPluginSource_ContextMenuItems() { //---------------Set up test pack------------------- const string Source = "DotNetPlugInSource"; ExplorerUIMap.Filter_Explorer(Source); //---------------Execute Test ---------------------- ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); //---------------Assert ---------------------------- Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ShowDependencies.Exists, "Show Dependencies Context menu item does not exist on explorer context menu for Sources."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.DeployItem.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Open.Exists, "Open does not exist in explorer context menu."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Rename.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Delete.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Duplicate.Exists); }
public void Explorer_Workflow_And_Folder_ContextMenuItems_UITest() { //Workflow Context Menu ExplorerUIMap.Filter_Explorer("Hello World"); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Open.Exists, "Open does not exist in explorer context menu."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.DebugInputsMenuItem.Exists, "DebugInputsMenuItem Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.DebugStudioMenuItem.Exists, "DebugStudioMenuItem Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.DebugBrowserMenuItem.Exists, "DebugBrowserMenuItem Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ScheduleMenuItem.Exists, "ScheduleMenuItem Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Rename.Exists, "Rename Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Delete.Exists, "Delete Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Duplicate.Exists, "Duplicate Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Tests.Exists, "Tests Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.RunAllTestsMenuItem.Exists, "Run All Tests Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.DeployItem.Exists, "Deploy Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ShowDependencies.Exists, "Show Dependencies Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ViewSwagger.Exists, "View Swagger Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ViewApisJsonMenuItem.Exists, "ViewApisJsonMenuItem Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ShowVersionHistory.Exists, "Show Version History Context menu item does not exist on explorer context menu for workflows."); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.MakeCurrentVersionMenuItem.Exists, "MakeCurrentVersionMenuItem Context menu item does not exist on explorer context menu for workflows."); //Folder Context Menu ExplorerUIMap.Filter_Explorer("Examples"); ExplorerUIMap.RightClick_Explorer_Localhost_FirstItem(); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.NewWorkflowItem.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.NewFolderMenuItem.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Rename.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Delete.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.Duplicate.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.DeployItem.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.ViewApisJsonMenuItem.Exists); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.SourcesMenuItem.Exists); //Server Context Menu ExplorerUIMap.RightClick_Localhost(); Assert.IsTrue(UIMap.MainStudioWindow.ExplorerContextMenu.SourcesMenuItem.Exists, "Sources Context menu item does not exist on explorer context menu for workflows."); }