public void TC_SetStressGoalForFutureDate() { cmn.ClickGoalMenu(); Page_ManageStressGoal stressGoal = new Page_ManageStressGoal(); stressGoal.SetGoal(); }
//[Test, Order(3)] //[Category("Regression")] public void TC_AddPlans() { Page_ManageStressGoal stressGoal = new Page_ManageStressGoal(softassertions); is_soft_assert = true; stressGoal.VerifyActionsAdded(); softassertions.AssertAll(); }
//[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(); }
//[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(); }
//[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_SetStressGoalForFutureDate(); TC_VerifyPlanScreen(); TC_AddPlans(); TC_VerifyGoalSetUpScreen(); cmngoal.ClickStep2BackBtn(); System.Threading.Thread.Sleep(3000); Page_ManageStressGoal stressGoal = new Page_ManageStressGoal(softassertions); stressGoal.ValidateAtActionsAdded(); }