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");
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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");
        }
Exemple #5
0
        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();
        }
Exemple #6
0
        //[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();
        }