public void TC_CompleteWeightGoal() { // Skip Intro Page_SkipIntro skipIntro = new Page_SkipIntro(); skipIntro.ClickSkipIntro(); // Perform Login Page_MLogin plogin = new Page_MLogin(); plogin.moblogin(); // Close all Overlays (Popups) Page_MDashboard dashboard = new Page_MDashboard(); dashboard.CloseAllDashboardOverlays(); //Navigate to Tracker Home Page Page_MProfile trcker = new Page_MProfile(); trcker.NavigateToTrackerHomePage(); //Navigate to Weight Tracker CommonTrackers ct = new CommonTrackers(softassertions); ct.NavigateToTracker("Weight"); }
public void TC_VerifyLogin() { //Page_SkipIntro skipIntro = new Page_SkipIntro(); //skipIntro.ClickSkipIntro(); //To call the Page Login Method Page_MLogin plogin = new Page_MLogin(); plogin.moblogin(); //Verify User is at dashboard Page_MDashboard Dashboard = new Page_MDashboard(); Assert.IsTrue(Dashboard.AtDashboard(), "Not at dashboard"); // Close all Overlays (Popups) Page_MDashboard dashboard = new Page_MDashboard(); dashboard.CloseAllDashboardOverlays(); // Navigate to Settings Common settings = new Common(); settings.TapSettingsIcon(); // Logout Page_MSettings logout = new Page_MSettings(); logout.ClickLogout(); }
public void TC_VerifyWeightTrackerUIElements() { // Skip Intro Page_SkipIntro skipIntro = new Page_SkipIntro(); skipIntro.ClickSkipIntro(); // Perform Login Page_MLogin plogin = new Page_MLogin(); plogin.moblogin(); // Close all Overlays (Popups) Page_MDashboard dashboard = new Page_MDashboard(); dashboard.CloseAllDashboardOverlays(); //Navigate to Tracker Home Page Page_MProfile trcker = new Page_MProfile(); trcker.NavigateToTrackerHomePage(); //Navigate to Weight Tracker CommonTrackers ct = new CommonTrackers(softassertions); ct.NavigateToTracker("Weight"); //Validate Page UI Elements List <string[]> uielements = CSVReaderDataTable.GetCSVData("MobileTrackerData", pageName, "uielements"); ct.ValidatePageUI(uielements, "Page_MWeightTracker"); softassertions.AssertAll(); }
public void TC_MobileLogout() { // Skip Intro Page_SkipIntro skipIntro = new Page_SkipIntro(); skipIntro.ClickSkipIntro(); // Perform Login Page_MLogin plogin = new Page_MLogin(); plogin.moblogin(); // Close all Overlays (Popups) Page_MDashboard dashboard = new Page_MDashboard(); dashboard.CloseAllDashboardOverlays(); // Navigate to Settings Common settings = new Common(); settings.TapSettingsIcon(); // Logout Page_MSettings logout = new Page_MSettings(); logout.ClickLogout(); // Verify Successful Logout Page_MLogin loginpage = new Page_MLogin(); Assert.IsTrue(loginpage.AtLoginPage(), "Not navigated to Login Page"); }
public void TC_DashboardHeader() { List <string[]> dashboardui = new List <string[]>(); dashboardui = CSVReaderDataTable.GetCSVData("MobileDashboardData", pageName, "headerelements"); Page_MDashboard headerUi = new Page_MDashboard(softassertions); headerUi.VerifyDashboardHeader(dashboardui); softassertions.AssertAll(); }
public void TC_Login() { // Skip Intro Page_SkipIntro skipIntro = new Page_SkipIntro(); skipIntro.ClickSkipIntro(); // Perform Login Page_MLogin plogin = new Page_MLogin(); plogin.moblogin(); // Close all Overlays (Popups) Page_MDashboard dashboard = new Page_MDashboard(); dashboard.CloseAllDashboardOverlays(); }
public void TC_VerifyEStream() { List <string[]> clientconfig = CSVReaderDataTable.GetCSVData("ClientConfig", GlobalVariables.clientname.ToLower()); string isJourneyGroup = clientconfig.ElementAt(0)[3]; if (isJourneyGroup.ToLower().Equals("true")) { Page_MDashboard esection = new Page_MDashboard(softassertions); Assert.IsTrue(esection.VerifyEstrmSectionPresent(), "Engagement Stream not displayed"); } else { Assert.Ignore("Engagement Stream not available for client: " + GlobalVariables.clientname); } }
//[Category("Regression")] public void TC_FillNormalHA() { // Skip Intro Page_SkipIntro skipIntro = new Page_SkipIntro(); skipIntro.ClickSkipIntro(); // Perform Login Page_MLogin plogin = new Page_MLogin(); plogin.moblogin(); // Close all Overlays (Popups) Page_MDashboard dashboard = new Page_MDashboard(); dashboard.CloseAllDashboardOverlays(); ha = new Page_MHA(softassertions); ha.setInputFileName("NormalHAData"); is_soft_assert = true; ha.FillHA(); }