public void Studio_Default_Layout_UITest() { Process studio = Process.GetProcesses().FirstOrDefault(process => process.ProcessName == "Warewolf Studio"); var fileName = studio?.MainModule.FileName; Console.WriteLine("WarewolfStudio Process : " + fileName); Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.LockunlockthemenuButton.UnlockMenuText.Exists, "Side Menu Bar is Open."); UIMap.Close_And_Lock_Side_Menu_Bar(); var dockWidthBefore = UIMap.MainStudioWindow.DockManager.Width; Mouse.Click(UIMap.MainStudioWindow.CloseStudioButton); string path = Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)).FullName; path = Directory.GetParent(path).ToString(); Console.WriteLine("Layout file Path: " + path); var layOutFile = Environment.ExpandEnvironmentVariables(path + @"\AppData\Local\Warewolf\UserInterfaceLayouts\WorkspaceLayout.xml"); if (File.Exists(layOutFile)) { Console.WriteLine("Actual Layout file: " + fileName); File.Delete(layOutFile); } Playback.Wait(2000); ExecuteCommand(fileName); Playback.Wait(2000); UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.WaitForControlVisible(UIMap.MainStudioWindow.DockManager); var dockWidthAfter = UIMap.MainStudioWindow.DockManager.Width; Assert.IsTrue(dockWidthBefore > dockWidthAfter, "Then Menu Bar did not Open/Close"); Assert.IsTrue(UIMap.MainStudioWindow.SideMenuBar.LockunlockthemenuButton.UnlockMenuText.Exists, "Side Menu Bar is Open."); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_NewWorkflow_RibbonButton(); DropboxToolsUIMap.Drag_Toolbox_Dropbox_Upload_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); ExplorerUIMap.Select_ShowServerVersion_From_ExplorerContextMenu(); Assert.IsTrue(DialogsUIMap.SplashPageWindow.Exists); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); ExplorerUIMap.Create_New_Workflow_In_LocalHost_With_Shortcut(); WorkflowTabUIMap.Drag_DotNetDLLConnector_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.InitializeABlankWorkflow(); WorkflowTabUIMap.Drag_HTTPDELETEWebTool_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_NewWorkflow_RibbonButton(); WorkflowTabUIMap.Drag_Toolbox_Oracle_Database_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_NewWorkflow_RibbonButton(); WorkflowTabUIMap.Drag_Toolbox_Sharepoint_Download_File_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_NewWorkflow_RibbonButton(); WorkflowTabUIMap.Drag_ComDLLConnector_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.InitializeABlankWorkflow(); WorkflowTabUIMap.Drag_Toolbox_CMD_Line_Onto_DesignSurface(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_ConfigureSetting_From_Menu(); SettingsUIMap.Select_PerfomanceCounterTab(); }
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."); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); ExplorerUIMap.Create_New_Workflow_In_LocalHost_With_Shortcut(); WorkflowTabUIMap.Make_Workflow_Savable_By_Dragging_Start(); WorkflowTabUIMap.Save_Workflow_Using_Shortcut(); }
public void MyTestInitialize() { host = new ServiceHost(typeof(UITestWcfEndpointService)); host.Open(); UIMap.SetPlaybackSettings(); Debugger.Break(); UIMap.AssertStudioIsRunning(); }
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(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); ExplorerUIMap.Filter_Explorer("DotnetWorkflowForTesting"); ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item(); UIMap.Click_Save_RibbonButton(); UIMap.Press_F6(); UIMap.Click_Create_Test_From_Debug(); }
public void CallDuplicateService_GivenValidComsController_ShouldDuplicate(string numberOf) { UIMap.AssertStudioIsRunning(); if (!File.Exists(Environment.ExpandEnvironmentVariables("%programdata%\\Warewolf\\Resources\\All Tools " + numberOf + ".xml"))) { UIMap.Click_Settings_RibbonButton(); SettingsUIMap.Check_Public_Contribute(); if (UIMap.MainStudioWindow.SideMenuBar.SaveButton.Enabled) { UIMap.Click_Save_Ribbon_Button_With_No_Save_Dialog(); } for (var i = 0; i <= int.Parse(numberOf) + 1; i++) { using (var webClient = new WebClient()) { webClient.Credentials = CredentialCache.DefaultCredentials; webClient.DownloadData("http://localhost:3142/services/DuplicateResourceService?NewResourceName=All%20Tools%20" + i.ToString() + "&ResourceID=8c1f16c0-b753-41a1-bd5b-6c65326d188d&sourcePath=All%20Tools&destinationPath="); } } ExplorerUIMap.Click_Explorer_Refresh_Button(); } }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); MergeConflictsUIMap.OpenMerge_For_Workflow(MergeWfWithVersion); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); _dependency = new Depends(Depends.ContainerType.MSSQL); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_Scheduler_RibbonButton(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); UIMap.Click_Deploy_Ribbon_Button(); }
public void MyTestInitialize() { UIMap.SetPlaybackSettings(); UIMap.AssertStudioIsRunning(); ExplorerUIMap.Open_Context_Menu_For_Service(MergeVariables); }