Ejemplo n.º 1
0
        public void TC_SetDietaryHabitsGoalForFutureDate()
        {
            cmn.ClickGoalMenu();
            Page_ImproveDietaryHabitsGoal dietaryHabitsGoal = new Page_ImproveDietaryHabitsGoal();

            dietaryHabitsGoal.SetGoal();
        }
Ejemplo n.º 2
0
        //[Test, Order(3)]
        //[Category("Regression")]

        public void TC_AddPlans()
        {
            Page_ImproveDietaryHabitsGoal dietaryHabitsGoal = new Page_ImproveDietaryHabitsGoal(softassertions);

            is_soft_assert = true;
            dietaryHabitsGoal.VerifyActionsAdded();
            softassertions.AssertAll();
        }
Ejemplo n.º 3
0
        //[Test, Order(5)]
        //[Category("Regression")]
        public void TC_VerifyGoalCompletionScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickConfirmBtn();
            Page_ImproveDietaryHabitsGoal dietaryHabitsGoal = new Page_ImproveDietaryHabitsGoal(softassertions);

            is_soft_assert = true;
            dietaryHabitsGoal.VerifyGoalComplete();
            softassertions.AssertAll();
        }
Ejemplo n.º 4
0
        //[Test, Order(4)]
        //[Category("Regression")]
        public void TC_VerifyGoalSetUpScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickStep2NextBtn();
            Page_ImproveDietaryHabitsGoal dietaryHabitsGoal = new Page_ImproveDietaryHabitsGoal(softassertions);

            is_soft_assert = true;
            dietaryHabitsGoal.VerifySetUpScreen();
            softassertions.AssertAll();
        }
Ejemplo n.º 5
0
        //[Test, Order(2)]
        //[Category("Regression")]

        public void TC_VerifyPlanScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickStep1NextBtn();
            Page_ImproveDietaryHabitsGoal fitnessLevelGoal = new Page_ImproveDietaryHabitsGoal(softassertions);

            is_soft_assert = true;
            fitnessLevelGoal.VerifyPlanScreen();
            softassertions.AssertAll();
        }
Ejemplo n.º 6
0
        //[Test, Order(5)]
        //[Category("Regression")]
        //[Category("CoachingReg")]
        public void TC_ClickGoalSetUpBackBtn()
        {
            Common config    = new Common();
            string isenabled = config.GetConfig("CoachingEnabled").ElementAt(0)[1].ToLower();

            if (isenabled.Equals("false"))
            {
                Assert.Ignore("Coaching not enabled for client");
            }
            TC_SetDietaryHabitsGoalForFutureDate();
            TC_VerifyPlanScreen();
            TC_AddPlans();
            TC_VerifyGoalSetUpScreen();
            cmngoal.ClickStep2BackBtn();
            System.Threading.Thread.Sleep(3000);
            Page_ImproveDietaryHabitsGoal idh = new Page_ImproveDietaryHabitsGoal(softassertions);

            idh.VerifyActionsAdded();
            softassertions.AssertAll();
        }