示例#1
0
        public void TC_FillNutritionTracker()
        {
            Common config    = new Common();
            string isenabled = config.GetConfig("CoachingEnabled").ElementAt(0)[1].ToLower();

            if (isenabled.Equals("false"))
            {
                Assert.Ignore("Coaching not enabled for client");
            }
            Page_NutritionTracker nt = new Page_NutritionTracker(softassertions);

            nt.VerifyNutritionTracker();
            is_soft_assert = true;
            softassertions.AssertAll();
        }
示例#2
0
        public void TC_VerifyNutritionTracker()
        {
            //To call the Page Login Method
            Page_Login plogin = new Page_Login();

            plogin.Login();
            Page_HAPrompt haprompt = new Page_HAPrompt();

            haprompt.GoToDashboard();

            Common trackermenu = new Common();

            trackermenu.ClickTrackerMenu();
            Page_NutritionTracker nt = new Page_NutritionTracker(softassertions);

            nt.GoToNutritionTracker();
            nt.VerifyNutritionTracker();

            is_soft_assert = true;
            softassertions.AssertAll();
            //Common logout = new Common();
            //logout.LogOut();
        }