コード例 #1
0
        public void testPurchase_Digital()
        {
            homePage.openDigitalHomePage();
            homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            homePage.browseToCategoryOnTopMenu("Maps");

            categoryPage.clickOnSubCategory("On the Road Maps");

            productListPage.clickProductLink("Trip and Waypoint Manager");

            productPage.clickAddToCartButton();

            cartPage.verifyCorrectPageIsDisplayed();
            cartPage.clickCheckoutButton();

            signInPage.verifyCorrectPageIsDisplayed_US_UK();
            signInPage.clickCreateNewAccountLink();

            createAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            createAccountPage.addCustomerInfo_US();

            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(true);
            createAddressPage.addAddress_US();

            billingAddressPage.verifyCorrectPageIsDisplayed();
            billingAddressPage.chooseFirstAddress();
            billingAddressPage.clickContinueButton();

            billingAndReviewPage.verifyCorrectPageIsDisplayed();
            billingAndReviewPage.submitOrder();

            receiptPage.verifyCorrectPageIsDisplayed();
            receiptPage.verifyOrderNumberExists();
        }
コード例 #2
0
        public void testBrowseStore_Digital()
        {
            homePage.openDigitalHomePage();
            homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            homePage.browseToCategoryOnTopMenu("On the Road");
            string[] subCategories_onTheRoad = { "Motorcycles", "Automotive", "Trucking" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad);

            homePage.browseToCategoryOnTopMenu("On the Go");
            string[] subCategories_onTheGo = { "Track & Locate", "Apps", "Phones" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheGo);

            homePage.browseToCategoryOnTopMenu("On the Trail");
            string[] subCategories_onTheTrail = { "Basic Handhelds", "Mapping Handhelds", "Two Way Radio", "Dog Tracking" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheTrail);

            homePage.browseToCategoryOnTopMenu("Into Sport");
            string[] subCategories_intoSport = { "Running", "Cycling", "Golfing" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_intoSport);

            homePage.browseToCategoryOnTopMenu("On the Road");
            categoryPage.clickOnSubCategory("Automotive");
            productListPage.verifyCorrectPageIsDisplayed();
            // productListPage.verifyShopByPriceFilter1("< $100");
            // productListPage.verifyShopByBrandFilter1("Nuvi");
            productListPage.verifyShopByBrandFilter2("Prestige Series");
            productListPage.verifyShopByBrandFilter3("Essential Series");
            productListPage.verifyShopByBrandFilter4("Zumo");
            productListPage.verifyShopByBrandFilter5("Advanced Series");
            productListPage.verifyCurrency_US();
            productListPage.clickProductLink("Approach® S1");
            productPage.verifyCorrectPageIsDisplayed();
            productPage.verifyCurrency_US();
        }
コード例 #3
0
        public void testRegisterUser_US()
        {
            homePage.openUSHomePage();
            //homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            header.clickOnMyAccountLink_US_UK();

            signInPage.verifyCorrectPageIsDisplayed_US_UK();
            signInPage.clickCreateNewAccountLink();

            createAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            createAccountPage.addCustomerInfo_US();

            manageAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            manageAccountPage.clickAddAddressBtn_US_UK();

            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false);
            createAddressPage.checkPreferredBillingAddressBox();
            createAddressPage.addAddress_US();

            manageAccountPage.verifyMyAddressBook(customer.getAddressList());
            selenium.UnderlyingWebDriver.FindElement(By.PartialLinkText("Account")).Click();
            manageAccountPage.clickAddAddressBtn_US_UK();
            createAddressPage = new CreateAddressPage(customer, selenium, this);
            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false);
            createAddressPage.enterCity("LA");
            createAddressPage.addAddress_US();

            manageAccountPage.verifyMyAddressBook(customer.getAddressList());
        }
コード例 #4
0
        public void testPurchase_US()
        {
            customer             = new Customer();
            homePage             = new HomePage(selenium, this);
            categoryPage         = new CategoryPage(selenium, this);
            productListPage      = new ProductListPage(selenium, this);
            productPage          = new ProductPage(selenium, this);
            cartPage             = new CartPage(selenium, this);
            signInPage           = new SignInPage(selenium, this);
            createAccountPage    = new CreateAccountPage(selenium, this);
            createAddressPage    = new CreateAddressPage(customer, selenium, this);
            deliveryOptionsPage  = new DeliveryOptionsPage(selenium, this);
            billingAndReviewPage = new BillingAndReviewPage(selenium, this);
            receiptPage          = new ReceiptPage(selenium, this);
            billingAddressPage   = new BillingAddressPage(selenium, this);

            homePage.openUSHomePage();
            homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            homePage.browseToCategoryOnTopMenu("On the Road");

            categoryPage.clickOnSubCategory("Motorcycles");

            productListPage.clickProductLink("220");

            productPage.selectProductSku("zumo 220, North America");
            productPage.clickAddToCartButton();

            cartPage.verifyCorrectPageIsDisplayed();
            cartPage.clickCheckoutButton();

            signInPage.verifyCorrectPageIsDisplayed_US_UK();
            signInPage.clickCreateNewAccountLink();

            createAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            createAccountPage.addCustomerInfo_US();

            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(true);
            createAddressPage.addAddress_US();

            deliveryOptionsPage.verifyCorrectPageIsDisplayed();
            deliveryOptionsPage.clickContinueButton();

            billingAndReviewPage.verifyCorrectPageIsDisplayed();
            billingAndReviewPage.submitOrder();

            receiptPage.verifyCorrectPageIsDisplayed();
            receiptPage.verifyOrderNumberExists();
        }
コード例 #5
0
        public void testSingleSignOn_AddAddress()
        {
            homePage.openUKHomePage();
            //homePage.deleteCookies();
            homePage.openUSHomePage();
            //homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            header.clickOnMyAccountLink_US_UK();
            signInPage.verifyCorrectPageIsDisplayed_US_UK();
            signInPage.clickCreateNewAccountLink();
            createAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            createAccountPage.addCustomerInfo_US();
            manageAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            manageAccountPage.clickAddAddressBtn_US_UK();
            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false);
            createAddressPage.checkPreferredBillingAddressBox();
            createAddressPage.addAddress_US();

            String userName = customer.getUserName();

            homePage.openUKHomePage();
            createAccountPage.setCustomerInfo_UK();
            header.clickOnUserNameLink_US_UK(userName);
            manageAccountPage.clickAddAddressBtn_US_UK();
            createAddressPage = new CreateAddressPage(customer, selenium, this);
            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(false);
            createAddressPage.addAddress_UK();
            homePage.openBEHomePage();
            homePage.verifyCorrectPageIsDisplayed_BE();
            createAccountPage.setCustomerInfo_BE();
            header.clickOnUserNameLink_BE(userName);
            manageAccountPage.clickAddAddressBtn_BE();
            createAddressPage = new CreateAddressPage(customer, selenium, this);
            createAddressPage.verifyCorrectPageIsDisplayed_BE(false);
            createAddressPage.addAddress_BE();
        }
コード例 #6
0
        public void testBrowseStore_US()
        {
            homePage = new HomePage(selenium, this);
            categoryPage = new CategoryPage(selenium, this);
            productListPage = new ProductListPage(selenium, this);
            productPage = new ProductPage(selenium, this);

            homePage.openUSHomePage();
            //homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            homePage.browseToCategoryOnTopMenu("On the Road");
            string[] subCategories_onTheRoad = { "Motorcycles", "Automotive", "Trucking" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad);

            homePage.browseToCategoryOnTopMenu("On the Go");
            string[] subCategories_onTheGo = { "Track & Locate", "Apps", "Phones" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheGo);

            homePage.browseToCategoryOnTopMenu("On the Trail");
            string[] subCategories_onTheTrail = { "Basic Handhelds", "Mapping Handhelds", "Two Way Radio", "Dog Tracking" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheTrail);

            homePage.browseToCategoryOnTopMenu("Into Sport");
            string[] subCategories_intoSport = { "Running", "Cycling", "Golfing" };
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_intoSport);

            homePage.browseToCategoryOnTopMenu("On the Road");
            categoryPage.verifyCorrectPageIsDisplayed(subCategories_onTheRoad);
            categoryPage.clickOnSubCategory("Motorcycles");
            productListPage.verifyCorrectPageIsDisplayed();
            //productListPage.verifyShopByPriceFilter1("> $300");
            //productListPage.verifyShopByBrandFilter1("Prestige Series");
            productListPage.verifyCurrency_US();
            productListPage.clickProductLink("220");

            productPage.verifyCorrectPageIsDisplayed();
            productPage.selectProductSku("zumo 220, North America");
            productPage.verifyCurrency_US();

            homePage.browseToCategoryOnTopMenu("On the Road");
            categoryPage.clickOnSubCategory("Automotive");
            //productListPage.verifyShopByPriceFilter1("< $100");
            //productListPage.verifyShopByPriceFilter2("$100 - 200");
            //productListPage.verifyShopByBrandFilter1("Nuvi");
            productListPage.verifyShopByBrandFilter2("Prestige Series");
            productListPage.verifyShopByBrandFilter3("Essential Series");
            productListPage.verifyShopByBrandFilter4("Zumo");
            productListPage.verifyShopByBrandFilter5("Advanced Series");
        }
コード例 #7
0
        public void testPurchase_US()
        {
            customer = new Customer();
            homePage = new HomePage(selenium, this);
            categoryPage = new CategoryPage(selenium, this);
            productListPage = new ProductListPage(selenium, this);
            productPage = new ProductPage(selenium, this);
            cartPage = new CartPage(selenium, this);
            signInPage = new SignInPage(selenium, this);
            createAccountPage = new CreateAccountPage(selenium, this);
            createAddressPage = new CreateAddressPage(customer, selenium, this);
            deliveryOptionsPage = new DeliveryOptionsPage(selenium, this);
            billingAndReviewPage = new BillingAndReviewPage(selenium, this);
            receiptPage = new ReceiptPage(selenium, this);
            billingAddressPage = new BillingAddressPage(selenium, this);

            homePage.openUSHomePage();
            homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_US();
            homePage.browseToCategoryOnTopMenu("On the Road");

            categoryPage.clickOnSubCategory("Motorcycles");

            productListPage.clickProductLink("220");

            productPage.selectProductSku("zumo 220, North America");
            productPage.clickAddToCartButton();

            cartPage.verifyCorrectPageIsDisplayed();
            cartPage.clickCheckoutButton();

            signInPage.verifyCorrectPageIsDisplayed_US_UK();
            signInPage.clickCreateNewAccountLink();

            createAccountPage.verifyCorrectPageIsDisplayed_US_UK();
            createAccountPage.addCustomerInfo_US();

            createAddressPage.verifyCorrectPageIsDisplayed_US_UK(true);
            createAddressPage.addAddress_US();

            deliveryOptionsPage.verifyCorrectPageIsDisplayed();
            deliveryOptionsPage.clickContinueButton();

            billingAndReviewPage.verifyCorrectPageIsDisplayed();
            billingAndReviewPage.submitOrder();

            receiptPage.verifyCorrectPageIsDisplayed();
            receiptPage.verifyOrderNumberExists();
        }