public void ClickRunTestStepAfterCreatingTestHasAllTestsPassing() { WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass, 4); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test4.Passing.Exists); WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true, 4); WorkflowServiceTestingUIMap.Click_Delete_Test_Button(4); DialogsUIMap.Click_MessageBox_Yes(); }
public void ChangingTheOutputMessageShouldFailTestSteps() { WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Fail, 4); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test4.Failing.Exists, "Failed status icon does not exist after running a text with the wrong output message."); WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true, 4); WorkflowServiceTestingUIMap.Click_Delete_Test_Button(4); DialogsUIMap.Click_MessageBox_Yes(); }
public void Creating_A_Test_With_Blank_Name() { UIMap.Click_View_Tests_In_Explorer_Context_Menu(EmptyWorkflow); WorkflowServiceTestingUIMap.Click_Create_New_Tests(true, 1); WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestNameTextbox.Text = ""; WorkflowServiceTestingUIMap.Click_Run_Test_Button(instance: 1); Assert.IsTrue(UIMap.ControlExistsNow(DialogsUIMap.MessageBoxWindow)); }
public void RunTestAsSpecificUser() { UIMap.Click_View_Tests_In_Explorer_Context_Menu(HelloWorld); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test1.Exists, "This test expects 'Hello World' to have at least 1 existing test."); WorkflowServiceTestingUIMap.Select_First_Test(); WorkflowServiceTestingUIMap.Select_User_From_RunTestAs(); WorkflowServiceTestingUIMap.Enter_RunAsUser_Username_And_Password(); WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass); }
public void RunTestsWithMockHasTheTestPassing() { WorkflowServiceTestingUIMap.Expand_DotnetDll_ByClickingCheckbox(); WorkflowServiceTestingUIMap.ClickConstructorMockRadio(true); WorkflowServiceTestingUIMap.ClickFavouriteMockRadio(true); WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass); WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true); WorkflowServiceTestingUIMap.Click_Delete_Test_Button(); DialogsUIMap.Click_MessageBox_Yes(); }
public void RunTestsWithAssertHasTheTestPassing() { WorkflowServiceTestingUIMap.Expand_DotnetDll_ByClickingCheckbox(); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test1.Pending.Exists); WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test1.Passing.Exists); WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true); WorkflowServiceTestingUIMap.Click_Delete_Test_Button(); DialogsUIMap.Click_MessageBox_Yes(); }
public void RunTestsWithMockHasTheTestFailingWhenConstructorValueIsSetToEmpty() { WorkflowServiceTestingUIMap.Expand_DotnetDll_ByClickingCheckbox(); WorkflowServiceTestingUIMap.SetConstructorAssertValue(""); WorkflowServiceTestingUIMap.ClickConstructorMockRadio(true); WorkflowServiceTestingUIMap.ClickFavouriteMockRadio(true); WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Fail); WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true); WorkflowServiceTestingUIMap.Click_Delete_Test_Button(); DialogsUIMap.Click_MessageBox_Yes(); }
public void WorkflowWithObjectoutPutTests() { ExplorerUIMap.Filter_Explorer(WorkflowServiceTestingTests.DotnetWfWithObjOutput); ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item(); UIMap.Press_F6(); UIMap.Click_Create_Test_From_Debug(); WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass); WorkflowServiceTestingUIMap.Click_EnableDisable_This_Test_CheckBox(true); WorkflowServiceTestingUIMap.Click_Delete_Test_Button(); DialogsUIMap.Click_MessageBox_Yes(); }
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."); }
public void SettingTestStepToMockDoesNotAffectTestOutput() { ExplorerUIMap.Filter_Explorer(WorkflowServiceTestingTests.Resource); ExplorerUIMap.DoubleClick_Explorer_Localhost_First_Item(); Assert.IsTrue(WorkflowTabUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.WorkflowTab.WorkSurfaceContext.WorkflowDesignerView.DesignerView.ScrollViewerPane.ActivityTypeDesigner.WorkflowItemPresenter.Flowchart.StartNode.Exists); UIMap.Press_F6(); UIMap.Click_Create_Test_From_Debug(); Assert.IsTrue(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.Exists, "Test tab does not exist after clicking Create Test from debug button"); WorkflowServiceTestingUIMap.Click_MockRadioButton_On_TestStep(); WorkflowServiceTestingUIMap.Click_Run_Test_Button(TestResultEnum.Pass); Point point; Assert.IsFalse(WorkflowServiceTestingUIMap.MainStudioWindow.DockManager.SplitPaneMiddle.TabManSplitPane.TabMan.TestsTab.WorkSurfaceContext.ServiceTestView.TestsListboxList.Test1.Passing.TryGetClickablePoint(out point), "Passing status icon is still visible on test after running test with mocking enabled."); }