public void CheckIfDebugProcessingBarIsShowingDurningExecutionExpectedToShowDuringExecutionOnly() { //Open the correct workflow ExplorerUIMap.DoubleClickWorkflow("LargeFileTesting", "TESTS"); RibbonUIMap.ClickDebug(); DebugUIMap.ClickExecute(); var status = OutputUIMap.GetStatusBarStatus(); var spinning = OutputUIMap.IsSpinnerSpinning(); Assert.AreEqual("Executing", status, "Debug output status text does not say executing when executing"); Assert.IsTrue(spinning, "Debug output spinner not spinning during execution"); }
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 + " ]"); } }