示例#1
0
        public void TC_MobileLogout()
        {
            // Skip Intro
            Page_ISkipIntro skipIntro = new Page_ISkipIntro();

            skipIntro.ClickSkipIntro();

            // Perform Login
            Page_ILogin plogin = new Page_ILogin();

            plogin.moblogin();

            // Close all Overlays (Popups)
            Page_IDashboard dashboard = new Page_IDashboard();

            dashboard.CloseAllDashboardOverlays();

            // Navigate to Settings
            Common settings = new Common();

            settings.TapSettingsIcon();

            // Logout
            Page_ISettings logout = new Page_ISettings();

            logout.ClickLogout();

            // Verify Successful Logout
            Page_ILogin loginpage = new Page_ILogin();

            Assert.IsTrue(loginpage.AtLoginPage(), "Not navigated to Login Page");
        }
示例#2
0
        public void TC_VerifyBPTrackerUIElements()
        {
            // Skip Intro
            Page_ISkipIntro skipIntro = new Page_ISkipIntro();

            skipIntro.ClickSkipIntro();

            // Perform Login
            Page_ILogin plogin = new Page_ILogin();

            plogin.moblogin();

            // Close all Overlays (Popups)
            Page_IDashboard dashboard = new Page_IDashboard();

            dashboard.CloseAllDashboardOverlays();

            //Navigate to Tracker Home Page
            Page_IProfile trcker = new Page_IProfile();

            trcker.NavigateToTrackerHomePage();

            //Navigate to Weight Tracker
            CommonTrackers ct = new CommonTrackers(softassertions);

            ct.NavigateToTracker("Blood Pressure");

            //Validate Page UI Elements
            List <string[]> uielements = CSVReaderDataTable.GetCSVData("MobileTrackerData", pageName, "uielements");

            ct.ValidatePageUI(uielements, "Page_MBPTracker");
            softassertions.AssertAll();
        }
        public void TC_VerifyLogin()
        {
            //Page_SkipIntro skipIntro = new Page_SkipIntro();
            //skipIntro.ClickSkipIntro();

            //To call the Page Login Method
            Page_ILogin plogin = new Page_ILogin();

            plogin.moblogin();

            //Verify User is at dashboard
            Page_IDashboard Dashboard = new Page_IDashboard();

            Assert.IsTrue(Dashboard.AtDashboard(), "Not at dashboard");

            // Close all Overlays (Popups)
            Page_IDashboard dashboard = new Page_IDashboard();

            dashboard.CloseAllDashboardOverlays();

            // Navigate to Settings
            Common settings = new Common();

            settings.TapSettingsIcon();

            // Logout
            Page_ISettings logout = new Page_ISettings();

            logout.ClickLogout();
        }
        //[Category("Regression")]
        public void TC_FillNormalHA()
        {
            // Skip Intro
            Page_ISkipIntro skipIntro = new Page_ISkipIntro();

            skipIntro.ClickSkipIntro();

            // Perform Login
            Page_ILogin plogin = new Page_ILogin();

            plogin.moblogin();

            // Close all Overlays (Popups)
            Page_IDashboard dashboard = new Page_IDashboard();

            dashboard.CloseAllDashboardOverlays();

            ha = new Page_IHA(softassertions);
            ha.setInputFileName("NormalHAData");

            is_soft_assert = true;
            ha.FillHA();
        }