public void WizardUiTests_EmailSourceWizard_CreateNewSource_ExpectedSourceCreated() { //Initialization var startEmailServer = TestUtils.StartEmailServer(); var sourceName = Guid.NewGuid().ToString().Substring(0, 5); var name = "codeduitest" + sourceName; //Open wizard EmailSourceWizardUIMap.OpenWizard(); Assert.AreEqual("New Email Source", WizardsUIMap.GetLeftTitleText()); Assert.AreEqual("localhost (http://localhost:3142/dsf)", WizardsUIMap.GetRightTitleText()); //Create Email Source EmailSourceWizardUIMap.CreateEmailSource(name); // clean up ;) Bootstrap.DeleteSource(sourceName); //Assert Assert.IsTrue(ExplorerUIMap.ValidateSourceExists(name, "Unassigned"), "Email source was not created."); TestUtils.StopEmailServer(startEmailServer); }
// 05/11 - Failure is Intermittent ;) public void DecisionWizard_Save_WhenMouseUsedToSelect2ndAnd3rdInputFields_FieldDataSavedCorrectly() { //------------Setup for test-------------------------- RibbonUIMap.CreateNewWorkflow(); var theTab = TabManagerUIMap.GetActiveTab(); //------------Execute Test--------------------------- VariablesUIMap.EnterTextIntoScalarName(0, "VariableName"); var pt = WorkflowDesignerUIMap.GetPointUnderStartNode(theTab); ToolboxUIMap.DragControlToWorkflowDesigner(ToolType.Decision, pt); WizardsUIMap.WaitForWizard(); Assert.AreEqual("Decision Flow", WizardsUIMap.GetLeftTitleText()); _decisionWizardUiMap.SendTabs(5, 500); _decisionWizardUiMap.SelectMenuItem(17, 100); // select between ;) _decisionWizardUiMap.SendTabs(11, 500); _decisionWizardUiMap.GetFirstIntellisense("[[V", false, new Point(100, 120)); _decisionWizardUiMap.SendTabs(2, 500); _decisionWizardUiMap.GetFirstIntellisense("[[V", false, new Point(400, 120)); _decisionWizardUiMap.SendTabs(1, 500); _decisionWizardUiMap.GetFirstIntellisense("[[V", false, new Point(600, 120)); _decisionWizardUiMap.SendTabs(6, 500); KeyboardCommands.SendEnter(); //------------Assert Results------------------------- const string expected = "If [[VariableName]] Is Between [[VariableName]] and [[VariableName]]"; var getDecision = WorkflowDesignerUIMap.FindControlByAutomationId(theTab, "FlowDecisionDesigner"); getDecision.WaitForControlEnabled(); var getDecisionText = getDecision.GetChildren()[0] as WpfEdit; if (getDecisionText != null) { var displayValue = getDecisionText.Text; Assert.AreEqual(expected, displayValue, "Decision intellisense doesnt work when using the mouse to select intellisense results"); } else { Assert.Fail("Null decision"); } }