GetRightTitleText() 공개 메소드

public GetRightTitleText ( ) : string
리턴 string
예제 #1
0
        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));
        }
예제 #2
0
        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);
        }
예제 #3
0
        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"));
        }