Beispiel #1
0
        public void testPurchase_BE()
        {
            homePage.openBEHomePage();
            homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_BE();
            homePage.browseToCategoryOnTopMenu("du_On the Road");

            categoryPage.clickOnSubCategory("du_Automotive");

            productListPage.clickProductLink("Draagtas");

            productPage.clickAddToCartButton();

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

            signInPage.verifyCorrectPageIsDisplayed_BE();
            signInPage.clickCreateNewAccountLink();

            createAccountPage.verifyCorrectPageIsDisplayed_BE();
            createAccountPage.addCustomerInfo_BE();

            createAddressPage.verifyCorrectPageIsDisplayed_BE(true);
            createAddressPage.addAddress_BE();

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

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

            receiptPage.verifyCorrectPageIsDisplayed();
            receiptPage.verifyOrderNumberExists();
        }
        public void testRegisterUser_BE()
        {
            homePage.openBEHomePage();
            homePage.deleteCookies();
            homePage.verifyCorrectPageIsDisplayed_BE();
            customer.setUserName("test_" + System.DateTime.Now.TimeOfDay.TotalMinutes);
            header.clickOnMyAccountLink_BE();

            signInPage.verifyCorrectPageIsDisplayed_BE();
            signInPage.clickCreateNewAccountLink();

            createAccountPage.verifyCorrectPageIsDisplayed_BE();
            createAccountPage.addCustomerInfo_BE();

            manageAccountPage.verifyCorrectPageIsDisplayed_BE();
            manageAccountPage.clickAddAddressBtn_BE();

            createAddressPage.verifyCorrectPageIsDisplayed_BE(false);
            createAddressPage.addAddress_BE();

            manageAccountPage.verifyMyAddressBook(customer.getAddressList());
        }