public void WizardUiTests_DbServiceWizard_CreateNewService_ExpectedServiceCreated() { //Initialization var sourceNameID = Guid.NewGuid().ToString().Substring(0, 5); var serviceNameID = Guid.NewGuid().ToString().Substring(0, 5); const string cat = "UNASSIGNED"; var serviceName = "codeduitest" + serviceNameID; var sourceName = "codeduitest" + sourceNameID; const string sourcePath = "RSAKLFSVRGENDEV"; //Open wizard RibbonUIMap.ClickNewDbWebService(); Assert.AreEqual("localhost (http://localhost:3142/dsf)", WizardsUIMap.GetRightTitleText()); //Click New Db Source button DatabaseServiceWizardUIMap.ClickNewDbSource(); //Create the new Db Source DatabaseServiceWizardUIMap.CreateDbSource(sourcePath, sourceName); //Create the Db Service DatabaseServiceWizardUIMap.CreateDbService(serviceName); // clean up ;) Bootstrap.DeleteService(serviceName); Bootstrap.DeleteSource(sourceName); //Assert Assert.IsTrue(ExplorerUIMap.ValidateServiceExists(serviceName, cat)); Assert.IsTrue(ExplorerUIMap.ValidateSourceExists(sourceName, cat)); }
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); }
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")); }