public void RemoteServerUITests_EditRemoteWebService_WebServiceIsEdited() { const string TextToSearchWith = "WebService1234"; ExplorerUIMap.DoubleClickService(TextToSearchWith, "REMOTEUITESTS", RemoteServerName); WebServiceWizardUIMap.ClickSaveButton(); }
public void WebServiceTests_CodedUI_EditService_ExpectErrorButton() { var newMapping = "ZZZ" + Guid.NewGuid().ToString().Replace("-", "").Substring(0, 6); UITestControl theTab = ExplorerUIMap.DoubleClickWorkflow("ErrorFrameworkTestWorkflow", "UI TEST"); UITestControl service = WorkflowDesignerUIMap.FindControlByAutomationId(theTab, "FetchCities"); using (DsfActivityUiMap activityUiMap = new DsfActivityUiMap(false) { Activity = service, TheTab = theTab }) { activityUiMap.ClickEdit(); //Wizard actions WebServiceWizardUIMap.ClickMappingTab(); WebServiceWizardUIMap.EnterDataIntoMappingTextBox(6, newMapping); WebServiceWizardUIMap.TabToSaveButton(2); ResourceChangedPopUpUIMap.ClickCancel(); //Assert the the error button is there Assert.IsTrue(activityUiMap.IsFixErrorButtonShowing()); //Click the fix errors button activityUiMap.ClickFixErrors(); activityUiMap.ClickCloseMapping(); //Assert that the fix errors button isnt there anymore Assert.IsFalse(activityUiMap.IsFixErrorButtonShowing()); } }
public void WizardUiTests_WebServiceWizard_CreateServiceAndSource_ExpectedServiceAndSourceCreated() { //Initialization var sourceNameId = Guid.NewGuid().ToString().Substring(0, 5); var sourceName = "codeduitest" + sourceNameId; var serviceNameId = Guid.NewGuid().ToString().Substring(0, 5); var serviceName = "codeduitest" + serviceNameId; const string sourceUrl = "http://RSAKLFSVRTFSBLD/IntegrationTestSite/proxy.ashx"; //Open wizard RibbonUIMap.ClickNewWebService(); Assert.AreEqual("localhost (http://localhost:3142/dsf)", WizardsUIMap.GetRightTitleText()); //Click new web source WebServiceWizardUIMap.ClickNewWebSource(); WebServiceWizardUIMap.CreateWebSource(sourceUrl, sourceName); WebServiceWizardUIMap.SaveWebService(serviceName); // clean up ;) Bootstrap.DeleteService(serviceName); Bootstrap.DeleteSource(sourceName); //Assert Assert.IsTrue(ExplorerUIMap.ValidateServiceExists(serviceName, "Unassigned")); Assert.IsTrue(ExplorerUIMap.ValidateSourceExists(sourceName, "Unassigned")); }
public void NewWebServiceShortcutKeyExpectedWebServiceOpens() { StudioWindow.WaitForControlReady(1000); Keyboard.SendKeys(StudioWindow, "{CTRL}{SHIFT}W"); if (!WizardsUIMap.TryWaitForWizard()) { Assert.Fail("New web service shortcut key doesnt work"); } StudioWindow.SetFocus(); WebServiceWizardUIMap.Cancel(); }