public void TC_ValidateIncentiveHistory() { Common cmn = new Common(); string incentiveEnabled = cmn.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower(); if (incentiveEnabled.Equals("false")) { Assert.Ignore("Incentives not enabled for client"); } Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); System.Threading.Thread.Sleep(20000); Page_Incentive pincentive = new Page_Incentive(softassertions); is_soft_assert = true; pincentive.ValidateHistoryData(); softassertions.AssertAll(); Common logout = new Common(); logout.LogOut(); }
public void TC_ValidateIncentiveEligibleActivities() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Page_Incentive pincentive = new Page_Incentive(softassertions); is_soft_assert = true; pincentive.ValidateEligibleActivities(); softassertions.AssertAll(); Common logout = new Common(); logout.LogOut(); }