public void DbServiceTests_CodedUI_EditService_ExpectErrorButton() { var newMapping = "ZZZ" + Guid.NewGuid().ToString().Replace("-", "").Substring(0, 6); //Drag the service onto the design surface UITestControl theTab = ExplorerUIMap.DoubleClickWorkflow("ErrorFrameworkTestWorkflow", "UI TEST"); UITestControl service = WorkflowDesignerUIMap.FindControlByAutomationId(theTab, "TravsTestService"); using (DsfActivityUiMap activityUiMap = new DsfActivityUiMap(false) { Activity = service, TheTab = theTab }) { activityUiMap.ClickEdit(); WizardsUIMap.WaitForWizard(); //Wizard actions DatabaseServiceWizardUIMap.ClickMappingTab(); DatabaseServiceWizardUIMap.EnterDataIntoMappingTextBox(0, newMapping); DatabaseServiceWizardUIMap.ClickSaveButton(4); // IT IS THE STRANGES THING. 3 IF RUN FROM DESKTOP, 4 FOR RDP SESSION?! ResourceChangedPopUpUIMap.ClickCancel(); //Assert the the error button is there Assert.IsTrue(activityUiMap.IsFixErrorButtonShowing()); //Click the fix errors button activityUiMap.ClickFixErrors(); activityUiMap.ClickCloseMapping(5000); //Assert that the fix errors button isnt there anymore Assert.IsFalse(activityUiMap.IsFixErrorButtonShowing()); } }
/// <summary> /// ClickAndTypeInNameTextbox - Use 'ClickAndTypeInNameTextboxParams' to pass parameters into this method. /// </summary> public void ClickAndTypeInNameTextbox(string textToType) { WizardsUIMap.WaitForWizard(); #region Variable Declarations //UITestControl uIItemImage = this.UIBusinessDesignStudioWindow.GetChildren()[0].GetChildren()[0]; #endregion KeyboardCommands.SendTabs(6, 150); KeyboardCommands.SendKey(textToType, 200); KeyboardCommands.SendDel(); //MouseCommands.ClickPoint(new Point(145, 364), 100); KeyboardCommands.SendTabs(2, 150); KeyboardCommands.SendEnter(); }
public void OpenWizard() { var getLocalServer = ExplorerUIMap.GetLocalServer(); Mouse.Click(MouseButtons.Right, ModifierKeys.None, new Point(getLocalServer.BoundingRectangle.X + 25, getLocalServer.BoundingRectangle.Y)); for (var i = 0; i < 10; i++) { Keyboard.SendKeys("{DOWN}"); } SendKeys.SendWait("{ENTER}"); //wait for email source wizard WizardsUIMap.WaitForWizard(); }
public void ClickNewDbWebService() { ClickRibbonMenuItem("UI_RibbonHomeTabDBServiceBtn_AutoID"); WizardsUIMap.WaitForWizard(); }