Пример #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_VerifySkipIntro()
        {
            Page_ISkipIntro skipIntro = new Page_ISkipIntro(softassertions);

            skipIntro.VerifyElements();

            is_soft_assert = false;
            softassertions.AssertAll();

            skipIntro.ClickSkipIntro();

            Page_ILogin loginpage = new Page_ILogin();

            Assert.IsTrue(loginpage.AtLoginPage(), "Not navigated to Login Page");
        }
        //[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();
        }