public void TC_VerifyWeightTracker() { Common config = new Common(); isenabled = config.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower(); clientname = GlobalVariables.clientname; //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); if (isenabled.Equals("true")) { points = cmn.GetPoints(clientname); } Common trackermenu = new Common(); trackermenu.ClickTrackerMenu(); Page_WeightTracker pWeightTracker = new Page_WeightTracker(softassertions); pWeightTracker.GoToWeightTracker(); pWeightTracker.VerifyWeightTracker(GlobalVariables.clientname); is_soft_assert = true; softassertions.AssertAll(); //Common logout = new Common(); //logout.LogOut(); }
public void FillWeightTracker() { 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_WeightTracker pWeightTracker = new Page_WeightTracker(softassertions); pWeightTracker.VerifyWeightTracker(GlobalVariables.clientname); is_soft_assert = true; softassertions.AssertAll(); }