public void UnsavedStar_UITest_WhenWorkflowIsChanged_ExpectStarIsShowing() { //------------Setup for test-------------------------- RibbonUIMap.CreateNewWorkflow(); // Get some data var tabName = TabManagerUIMap.GetActiveTabName(); UITestControl theTab = TabManagerUIMap.FindTabByName(tabName); UITestControl theStartButton = WorkflowDesignerUIMap.FindControlByAutomationId(theTab, "Start"); Point workflowPoint1 = new Point(theStartButton.BoundingRectangle.X, theStartButton.BoundingRectangle.Y + 200); // Drag a Multi Assign on ToolboxUIMap.DragControlToWorkflowDesigner(ToolType.Assign, workflowPoint1); // Click away MouseCommands.ClickPoint(new Point(workflowPoint1.X + 50, workflowPoint1.Y + 50), 500); //------------Execute Test--------------------------- var theUnsavedTab = TabManagerUIMap.GetActiveTab(); //------------Assert Results------------------------- Assert.IsNotNull(theUnsavedTab, "Editted workflow does not have the unsaved * after its name on the tab"); }
public void DebugOutput_WhenStopped_WaitsForRenderToCompleteBeforeStoppedMessage() { try { //------------Setup for test-------------------------- //Open the correct workflow ExplorerUIMap.DoubleClickWorkflow("CodedUI_DebugOutputStop", "TESTS"); string status = OutputUIMap.GetStatusBarStatus(); Assert.AreEqual("Ready", status); UITestControl debugButton = RibbonUIMap.ClickDebug(); Point debugButtonPoint = new Point(debugButton.BoundingRectangle.X + 5, debugButton.BoundingRectangle.Y + 5); DebugUIMap.ClickExecute(1500); MouseCommands.ClickPoint(debugButtonPoint, 500); //------------Assert Results------------------------- status = OutputUIMap.GetStatusBarStatus(); StringAssert.Contains(status, "Ready"); } catch (Exception e) { Assert.Fail("It appears there is a debug issue. [ " + e.Message + " ]"); } }