Ejemplo n.º 1
0
        public void TC_MaintainWeightGoal()
        {
            coachingEnabled = cmn.GetConfig("CoachingEnabled").ElementAt(0)[1].ToLower();
            if (coachingEnabled.Equals("false"))
            {
                Assert.Ignore("Coaching not available for client");
            }
            CommonGoals             cmngoal = new CommonGoals(softassertions);
            Page_MaintainWeightGoal mt      = new Page_MaintainWeightGoal(softassertions);

            //cmn.ClickGoalMenu();
            mt.InputWeight();
            cmngoal.ClickStep1NextBtn();
            is_soft_assert = true;
            mt.VerifyPlanScreen();
            mt.VerifyActionsAdded();
            System.Threading.Thread.Sleep(3000);
            cmngoal.ClickStep2NextBtn();
            mt.VerifySetUpScreen();
            cmngoal.ClickConfirmBtn();
            mt.VerifyGoalComplete();
            cmngoal.ClickRemoveBtn();
            cmngoal.VerifyRemovePopUp();
            cmngoal.ClickRemoveScreenYesBtn();
            Page_HAPrompt haprompt = new Page_HAPrompt();

            haprompt.GoToDashboard();
            Page_Dashboard dashbrd = new Page_Dashboard();

            Assert.IsTrue(dashbrd.AtDashboard(), "Not Navigated to Dashboard");
        }
        public void TC_VerifyRemovePopUp()
        {
            CommonGoals cg = new CommonGoals(softassertions);

            is_soft_assert = true;
            cg.ClickRemoveBtn();
            cg.VerifyRemovePopUp();
            softassertions.AssertAll();
        }
Ejemplo n.º 3
0
        //[Test, Order(7)]
        //[Category("Regression")]
        public void TC_RemoveGoal()
        {
            CommonGoals cg = new CommonGoals(softassertions);

            cg.ClickRemoveScreenYesBtn();
            Page_HAPrompt haprompt = new Page_HAPrompt();

            haprompt.GoToDashboard();
            cmn.LogOut();
        }
        public void TC_InputBPStatus()
        {
            cmn.ClickGoalMenu();
            Page_ImproveBloodPressureGoal ibpg = new Page_ImproveBloodPressureGoal();

            ibpg.InputBPValues();
            CommonGoals cg = new CommonGoals();

            cg.ClickStep1NextBtn();
        }
Ejemplo n.º 5
0
        //[Test, Order(5)]
        //[Category("Regression")]
        public void TC_VerifyGoalCompletionScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickConfirmBtn();
            Page_ManageStressGoal stressGoal = new Page_ManageStressGoal(softassertions);

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

            cg.ClickStep2NextBtn();
            Page_ManageStressGoal stressGoal = new Page_ManageStressGoal(softassertions);

            is_soft_assert = true;
            stressGoal.VerifySetUpScreen();
            softassertions.AssertAll();
        }
Ejemplo n.º 7
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();
        }
        public void TC_VerifyPlanScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickStep1NextBtn();
            Page_DecreaseWeightGoal dwg = new Page_DecreaseWeightGoal(softassertions);

            is_soft_assert = true;
            dwg.VerifyPlanScreen();
            softassertions.AssertAll();
        }
        public void TC_VerifyGoalCompletionScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickConfirmBtn();
            Page_ImproveFitnessLevelGoal fitnessLevelGoal = new Page_ImproveFitnessLevelGoal(softassertions);

            is_soft_assert = true;
            fitnessLevelGoal.VerifyGoalComplete();
            softassertions.AssertAll();
        }
        public void TC_VerifyGoalSetUpScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickStep2NextBtn();
            Page_ImproveFitnessLevelGoal fitnessLevelGoal = new Page_ImproveFitnessLevelGoal(softassertions);

            is_soft_assert = true;
            fitnessLevelGoal.VerifySetUpScreen();
            softassertions.AssertAll();
        }
        //[Test, Order(5)]
        //[Category("Regression")]
        public void TC_VerifyGoalCompletionScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickConfirmBtn();
            Page_ImproveCholesterolGoal iCholesterolg = new Page_ImproveCholesterolGoal(softassertions);

            is_soft_assert = true;
            iCholesterolg.VerifyGoalComplete();
            softassertions.AssertAll();
        }
        //[Test,Order(2)]
        //[Category("Regression")]

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

            cg.ClickStep1NextBtn();
            Page_ImproveCholesterolGoal iCholesterolg = new Page_ImproveCholesterolGoal(softassertions);

            is_soft_assert = true;
            iCholesterolg.VerifyPlanScreen();
            softassertions.AssertAll();
        }
Ejemplo n.º 13
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();
        }
        public void TC_VerifyGoalCompletionScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickConfirmBtn();
            Page_DecreaseWeightGoal dwg = new Page_DecreaseWeightGoal(softassertions);

            is_soft_assert = true;
            dwg.VerifyGoalComplete();
            softassertions.AssertAll();
        }
        //[Test, Order(5)]
        //[Category("Regression")]
        public void TC_VerifyGoalCompletionScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickConfirmBtn();
            Page_ImproveBloodPressureGoal ibpg = new Page_ImproveBloodPressureGoal(softassertions);

            is_soft_assert = true;
            ibpg.VerifyGoalComplete();
            softassertions.AssertAll();
        }
Ejemplo n.º 16
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();
        }
        //[Test,Order(4)]
        //[Category("Regression")]
        public void TC_VerifyGoalSetUpScreen()
        {
            CommonGoals cg = new CommonGoals();

            cg.ClickStep2NextBtn();
            Page_ImproveBloodPressureGoal ibpg = new Page_ImproveBloodPressureGoal(softassertions);

            is_soft_assert = true;
            ibpg.VerifySetUpScreen();
            softassertions.AssertAll();
        }
        public void TC_VerifyGoalSetUpScreen()
        {
            CommonGoals cg = new CommonGoals();

            System.Threading.Thread.Sleep(3000);
            cg.ClickStep2NextBtn();

            Page_DecreaseWeightGoal dwg = new Page_DecreaseWeightGoal(softassertions);

            is_soft_assert = true;
            dwg.VerifySetUpScreen();
            softassertions.AssertAll();
        }
        //[Test, Order(7)]
        //[Category("Regression")]
        public void TC_RemoveGoal()
        {
            CommonGoals cg = new CommonGoals(softassertions);

            cg.ClickRemoveScreenYesBtn();
        }