public void GoToDashboard() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); }
public void GivenILoginToApplicationWithInputs(string valid) { BaseClass init = new BaseClass(); init.Initialize(); Page_Login login = new Page_Login(); login.Login("valid"); }
public void GivenILoginToTheApplicationUsingCredentials(string valid) { BaseClass init = new BaseClass(); init.Initialize(); Page_Login login = new Page_Login(); login.Login("valid"); }
public void TC_GoToNotificationPage() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); System.Threading.Thread.Sleep(8000); Page_Notifications pn = new Page_Notifications(); pn.ClickViewAllLink(); }
public void TC_VerifyConnectionName() { string expected = ConfigurationManager.AppSettings["firstname"] + " " + ConfigurationManager.AppSettings["lastname"] + "!"; Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Page_MyProfile mp = new Page_MyProfile(); String actual = mp.VerifyMemberName(); Console.WriteLine("Expected user name is " + expected + " Actual is " + actual); Assert.AreEqual(expected, actual.Trim()); }
public void TC_VerifyLogout() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Page_Dashboard Dashboard = new Page_Dashboard(); Assert.IsTrue(Dashboard.AtDashboard()); Common logout = new Common(); logout.LogOut(); }
public void TC_VerifyWeightManagementProgressCheckIn() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); cmn.ClickProgressCheckinMenu(); Page_WeightProgressCheckIn pprogress = new Page_WeightProgressCheckIn(softassertions); is_soft_assert = true; pprogress.CompleteProgressCheckIn(); softassertions.AssertAll(); }
public void TC_VerifyAtDashboard() { coachingEnabled = cmn.GetConfig("CoachingEnabled").ElementAt(0)[1].ToLower(); journeyEnabled = cmn.GetConfig("JourneyEnabled").ElementAt(0)[1].ToLower(); //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); //Page_Dashboard Dashboard = new Page_Dashboard(); // Assert.IsTrue(Dashboard.AtDashboard()); }
public void TC_VerifyQuitTobaccoProgressCheckIn() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); cmn.ClickProgressCheckinMenu(); Page_QuitTobaccoProgressCheckIn pqt = new Page_QuitTobaccoProgressCheckIn(softassertions); is_soft_assert = true; pqt.CompleteProgressCheckIn(); softassertions.AssertAll(); }
public void TC_VerifyHealthContentPage() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); //Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page"); haprompt.GoToDashboard(); // Health Content Common cmn = new Common(); cmn.ClickOnResources(); Page_HealthContent phc = new Page_HealthContent(); List <string[]> actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "HealthContent", "pageheading"); string atrval = phc.VerifyHealthContentPage(); Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]); Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval); // Symptom Checker Tab Page_SymptomChecker psc = new Page_SymptomChecker(); atrval = psc.VerifySymptomCheckerPageFromTab(); actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "SymptomChecker", "pageheading"); Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]); Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval); // Well Being Content Tab Page_WellBeingContent wbc = new Page_WellBeingContent(); atrval = wbc.VerifyWellBeingFromTab(); actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "Common", "pageheading"); Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]); Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval); //Family Content Page_FamilyContent fc = new Page_FamilyContent(); atrval = fc.VerifyFamilyContentFromTab(); actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "Common", "pageheading"); TestContext.WriteLine("expected" + actualtxt.ElementAt(0)[4]); TestContext.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]); Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval); }
public void TC_VerifyImprovingNutritionCourse() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common coursemenu = new Common(); coursemenu.ClickCourseMenu(); Page_ImprovingNutritionCourse incourse = new Page_ImprovingNutritionCourse(softassertions); is_soft_assert = true; incourse.CompleteImprovingNutritionCourse(); softassertions.AssertAll(); }
public void TC_VerifyAtDashboard() { clientname = GlobalVariables.clientname.ToLower(); Console.WriteLine("ClientName : " + clientname); //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Page_Dashboard Dashboard = new Page_Dashboard(); Assert.IsTrue(Dashboard.AtDashboard()); }
public void TC_TakeQuitTobaccoCourse() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common coursemenu = new Common(); coursemenu.ClickCourseMenu(); Page_QuitTobaccoCourse pcourse = new Page_QuitTobaccoCourse(softassertions); is_soft_assert = true; pcourse.CompleteQuitTobaccoCourse(); softassertions.AssertAll(); }
public void TC_VerifyBloodPressureProgressCheckIn() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); cmn.ClickProgressCheckinMenu(); Page_BloodPressureProgressCheckIn pbp = new Page_BloodPressureProgressCheckIn(softassertions); is_soft_assert = true; pbp.CompleteProgressCheckIn(); //pbp.VerifyProgressCheckinReportBottomLinks(GlobalVariables.clientname); softassertions.AssertAll(); }
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(); }
public void TC_CompleteBloodPressureCourse() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common coursemenu = new Common(); coursemenu.ClickCourseMenu(); Page_BloodPressureCourse pcourse = new Page_BloodPressureCourse(softassertions); is_soft_assert = true; pcourse.CompleteBloodPressureCourse(); softassertions.AssertAll(); }
//[Category("Regression")] public void TC_FillNormalHA() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page"); haprompt.GoToDashboard(); ha = new Page_FillHA(softassertions); ha.setInputFileName("NormalHAData"); is_soft_assert = true; ha.FillHA(); softassertions.AssertAll(); }
public void TC_VerifyDashboardLink() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common dblink = new Common(); dblink.ClickFooterDashboardLink(); haprompt.GoToDashboard(); Page_Dashboard dashbrd = new Page_Dashboard(); Assert.IsTrue(dashbrd.JourneyBannerDisplayed(), "Journey Banner missing"); //Assert.Ignore("Test Case Disabled due to bug DEF - 2617"); }
public void TC_VerifySpanishSettings() { Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Console.WriteLine("Navigating to Settings"); Common settings = new Common(); settings.GoToSettings(); Page_Settings myinf = new Page_Settings(softassertions); myinf.ConvertToSpanish(); is_soft_assert = true; softassertions.AssertAll(); }
public void TC_VerifyMyProfErrorMessages() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Console.WriteLine("Navigating to Settings"); Common settings = new Common(); settings.GoToSettings(); Page_Settings myinf = new Page_Settings(softassertions); myinf.VerifyMyProfileErrors(); is_soft_assert = true; softassertions.AssertAll(); }
public void TC_VerifyFirstModuleQuestions() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); //Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page"); haprompt.GoToDashboard(); //To call the Page Login Method Page_Dashboard Dashboard = new Page_Dashboard(); Assert.IsTrue(Dashboard.AtDashboard()); Page_NewHA ha = new Page_NewHA(softassertions); ha.FillHA(); }
public void TC_FillProgressCheckin() { 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 coursemenu = new Common(); coursemenu.ClickCourseMenu(); Page_WeightManagementCourse pcourse = new Page_WeightManagementCourse(); pcourse.NavigateToCourse(); CommonCourses cmnc = new CommonCourses(); cmnc.GoToProgressCheckin(); Page_WeightProgressCheckIn pc = new Page_WeightProgressCheckIn(); List <string[]> result = pc.VerifyProgressCheckIn(); is_soft_assert = false; Assert.Multiple(() => { for (int i = 0; i < result.Count; i++) { bool textmatchresult = Convert.ToBoolean(result.ElementAt(i)[1]); string msg = result.ElementAt(i)[0]; Assert.IsTrue(textmatchresult, msg); } } ); }
public void TC_VerifyStressTracker() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common trackermenu = new Common(); trackermenu.ClickTrackerMenu(); Page_StressTracker stress = new Page_StressTracker(softassertions); stress.GoToStressTracker(); stress.VerifyStressTracker(); is_soft_assert = true; softassertions.AssertAll(); }
public void TC_VerifyDevices() { List <string[]> isEnabled = cmn.GetConfig("FitnessDevice", "IncentiveEnabled", "NutritionApp"); fitnessEnabled = isEnabled.ElementAt(0)[1].ToLower(); incentiveEnabled = isEnabled.ElementAt(0)[2].ToLower(); nutritionEnabled = isEnabled.ElementAt(0)[3].ToLower(); clientname = GlobalVariables.clientname.ToLower(); if (fitnessEnabled.Equals("false") && nutritionEnabled.Equals("false")) { Assert.Ignore("Device and Apps not available for 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); } Page_DevicesAndApps pdevices = new Page_DevicesAndApps(); //pdevices.AcceptTOS(); Common devices = new Common(); //devices.ClickDevicesAndApps(); string expected = "Start Tracking Your Activity Today"; if (nutritionEnabled.Equals("true") && fitnessEnabled.Equals("false")) { expected = "Start Tracking Your Nutrition Today"; } devices.ClickDevicesAndApps(); string actual = pdevices.NavigateToManageDevices(); Assert.AreEqual(expected, actual); }
//[Category("ProdSanity")] public void TC_FillProgressCheckin() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); // points = cmn.GetPoints(); Common coursemenu = new Common(); coursemenu.ClickCourseMenu(); //Page_WeightManagementCourse pcourse = new Page_WeightManagementCourse(); Page_ManageStressCourse pcourse = new Page_ManageStressCourse(); pcourse.NavigateToCourse(); CommonCourses cmnc = new CommonCourses(); cmnc.GoToProgressCheckin(); Page_ManagingStressProgressCheckIn pc = new Page_ManagingStressProgressCheckIn(softassertions); pc.FillProgresscheckinFromCourse(); is_soft_assert = true; softassertions.AssertAll(); ////List<string[]> result = pc.VerifyProgressCheckIn(); //is_soft_assert = false; //Assert.Multiple(() => //{ // for (int i = 0; i < result.Count; i++) // { // bool textmatchresult = Convert.ToBoolean(result.ElementAt(i)[1]); // string msg = result.ElementAt(i)[0]; // Assert.IsTrue(textmatchresult, msg); // } //} //); //cmn.LogOut(); }
public void TC_VerifyCholTracker() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common trackermenu = new Common(); trackermenu.ClickTrackerMenu(); Page_CholesterolTracker chol = new Page_CholesterolTracker(softassertions); chol.NavigateToCholTracker(); chol.VerifyCholesterolTracker(); //CommonTracker choll = new CommonTracker(softassertions); //choll.VerifyTrackerChart(); is_soft_assert = true; softassertions.AssertAll(); }
public void TC_VerifyManagingStressProgressCheckin() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); isenabled = cmn.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower(); if (isenabled.Equals("true")) { points = cmn.GetPoints(GlobalVariables.clientname); } cmn.ClickProgressCheckinMenu(); Page_ManagingStressProgressCheckIn mspc = new Page_ManagingStressProgressCheckIn(softassertions); is_soft_assert = true; mspc.CompleteProgressCheckIn(); softassertions.AssertAll(); }
public void TC_VerifyNewMemberJourney() { journeyEnabled = cmn.GetConfig("JourneyEnabled").ElementAt(0)[1].ToLower(); if (journeyEnabled.Equals("false")) { Assert.Ignore("Journeys not available for the client"); } //Login Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); //Verify Recommendations displayed Page_Dashboard dashbrd = new Page_Dashboard(); Assert.IsTrue(dashbrd.JourneySectionDisplayed(), "Recommendation section missing"); // Navigate to My Journey page Common navigate = new Common(); navigate.GoToMyJourney(); //Verify Recommendations Page_MyJourney journey = new Page_MyJourney(softassertions); List <string[]> journeydata = CSVReaderDataTable.GetCSVData("JourneyContent", pageName, "newmember_journey"); journey.VerifyNewMemberJourney(journeydata); is_soft_assert = true; softassertions.AssertAll(); //Logout Common logout = new Common(); logout.LogOut(); }
public void TC_VerifyNutritionTracker() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common trackermenu = new Common(); trackermenu.ClickTrackerMenu(); Page_NutritionTracker nt = new Page_NutritionTracker(softassertions); nt.GoToNutritionTracker(); nt.VerifyNutritionTracker(); is_soft_assert = true; softassertions.AssertAll(); //Common logout = new Common(); //logout.LogOut(); }
public void TC_VerifyPhysActTracker() { //To call the Page Login Method Page_Login plogin = new Page_Login(); plogin.Login(); Page_HAPrompt haprompt = new Page_HAPrompt(); haprompt.GoToDashboard(); Common trackermenu = new Common(); trackermenu.ClickTrackerMenu(); Page_PhysActivityTracker pa = new Page_PhysActivityTracker(softassertions); pa.GoToPhysicalTracker(); pa.VerifyPhysicalActivityTracker(); is_soft_assert = true; softassertions.AssertAll(); //Common logout = new Common(); //logout.LogOut(); }