Пример #1
0
        public void TC_FillHighRiskHA()
        {
            Page_Login plogin = new Page_Login();

            plogin.Login();

            Page_HAPrompt haprompt = new Page_HAPrompt();

            Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page");
            haprompt.GoToDashboard();
            ha = new Page_FillHA(softassertions);
            Common cm    = new Common();
            int    hraid = cm.GetHRAID(GlobalVariables.clientname.ToLower());

            Console.WriteLine("HRAID : " + hraid);
            if (hraid == 89 || hraid == 66 || hraid == 81)
            {
                ha.setInputFileName("HRAID(89,66)HighRiskHAData");
            }
            //else if (hraid == 84)
            //    ha.setInputFileName("HRAID(Nucor)HighRiskHAData");
            else if (hraid == 87)
            {
                ha.setInputFileName("HRAID(DG)HighRiskHAData");
            }


            is_soft_assert = true;
            ha.FillHA();
            softassertions.AssertAll();
        }
Пример #2
0
        public void WhenIAmOnTheDashboardPage()
        {
            Page_HAPrompt haprompt = new Page_HAPrompt();

            Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page");
            haprompt.GoToDashboard();
        }
        public void TC_VerifyCustomLoginNucor()
        {
            //To call the Page Login Method
            if (GlobalVariables.clientname.ToLower().Equals("nucor"))
            {
                if ((GlobalVariables.environment.ToLower().Equals("prod")) || (GlobalVariables.environment.ToLower().Equals("Production")))
                {
                    SeleniumKeywords.NavigateToUrl("https://nucornuyou.com");
                }
                else if ((GlobalVariables.environment.ToLower().Equals("staging")) || (GlobalVariables.environment.ToLower().Equals("sa")))
                {
                    SeleniumKeywords.NavigateToUrl("https://sa.nucornuyou.com");
                }
                Page_Login plogin = new Page_Login();
                System.Threading.Thread.Sleep(2000);
                plogin.CustomURLLogin();
                Page_HAPrompt haprompt = new Page_HAPrompt();
                Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page");
                haprompt.GoToDashboard();

                //To call the Page Login Method
                Page_Dashboard Dashboard = new Page_Dashboard();
                Assert.IsTrue(Dashboard.AtDashboard());
                Common logout = new Common();
                logout.LogOut();
            }
            else
            {
                Assert.Ignore("Feature is not avaibale for the client");
            }
        }
Пример #4
0
        //[Category("Regression")]
        public void TC_FillNormalHA()
        {
            Page_Login plogin = new Page_Login();

            plogin.Login();

            Page_HAPrompt haprompt = new Page_HAPrompt();

            Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page");
            haprompt.GoToDashboard();

            ha = new Page_FillHA(softassertions);
            ha.setInputFileName("NormalHAData");

            is_soft_assert = true;
            ha.FillHA();
            softassertions.AssertAll();
        }