public void ClickNewTestWithUnsavedExistingTest() { WorkflowServiceTestingUIMap.Click_Workflow_Testing_Tab_Create_New_Test_Button(); Assert.IsTrue(DialogsUIMap.MessageBoxWindow.Exists, "Messagebox warning about unsaved tests does not exist after clicking create new test."); DialogsUIMap.Click_Save_Before_Continuing_MessageBox_OK(); WorkflowServiceTestingUIMap.Click_Close_Tests_Tab(); }
public void Show_Save_Before_Running_Tests_Dialog() { ExplorerUIMap.Show_ExplorerSecondItemTests_With_ExplorerContextMenu(xPath); WorkflowServiceTestingUIMap.Click_Workflow_Testing_Tab_Create_New_Test_Button(); WorkflowServiceTestingUIMap.Click_Workflow_Testing_Tab_Run_All_Button(); Assert.IsTrue(DialogsUIMap.MessageBoxWindow.Exists, "No save before running tests error dialog when clicking run all button while a test is unsaved."); DialogsUIMap.Click_Save_Before_Continuing_MessageBox_OK(); }
public void CreateNewTestThenCreateTestFromDebugOutput() { ExplorerUIMap.Filter_Explorer(WorkflowServiceTestingTests.RandomWorkFlow); ExplorerUIMap.Open_ExplorerFirstItemTests_With_ExplorerContextMenu(); WorkflowServiceTestingUIMap.Click_Create_New_Tests(true); ExplorerUIMap.Open_Explorer_First_Item_With_Double_Click(); UIMap.Press_F6(); UIMap.Click_Create_Test_From_Debug(); Assert.IsTrue(DialogsUIMap.MessageBoxWindow.Exists); Assert.IsTrue(DialogsUIMap.MessageBoxWindow.SaveBeforeAddingTest.Exists); DialogsUIMap.Click_Save_Before_Continuing_MessageBox_OK(); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.Exists); }