public void ScreenNavigationVerification()
        {
            System.Threading.Thread.Sleep(5000);
            DecomAppEnv_AppEnvDetailsPage EnvDetails = new DecomAppEnv_AppEnvDetailsPage();
            string actualmessage = (Properties.driver.FindElement(By.XPath("//label[text()='Application Environment Validation']/following-sibling::textarea"))).GetAttribute("value");

            String[] allSheet     = ExcelMethods.getAllSheetName();
            DataSet  ds           = ExcelMethods.getDataSetForSheet("DecomAppEnv_ActiveLoadBalancer");
            string   validmessage = ExcelMethods.GetValueOfHeader(ds, "ValidMessage");

            if (EnvDetails.txtPageHeader.Displayed)
            {
                if (actualmessage.Equals(validmessage))
                {
                    BaseTest.test.Log(LogStatus.Pass, "Proper validation message is displayed");
                }
                else
                {
                    BaseTest.test.Log(LogStatus.Fail, "Improper validation message is displayed");
                    NUnit.Framework.Assert.Fail();
                }
            }
            else
            {
                BaseTest.test.Log(LogStatus.Fail, "Navigated to Confirmation page even after containing active Load Balancers");
                NUnit.Framework.Assert.Fail();
            }
        }
Exemplo n.º 2
0
        public void SelectEnvironment(string appService, string appEnv)
        {
            System.Threading.Thread.Sleep(3000);
            DecomAppEnv_AppEnvDetailsPage objDecomEnv = new DecomAppEnv_AppEnvDetailsPage();

            common.Perform(objDecomEnv.txtAppService, "sendkeys", appService);
            common.smallwait();
            common.Perform(objDecomEnv.txtRequestOwner, "click", "");
            common.Perform(objDecomEnv.txtAppEnv, "sendkeys", appEnv);
            common.Perform(objDecomEnv.txtRequestOwner, "click", "");
            common.smallwait();
        }