Example #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();
        }
Example #2
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();
        }
Example #3
0
        public void TC_FillHighRiskHA()
        {
            Page_FillHA ha    = new Page_FillHA(softassertions);
            Common      cm    = new Common();
            int         hraid = cm.GetHRAID(clientname);

            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();
            cmn.RefreshWebPage();
        }