public void Verify_Stations_Option()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption("Stations");
                app.Screenshot("Hamburger Menu: Stations List").MoveTo($"C:\\Screenshots\\Stations_StationsList__{Guid.NewGuid()}.png");
                app.TapOption("search_button");
                app.EnterTextAndDismissKeyboard("search_src_text", SYSTEM_STATION);
                app.Assert(e => e.Id("text_name_station_list_item_template").Marked(SYSTEM_STATION), true);
                app.Tap(e => e.Text(SYSTEM_STATION));
                app.Screenshot("Stations: Station Details").MoveTo($"C:\\Screenshots\\Stations_StationDetails__{Guid.NewGuid()}.png");


                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(e => e.Id("cell_text_main_menu").Text(app.GetLabel("Stations")));
                app.EnterTextAndDismissKeyboard("search_station_list", SYSTEM_STATION);
                app.Assert(e => e.Id("cell_text_station_list").Marked(SYSTEM_STATION), true);
                break;
            }
        }
        public void Verify_Map_Option()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapHamburgerMenu();
                app.Assert(e => e.Id("design_menu_item_text"), true);
                app.Assert("mapview_map", true);
                app.TapOption("fab_gps_fixed_map");
                app.Screenshot("Hamburger Menu: Map Option").MoveTo($"C:\\Screenshots\\Maps_DashMap__{Guid.NewGuid()}.png");
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapHamburgerMenu();
                app.Assert("button_close_main_menu", true);
                app.TapOption(e => e.Id("cell_text_main_menu").Text(app.GetLabel("Map")));
                app.Assert("button_close_main_menu", false);
                app.Assert("mapview_map", true);
                break;
            }
        }
        public void Verify_Username_Reset_Password()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.TapProfile();
                app.WaitForElement(e => e.Text("Sign In"));
                app.Tap(e => e.Text("Forgot password?"));
                app.TapOption("edit_text_location_forgot_password");
                app.WaitForElement("content_location_list_item_template");
                app.GoTo(SYSTEM);
                app.EnterTextAndDismissKeyboard("edit_text_user_forgot_password", USERNAME);
                app.TapOption("button_reset_forgot_password");
                app.Screenshot("Account Recovery: Reset Password Confirmation Message").MoveTo($"C:\\Screenshots\\AccountRecovery_ResetPWConfirmation__{Guid.NewGuid()}.png");
                app.Assert(e => e.Id("alertTitle").Property("text").StartsWith(app.GetLabel("ResetPasswordConfirmation")), true);
                app.TapOption("button1");
                app.Assert(e => e.Text("Sign In"), true);
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapProfile();
                app.TapOption("bar_button_forgot_password_login");
                app.TapOption("button_select_location_forgot_password");
                app.WaitForElement("content_location_list", timeout: TimeSpan.FromSeconds(45));
                app.TapElementInList(SYSTEM);
                app.EnterTextAndDismissKeyboard("edit_text_username_forgot_password", USERNAME);
                app.TapOption("button_send_forgot_password");
                app.Assert(e => e.Property("text").StartsWith(app.GetLabel("ResetPasswordConfirmation")), true);
                break;
            }
        }
        public void Verify_Contact_Customer_Service()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.TapProfile();
                app.WaitForElement(e => e.Text("Sign In"));
                app.Tap(e => e.Marked("text_forgot_password_login"));
                app.Screenshot("Account Recovery: Reset Password Screen").MoveTo($"C:\\Screenshots\\AccountRecovery_ResetPasswordScreen__{Guid.NewGuid()}.png");
                app.TapOption("text_contact_customer_service_forgot_password");
                app.Assert(e => e.Marked("content_support_menu"), true);
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapProfile();
                app.TapOption("bar_button_forgot_password_login");
                app.TapOption("text_contact_customer_service_forgot_password");
                app.Assert("content_support", true);
                break;
            }
        }
        public void Verify_Hamburger_Menu_Options_Signed_In()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapProfile();
                app.Login(EMAIL_DASH, EMAIL_PASSWORD_DASH);
                app.TapHamburgerMenu();
                app.Screenshot("Hamburger Menu: Signed In").MoveTo($"C:\\Screenshots\\HamburgerMenu_SignedIn__{Guid.NewGuid()}.png");
                app.Assert("text_fullname_nav_header", true);

                //check if "Renew Membership" is displayed? and if not, then check for nav_header?
                app.Assert("text_user_plan_nav_header", true);
                app.Assert(e => e.Id("design_menu_item_text").Marked(app.GetLabel("Map")), true);
                app.Assert(e => e.Id("design_menu_item_text").Marked(app.GetLabel("Stations")), true);
                app.Assert(e => e.Id("design_menu_item_text").Marked(app.GetLabel("About")), true);
                app.Assert(e => e.Id("design_menu_item_text").Marked(app.GetLabel("AllLocations")), true);
                app.Assert(e => e.Id("design_menu_item_text").Marked(app.GetLabel("Support")), true);
                app.TapOption("fab_gps_fixed_map");
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapProfile();
                app.Login(EMAIL_DASH, EMAIL_PASSWORD_DASH);
                app.TapHamburgerMenu();
                app.Assert("button_fullname_main_menu", true);
                app.Assert("button_membership_main_menu", true);
                app.Assert(e => e.Id("cell_text_main_menu").Text(app.GetLabel("Map")), true);
                app.Assert(e => e.Id("cell_text_main_menu").Text(app.GetLabel("Stations")), true);
                app.Assert(e => e.Id("cell_text_main_menu").Text(app.GetLabel("About")), true);
                app.Assert(e => e.Id("cell_text_main_menu").Text(app.GetLabel("AllLocations")), true);
                app.Assert(e => e.Id("cell_text_main_menu").Text(app.GetLabel("Support")), true);
                break;
            }
        }
        public void Verify_Join_BCycle()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.TapProfile();
                app.WaitForElement(e => e.Text("Sign In"));
                app.Tap(e => e.Text("Join BCycle"));
                app.Assert(e => e.Marked("list_plans_membership_plan"), true);
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapProfile();
                app.TapOption("bar_button_join_bcycle_login");
                app.Assert("content_membership_plan", true);
                break;
            }
        }
예제 #7
0
        public void Verify_Report_Bike_Problem()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(app.GetLabel("About"));
                app.TapOption(e => e.Marked("Report a Bike Problem"));
                app.Screenshot("About: Report Bike Problem").MoveTo($"C:\\Screenshots\\AboutMenu_ReportBikeProblem__{Guid.NewGuid()}.png");
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(app.GetLabel("About"));
                app.Assert(app.GetLabel("ReportABikeProblem"), true);
                break;
            }
        }
예제 #8
0
        public void Verify_FAQ()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(e => e.Marked("About"));
                app.TapOption(e => e.Marked("FAQ"));
                app.Screenshot("About: FAQ Page").MoveTo($"C:\\Screenshots\\AboutMenu_FAQPage__{Guid.NewGuid()}.png");
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(app.GetLabel("About"));
                app.TapOption(app.GetLabel("Faq"));
                break;
            }
        }
예제 #9
0
        public void Verify_Terms_And_Conditions()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(app.GetLabel("About"));
                app.TapOption(e => e.Marked("text_terms_about_menu"));
                app.Screenshot("About: Terms & Conditions").MoveTo($"C:\\Screenshots\\AboutMenu_TermsConditions__{Guid.NewGuid()}.png");
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(app.GetLabel("About"));
                app.TapOption(app.GetLabel("EulaDescription"));
                break;
            }
        }
예제 #10
0
        public void Verify_Sponsors_And_Promotions()
        {
            switch (platform)
            {
            case Platform.Android:
                app = AppInitializer.RestartApp(platform);
                AppExtension.SetPlatform(platform);
                app.CheckLocation(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(e => e.Marked("About"));
                app.TapOption(e => e.Marked("Sponsors & Promotions"));
                app.Screenshot("About: Sponsors & Promotions").MoveTo($"C:\\Screenshots\\AboutMenu_SponsorsPromotions__{Guid.NewGuid()}.png");
                break;

            case Platform.iOS:
                app.SkipWalkthrough();
                app.GoTo(SYSTEM);
                app.TapHamburgerMenu();
                app.TapOption(app.GetLabel("About"));
                app.Assert(app.GetLabel("text_sponsors_about_menu"), true);
                app.TapOption(app.GetLabel("text_sponsors_about_menu"));
                break;
            }
        }