public void DebugOutput_WhenRunWithOutputs_ContainsWorkflowInput() { try { //------------Setup for test-------------------------- //Open the correct workflow ExplorerUIMap.DoubleClickWorkflow("TravsTestFlow", "Trav"); //------------Assert Results------------------------- // Check for valid input in the input boxes ;) RibbonUIMap.ClickDebug(); DebugUIMap.ClickExecute(); OutputUIMap.WaitForExecution(3000); UITestControl lastStep = OutputUIMap.GetStep(1); string workflowStepName = OutputUIMap.GetStepName(lastStep); Assert.AreEqual("TravsTestFlow", workflowStepName); Assert.IsTrue(OutputUIMap.AssertDebugOutputContains(lastStep, new[] { "Inputs :", "[[a]]", "=" })); } catch (Exception e) { Assert.Fail("It appears there is a debug issue. [ " + e.Message + " ]"); } }
public void Debug_GatherSystemInfo_UsingASameVariableInTwoActivities_DebugIsCorrect() { // Remove the PersistSettings.dat ;) var appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).Replace("Roaming", ""); var settingPath = Path.Combine(appData, @"Local\Warewolf\DebugData\PersistSettings.dat"); if (File.Exists(settingPath)) { File.Delete(settingPath); } ExplorerUIMap.DoubleClickWorkflow("11330_Integration tests", "SPINT 7"); RibbonUIMap.DebugShortcutKeyPress(); OutputUIMap.WaitForExecution(3000); var step3 = OutputUIMap.GetStep(2); Assert.IsTrue(OutputUIMap.AssertDebugOutputContains(step3, new[] { "[[date]]", "=", "Date & Time" })); Assert.IsTrue(OutputUIMap.AssertDebugOutputContains(step3, new[] { "[[cpu]]", "=", "CPU Available" })); var step4 = OutputUIMap.GetStep(3); Assert.IsTrue(OutputUIMap.AssertDebugOutputContains(step4, new[] { "[[date]]", "=", "Date & Time" })); Assert.IsTrue(OutputUIMap.AssertDebugOutputContains(step4, new[] { "[[cpu]]", "=", "CPU Available" })); Assert.IsFalse(OutputUIMap.AssertDebugOutputContains(step4, new[] { "% CPU Available" })); }
public void DebugOutput_WhenUsingAColumnInput_ExecutesDataSplitCorrectly() { try { //------------Setup for test-------------------------- ExplorerUIMap.DoubleClickWorkflow("12086", "Sprint12"); //------------Assert Results------------------------- RibbonUIMap.ClickDebug(); DebugUIMap.ClickExecute(); OutputUIMap.WaitForExecution(3000); UITestControl lastStep = OutputUIMap.GetLastStep(); Assert.IsTrue(OutputUIMap.AssertDebugOutputContains(lastStep, new[] { "Outputs :", "[[moop]]", "=", "a" })); } catch (Exception e) { Assert.Fail("It appears there is a debug issue. [ " + e.Message + " ]"); } }