Exemple #1
0
 public void UpdateFirstName()
 {
     app.Screenshot("App Started");
     app.EnterText(x => x.Class("EntryEditText"), "UseLocalDataSource");
     app.Screenshot("Entered data parition phrase");
     app.Tap(x => x.Text("Continue"));
     Thread.Sleep(10000);             // wait 10 seconds to let list and all images load
     app.Screenshot("Display list");
     app.ScrollDownTo("Green, Monica", swipePercentage: 0.5, swipeSpeed: 200);
     app.Screenshot("Scrolled to Monica Green");
     app.Tap(x => x.Text("Green, Monica"));
     Thread.Sleep(3000);             // wait 3 seconds to give map time to fully render
     app.Screenshot("Detail screen");
     app.Tap(x => x.Marked("Edit"));
     app.Screenshot("Edit screen");
     app.ScrollDownTo("First");
     app.Tap(x => x.Text("Monica"));
     app.ClearText();
     app.Screenshot("Cleared first name field");
     app.EnterText("Erica");
     app.DismissKeyboard();
     app.Screenshot("Altered value of company name field");
     app.Tap(x => x.Marked("Save"));
     Thread.Sleep(3000);             // wait 3 seconds to give map time to fully render
     app.Screenshot("Saved changes, navigated to detail screen, first name updated");
     app.Tap(x => x.Class("ImageButton"));
     app.ScrollDownTo("Green, Erica");
     app.Screenshot("First name updated on list screen, first name updated");
 }
Exemple #2
0
 public void UpdateFirstName()
 {
     app.WaitForElement(x => x.Marked("Armstead, Evan"), "timed out waiting for list to load", new TimeSpan(0, 0, 10));                // wait for the list to appear
     app.Screenshot("App start, display list");
     app.ScrollDownTo("Green, Monica");
     app.Screenshot("Scrolled to Monica Green");
     app.Tap(x => x.Text("Green, Monica"));
     app.WaitForElement(x => x.Marked("Zoom out")); // wait for the map to appear
     Thread.Sleep(2000);                            // wait 2 seconds to give map time to fully render
     app.Screenshot("Detail screen");
     app.Tap(x => x.Marked("Edit"));
     app.Screenshot("Edit screen");
     app.ScrollDownTo("First");
     app.Tap(x => x.Text("Monica"));
     app.ClearText();
     app.Screenshot("Cleared first name field");
     app.EnterText("Erica");
     app.DismissKeyboard();
     app.Screenshot("Altered value of company name field");
     app.Tap(x => x.Marked("Save"));
     app.WaitForElement(x => x.Marked("Zoom out")); // wait for the map to appear
     Thread.Sleep(2000);                            // wait 2 seconds to give map time to fully render
     app.Screenshot("Saved changes, navigated to detail screen, first name updated");
     app.Tap(x => x.Class("ImageButton"));
     app.ScrollDownTo("Green, Erica");
     app.Screenshot("First name updated on list screen, first name updated");
 }
Exemple #3
0
 public void UpdateFirstName()
 {
     app.Screenshot("App Started");
     app.Tap(x => x.Id("setupDataPartitionPhraseField"));
     app.EnterText("UseLocalDataSource");
     app.Screenshot("Entered data parition phrase");
     app.Tap(x => x.Id("setupContinueButton"));
     app.WaitForElement(x => x.Marked("Armstead, Evan"));
     Thread.Sleep(3000);             // wait a few seconds for list images to fully load
     app.Screenshot("Display list");
     app.Tap(x => x.Marked("Armstead, Evan"));
     Thread.Sleep(3000);             // wait 3 seconds to give map time to fully render
     app.Screenshot("Detail screen");
     app.Tap(x => x.Id("acquaintanceEditButton"));
     app.Screenshot("Edit screen");
     app.ScrollDownTo("First");
     app.Tap(x => x.Id("firstNameField"));
     app.ClearText();
     app.Screenshot("Cleared first name field");
     app.EnterText("Jonathan");
     app.DismissKeyboard();
     app.Screenshot("Altered value of first name field");
     app.Tap(x => x.Id("acquaintanceSaveButton"));
     Thread.Sleep(3000);             // wait 3 seconds to give map time to fully render
     app.Screenshot("Saved changes, navigated to detail screen, first name updated");
     app.Tap(x => x.Marked("Navigate up"));
     app.Screenshot("First name updated on list screen");
 }
Exemple #4
0
 public void UpdateFirstName()
 {
     app.WaitForElement(x => x.Id("nameTextView"));             // wait for the list to appear
     app.Screenshot("App start, display list");
     app.ScrollDownTo("Green, Monica", withinMarked: "acquaintanceRecyclerView");
     app.Screenshot("Scrolled to Monica Green");
     app.Tap(x => x.Marked("Green, Monica"));
     Thread.Sleep(2000);             // wait 2 seconds to give map time to fully render
     app.Screenshot("Detail screen");
     app.Tap(x => x.Id("acquaintanceEditButton"));
     app.Screenshot("Edit screen");
     app.ScrollDownTo("First");
     app.Tap(x => x.Id("firstNameField"));
     app.ClearText();
     app.Screenshot("Cleared first name field");
     app.EnterText("Erica");
     app.DismissKeyboard();
     app.Screenshot("Altered value of company name field");
     app.Tap(x => x.Id("acquaintanceSaveButton"));
     Thread.Sleep(2000);              // wait 2 seconds to give map time to fully render
     app.Screenshot("Saved changes, navigated to detail screen, first name updated");
     app.Tap(x => x.Marked("Navigate up"));
     app.ScrollDownTo("Green, Erica");
     app.Screenshot("First name updated on list screen, first name updated");
 }
Exemple #5
0
 public void App_error_login()
 {
     app.Screenshot("First screen.");
     app.EnterText("et_login", "Altamir");
     app.EnterText("et_pass", "123456");
     app.DismissKeyboard();
     app.Tap("bt_logar");
     app.WaitForElement(c =>
                        c.Text("Login ou senha incorreto!"),
                        "Wait msg error ",
                        TimeSpan.FromSeconds(10));
     app.Screenshot("Error login");
 }
Exemple #6
0
        public void b_ProfileUpdate()
        {
            Thread.Sleep(15000);
            app.Tap(x => x.Id("action_hamburger"));
            Thread.Sleep(10000);
            //app.Tap("Pampers Account");

            /*var ispamper = app.Query("Pampers Account").Any();
             *
             * var ispamper = app.Query("Pampers Account").Any();
             * if (ispamper == true)
             *  app.Tap("Pampers Account");
             * else
             *  app.Tap("Pampers account");
             */

            //app.Qnuery(c => c.Marked("Pampers Account").Parent().Class("AlertDialogLayout"));
            app.Tap("My Baby");
            app.Tap("Edit");
            app.Tap("Child's First Name");
            //app.Query(c => c.Marked("Male").Parent().Class("AlertDialogLayout"));
            //app.Tap("First Name");
            app.EnterText("Baby Name");
            app.Tap("My baby's birthday");
            //app.Tap("Khan");
            //app.Tap("Birthday");
            app.Query(c => c.Marked("OK").Parent().Class("AlertDialogLayout"));
            app.Tap("OK");
            app.DismissKeyboard();
            app.Tap("Save");
        }
Exemple #7
0
        public void AppLaunches()
        {
            //Carousel Swipe
            app.SwipeRightToLeft();
            app.WaitForElement(x => x.Id("NoResourceEntry-1"));
            app.SwipeRightToLeft();
            app.WaitForElement(x => x.Id("NoResourceEntry-2"));
            app.SwipeRightToLeft();
            app.WaitForElement(x => x.Id("NoResourceEntry-3"));
            app.SwipeRightToLeft();
            app.Screenshot("LoginPage");

            //Login Credentials
            app.WaitForElement(x => x.Marked("Email address"));
            app.Tap(x => x.Index(48));
            app.EnterText("*****@*****.**");
            app.DismissKeyboard();
            app.Tap(x => x.Button("btnContinue"));
            app.WaitForElement(x => x.Marked("PIN"));
            app.EnterText("6804");
            app.DismissKeyboard();
            app.Tap(x => x.Button("btnContinue"));
            app.Screenshot("Logging in with my credentials");

            //End of Introduction
            app.WaitForElement(x => x.Marked("NEXT"));
            app.Flash(x => x.Marked("NEXT"));
            app.Tap(x => x.Marked("NEXT"));
            app.Tap(x => x.Marked("NEXT"));
            app.Tap(x => x.Marked("NEXT"));
            app.Tap(x => x.Marked("OK, GOT IT"));
            app.Screenshot("End of Introduction");
            app.Back();

            //Hollenbeck Home
            app.Flash(x => x.Marked("Hollenbeck Home"));
            app.Tap(x => x.Marked("Hollenbeck Home"));
            app.WaitForElement(x => x.Marked("SCHEDULE A TOUR"));
            app.ScrollDownTo(x => x.Marked("MORE"));
            app.Tap(x => x.Marked("Prices (starting at)"));
            Thread.Sleep(TimeSpan.FromSeconds(3));
            app.Screenshot("Hollenbeck Home Info");
            app.Back();

            app.Repl();
        }
 public void ProfileUpdate()
 {
     app.Tap(x => x.Id("action_hamburger"));
     app.Tap("Pampers Account");
     app.Tap("My Details");
     app.Tap("Edit");
     app.Tap("Gender");
     app.Tap("Male");
     app.Tap("Last Name");
     app.EnterText("Smith");
     app.DismissKeyboard();
     app.Tap("Birthday");
     app.Tap(x => x.Id("date_picker_header_year"));
     app.Tap("1995");
     app.Tap("OK");
     app.Tap(x => x.Id("saveButton"));
     Thread.Sleep(10000);
     app.Flash(x => x.Id("changePasswordButton"));
     app.Tap(x => x.Id("imgBack"));
     //  app.Tap(x => x.Id("imgBack")); // uncomment when new build
 }
        public void ForgotPWD_InvalidEmailInSystem()
        {
            app.Tap(x => x.Id("cc_forgot_password"));
            app.Screenshot("Tapped on view with class: AppCompatTextView with id: cc_forgot_password with text: Passwort vergessen?");
            app.Tap(x => x.Id("rp_email"));
            app.Screenshot("Tapped on view with class: EditTextValidating with id: rp_email");
            app.EnterText(x => x.Id("rp_email"), "*****@*****.**");
            app.DismissKeyboard();
            app.Tap(x => x.Id("rp_new_password"));
            app.Screenshot("Tapped on view with class: EditTextValidating with id: rp_new_password");
            app.EnterText(x => x.Id("rp_new_password"), "qwer1234");
            app.DismissKeyboard();
            app.Tap(x => x.Id("rp_button"));
            app.Screenshot("Tapped on view with class: AppCompatButton with id: rp_button with text: Passwort ändern");
            app.Tap(x => x.Id("message"));
            app.Screenshot("Tapped on view with class: AppCompatTextView with id: message with text: Die Kombination aus E-Mail-Adresse und Passwort ist ungültig. Bitte prüfen Sie die Daten.\n[SIC003]");
            var invalidEmail = app.Query("message").Any();

            Assert.IsTrue(invalidEmail);
        }
Exemple #10
0
        public void TamperedEnabled_CappuccinoTest()
        {
            app.Tap(x => x.Marked("DrinkType"));
            app.Screenshot("Tapped Drink Type");

            app.Tap(x => x.Marked("Cappuccino"));
            app.Screenshot("Tapped on Cappuccino");

            app.DismissKeyboard();

            app.Screenshot("Dismissed Keyboard");
            var result = app.Query("Tamered").First();

            Assert.IsTrue(result.Enabled, "Tampered is enabled");
        }
Exemple #11
0
        public void VerifyMobileSearch()
        {
            do
            {
                app.Tap("nextView");
            }while (app.Query(x => x.Marked("nextView").Invoke("getText"))[0].ToString() != "Перейти в каталог");
            app.Tap("nextView");
            app.Tap("Электроника");
            app.Tap("Мобильные телефоны");
            app.Tap("Поиск");
            app.EnterText(c => c.Id("search_src_text"), "motorola nexus 6 32gb");
            app.DismissKeyboard();
            app.WaitForElement(x => x.Marked("text_name").Text("Motorola Nexus 6 (32GB)"));
            string result = app.Query(x => x.Marked("text_name").Invoke("getText"))[0].ToString();

            Assert.AreEqual("Motorola Nexus 6 (32GB)", result);
        }
Exemple #12
0
 public SearchResultsPage Search(string searchQuery)
 {
     app.EnterText(c => c.Id("menu_search"), searchQuery);
     app.DismissKeyboard();
     return(new SearchResultsPage(app));
 }
Exemple #13
0
 void EnterTextOnActivityTwo(string text)
 {
     app.WaitForElement(c => c.Marked("editText2"));
     app.EnterText(c => c.TextField("editText2"), text);
     app.DismissKeyboard();
 }