Exemple #1
0
        public void TC_VerifyTrackerChart()
        {
            //Page_Login plogin = new Page_Login();
            //plogin.Login();
            //Page_HAPrompt haprompt = new Page_HAPrompt();
            //haprompt.GoToDashboard();

            CommonTracker wt = new CommonTracker(softassertions);

            wt.VerifyTrackerChart();

            is_soft_assert = true;
            softassertions.AssertAll();
        }
Exemple #2
0
        public void TC_VerifyTrackerChart()
        {
            //Page_Login plogin = new Page_Login();
            //plogin.Login();
            //Page_HAPrompt haprompt = new Page_HAPrompt();
            //haprompt.GoToDashboard();

            //Common trackermenu = new Common();
            //trackermenu.ClickTrackerMenu();
            CommonTracker ct = new CommonTracker(softassertions);

            //Page_PhysActivityTracker pa = new Page_PhysActivityTracker(softassertions);
            //pa.NavigateToPhysicalActivityTracker();
            ct.VerifyTrackerChart();

            is_soft_assert = true;
            softassertions.AssertAll();

            Common logout = new Common();

            logout.LogOut();
        }
Exemple #3
0
        public void TC_WeightTracker()
        {
            incentiveEnabled = cmn.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower();

            if (incentiveEnabled.Equals("true"))
            {
                points = cmn.GetPoints(clientname);
            }

            Page_WeightTracker pWeightTracker = new Page_WeightTracker(softassertions);

            pWeightTracker.GoToWeightTracker();
            pWeightTracker.VerifyWeightTracker(clientname);
            CommonTracker ct = new CommonTracker(softassertions);

            ct.VerifyTrackerChart();


            if (!incentiveEnabled.Equals("false"))
            {
                //Assert.Ignore("Incentives not enabled for client");


                WeightTracker wt = new WeightTracker();
                wt.TC_ValidateTrackerIncentiveHistory();

                int awardedpoints = cmn.GetPoints(clientname);

                int points_tracker      = Convert.ToInt32(cmn.GetInstancePointsValue(clientname, "Tracker"));
                int expectedtotalpoints = points + points_tracker;

                Console.WriteLine("Expected : " + expectedtotalpoints);
                Console.WriteLine("Awarded : " + awardedpoints);
                Assert.AreEqual(expectedtotalpoints, awardedpoints);
            }

            is_soft_assert = true;
            softassertions.AssertAll();
        }
        public void TC_VerifyTrackerChart()
        {
            if (GlobalVariables.clientname == "NUCOR")
            {
                Assert.Ignore("The current testcase is not available for the client" + GlobalVariables.clientname);
            }
            else
            {
                //Page_Login plogin = new Page_Login();
                //plogin.Login();
                //Page_HAPrompt haprompt = new Page_HAPrompt();
                //haprompt.GoToDashboard();

                CommonTracker sl = new CommonTracker(softassertions);
                sl.VerifyTrackerChart();

                is_soft_assert = true;
                softassertions.AssertAll();

                Common logout = new Common();
                logout.LogOut();
            }
        }