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 Show_Duplicate_Test_Dialog() { UIMap.Click_View_Tests_In_Explorer_Context_Menu(HelloWorld); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test1.Exists, "First 'Hello World' test does not exist as expected."); WorkflowServiceTestingUIMap.Click_Workflow_Testing_Tab_Create_New_Test_Button(); WorkflowServiceTestingUIMap.Update_Test_Name("Blank Input"); WorkflowServiceTestingUIMap.Save_Tets_With_Shortcut(); Assert.IsTrue(DialogsUIMap.MessageBoxWindow.Exists, "No duplicate test error dialog when saving a test with the name of an existing test."); DialogsUIMap.Duplicate_Test_Name_MessageBox_Ok(); }