public void TC_VerifyChallenge() { string challengeEnabled = cmn.GetConfig("ChallengesEnabled").ElementAt(0)[1].ToLower(); string incentiveEnabled = cmn.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower(); if (challengeEnabled.Equals("false")) { Assert.Ignore("Challenges not available for the client"); } if (incentiveEnabled.Equals("true")) { points = cmn.GetPoints(clientname); } Common com = new Common(); com.ClickChallengesMenu(); Page_Challenges pchal = new Page_Challenges(); Assert.IsTrue(pchal.VerifyChallengesPage()); Challenges ch = new Challenges(); ch.TC_VerifyChallengeJoined(); ch.TC_VerifyTrackChallenge(); ch.TC_VerifyLeaveChallenge(); ch.TC_ValidatJoinChallengeIncentiveHistory(); ch.TC_ValidatePoints(); }
public void TC_VerifyAtChallengePage() { challengeEnabled = cmn.GetConfig("ChallengesEnabled").ElementAt(0)[1].ToLower(); incentiveEnabled = cmn.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower(); if (challengeEnabled.Equals("false")) { Assert.Ignore("Challenges not available for the client"); } //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); if (incentiveEnabled.Equals("true")) { points = cmn.GetPoints(clientname); } Common com = new Common(); com.ClickChallengesMenu(); Page_Challenges pchal = new Page_Challenges(); Assert.IsTrue(pchal.VerifyChallengesPage()); }