コード例 #1
0
  @Test(dependsOnMethods = "checkSurchargeTest")
  public void changeProductOrderDataTest() {
    PartnersPages.priceManagementTab().clickOrderInformationTab();
    PartnersPages.orderInformationTab().clickProductInShoppingCart(productData.getProductName());
    PartnersPages.scheduleAdvancedTab().waitForProductPageLoad(productData.getProductUniqueId());

    productData.setProductSize("10 columns");
    productData.setProductSizeHeight("80");

    Actions.advancedBookingActions().setProductData(productData);
    PartnersPages.orderInformationTab().clickSaveOrderButton();
  }
コード例 #2
0
  @Test(dependsOnMethods = "addProductToOrder")
  public void checkSurchargeTest() {
    PartnersPages.orderInformationTab().clickPriceManagmentTab();
    PartnersPages.priceManagementTab().waitPageToLoad();

    Assert.assertEquals(
        PartnersPages.priceManagementTab()
            .getAppliedSurchargeAmount("In color", productData.getProductName()),
        "100 In amount CHF 100.00",
        "Incorrect surcharge amount");
  }
コード例 #3
0
  @Test(dependsOnMethods = "changeProductOrderDataTest")
  public void testCheckUpdatedSurchargeTest() {
    PartnersPages.orderInformationTab().clickPriceManagmentTab();
    PartnersPages.priceManagementTab().waitPageToLoad();

    Assert.assertEquals(
        "200 In amount CHF 200.00",
        PartnersPages.priceManagementTab()
            .getAppliedSurchargeAmount("In color", productData.getProductName()),
        "Incorrect surcharge amount");
  }
コード例 #4
0
  @Test(dependsOnMethods = "selectCustomerTest")
  public void addProductToOrder() {
    productData = new ProductData();
    productData.setProductName("Il Mattino della Domenica");
    productData.setProductUniqueId("24206");
    productData.setProductAdType("Ads");
    productData.setProductHeading("Recommendations");
    productData.setProductSubHeading("Base");
    productData.setProductColor("B/W + 3 colors");
    productData.setProductPrescriptionSize("Full material");
    productData.setProductSize("2 columns");
    productData.setProductSizeHeight("50");
    productData.setProductDatesCount(1);
    productData.setProductContentType("07 Without digital transmission");
    productData.setProductContentDescription("Description");

    Actions.advancedBookingActions().addProductToShoppingCart(productData);
    PartnersPages.orderInformationTab().clickSaveOrderButton();
  }