[issue-so] Updates test due to changes in product configuration
authorNono Carballo <nonofce@gmail.com>
Mon, 13 May 2019 11:41:18 -0400
changeset 8536 69e72b491ffa
parent 8535 55a8a646b087
child 8537 b16172e71255
[issue-so] Updates test due to changes in product configuration
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_09_IssueWithProductWithServiceRelatedUniqueQuantity.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_10_IssueWithProductWithServiceRelatedPerProduct.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_13_VerifyDeliveringUngroupedProductWithGroupedServiceRelatedPerProduct.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_14_VerifyDeliveringUngroupedProductWithGroupedServiceRelatedUniqueQuantity.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_15_VerifyDeliveringGroupedProductWithUngroupedServiceRelatedPerProduct.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DeliveryModesIssueTestsHelper.java
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_09_IssueWithProductWithServiceRelatedUniqueQuantity.java	Sat May 11 00:12:45 2019 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_09_IssueWithProductWithServiceRelatedUniqueQuantity.java	Mon May 13 11:41:18 2019 -0400
@@ -37,7 +37,7 @@
    * <li>Logged as vallblanca user</li>
    * <li>Create a new ticket</li>
    * <ul>
-   * <li>Product: GPS Nano, Quantity: 5, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 5, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
    * </ul>
    * </li>
@@ -59,9 +59,11 @@
    */
   @Test
   public void test() {
+    updateQuantityRuleInService(UNIQUE_QUANTITY_QUANTITY_RULE);
+    reload();
     String ticketId = BackboneHelper.getDocumentNo();
 
-    addProductWithService(GPS_NANO, TestIdPack.BUTTON_RECEIPT_ROW1, TestIdPack.BUTTON_KEYPAD_5,
+    addProductWithService(GPS_LOCALIZATOR, TestIdPack.BUTTON_RECEIPT_ROW1, TestIdPack.BUTTON_KEYPAD_5,
         PICK_IN_STORE_DELIVERY_MODE);
     payTicketInCash();
 
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_10_IssueWithProductWithServiceRelatedPerProduct.java	Sat May 11 00:12:45 2019 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_10_IssueWithProductWithServiceRelatedPerProduct.java	Mon May 13 11:41:18 2019 -0400
@@ -41,7 +41,7 @@
    * <li>Logged as vallblanca user</li>
    * <li>Create a new ticket</li>
    * <ul>
-   * <li>Product: GPS Nano, Quantity: 5, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 5, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
    * </ul>
    * </li>
@@ -68,7 +68,7 @@
 
     String ticketId = BackboneHelper.getDocumentNo();
 
-    addProductWithService(GPS_NANO, TestIdPack.BUTTON_RECEIPT_ROW1, TestIdPack.BUTTON_KEYPAD_5,
+    addProductWithService(GPS_LOCALIZATOR, TestIdPack.BUTTON_RECEIPT_ROW1, TestIdPack.BUTTON_KEYPAD_5,
         PICK_IN_STORE_DELIVERY_MODE);
     payTicketInCash();
 
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_13_VerifyDeliveringUngroupedProductWithGroupedServiceRelatedPerProduct.java	Sat May 11 00:12:45 2019 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_13_VerifyDeliveringUngroupedProductWithGroupedServiceRelatedPerProduct.java	Mon May 13 11:41:18 2019 -0400
@@ -49,9 +49,9 @@
    * <li>Logged as vallblanca user</li>
    * <li>Create a new ticket</li>
    * <ul>
-   * <li>Product: GPS Nano, Quantity: 1, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 1, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
-   * <li>Product: GPS Nano, Quantity: 1, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 1, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
    * </ul>
    * </li>
@@ -65,14 +65,14 @@
    */
   @Test
   public void test() {
-    unGroupProduct(PRODUCT_GPS_NANO_ID);
+    unGroupProduct(PRODUCT_GPS_LOCALIZATOR_ID);
     groupProduct(PRODUCT_CONFIGURATION_ID);
     updateQuantityRuleInService(PER_PRODUCT_QUANTITY_RULE);
     reload();
 
     String ticketId = BackboneHelper.getDocumentNo();
 
-    addProductWithServiceToTicketConsideringGrouping(GPS_NANO, 2,
+    addProductWithServiceToTicketConsideringGrouping(GPS_LOCALIZATOR, 2,
         Arrays.asList(TestIdPack.BUTTON_RECEIPT_ROW1, TestIdPack.BUTTON_RECEIPT_ROW3));
 
     payTicketInCash();
@@ -82,7 +82,7 @@
     issueSelectedLines();
 
     assertAllOrderedQuantitiesWereDeliveredInLines(ticketId);
-    groupProduct(PRODUCT_GPS_NANO_ID);
+    groupProduct(PRODUCT_GPS_LOCALIZATOR_ID);
     groupProduct(PRODUCT_CONFIGURATION_ID);
     updateQuantityRuleInService(UNIQUE_QUANTITY_QUANTITY_RULE);
   }
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_14_VerifyDeliveringUngroupedProductWithGroupedServiceRelatedUniqueQuantity.java	Sat May 11 00:12:45 2019 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_14_VerifyDeliveringUngroupedProductWithGroupedServiceRelatedUniqueQuantity.java	Mon May 13 11:41:18 2019 -0400
@@ -49,9 +49,9 @@
    * <li>Logged as vallblanca user</li>
    * <li>Create a new ticket</li>
    * <ul>
-   * <li>Product: GPS Nano, Quantity: 1, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 1, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
-   * <li>Product: GPS Nano, Quantity: 1, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 1, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
    * </ul>
    * </li>
@@ -65,14 +65,14 @@
    */
   @Test
   public void test() {
-    unGroupProduct(PRODUCT_GPS_NANO_ID);
+    unGroupProduct(PRODUCT_GPS_LOCALIZATOR_ID);
     groupProduct(PRODUCT_CONFIGURATION_ID);
     updateQuantityRuleInService(UNIQUE_QUANTITY_QUANTITY_RULE);
     reload();
 
     String ticketId = BackboneHelper.getDocumentNo();
 
-    addProductWithServiceToTicketConsideringGrouping(GPS_NANO, 2,
+    addProductWithServiceToTicketConsideringGrouping(GPS_LOCALIZATOR, 2,
         Arrays.asList(TestIdPack.BUTTON_RECEIPT_ROW1, TestIdPack.BUTTON_RECEIPT_ROW3));
 
     payTicketInCash();
@@ -82,7 +82,7 @@
     issueSelectedLines();
 
     assertAllOrderedQuantitiesWereDeliveredInLines(ticketId);
-    groupProduct(PRODUCT_GPS_NANO_ID);
+    groupProduct(PRODUCT_GPS_LOCALIZATOR_ID);
     groupProduct(PRODUCT_CONFIGURATION_ID);
     updateQuantityRuleInService(UNIQUE_QUANTITY_QUANTITY_RULE);
   }
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_15_VerifyDeliveringGroupedProductWithUngroupedServiceRelatedPerProduct.java	Sat May 11 00:12:45 2019 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DMI_15_VerifyDeliveringGroupedProductWithUngroupedServiceRelatedPerProduct.java	Mon May 13 11:41:18 2019 -0400
@@ -49,9 +49,9 @@
    * <li>Logged as vallblanca user</li>
    * <li>Create a new ticket</li>
    * <ul>
-   * <li>Product: GPS Nano, Quantity: 1, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 1, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
-   * <li>Product: GPS Nano, Quantity: 1, Delivery Mode: Pickup in store</li>
+   * <li>Product: GPS Localizator, Quantity: 1, Delivery Mode: Pickup in store</li>
    * <li>Product: Configuration</li>
    * </ul>
    * </li>
@@ -65,14 +65,14 @@
    */
   @Test
   public void test() {
-    groupProduct(PRODUCT_GPS_NANO_ID);
+    groupProduct(PRODUCT_GPS_LOCALIZATOR_ID);
     unGroupProduct(PRODUCT_CONFIGURATION_ID);
     updateQuantityRuleInService(PER_PRODUCT_QUANTITY_RULE);
     reload();
 
     String ticketId = BackboneHelper.getDocumentNo();
 
-    addProductWithServiceToTicketConsideringGrouping(GPS_NANO, 2,
+    addProductWithServiceToTicketConsideringGrouping(GPS_LOCALIZATOR, 2,
         Arrays.asList(TestIdPack.BUTTON_RECEIPT_ROW1));
 
     payTicketInCash();
@@ -82,7 +82,7 @@
     issueSelectedLines();
 
     assertAllOrderedQuantitiesWereDeliveredInLines(ticketId);
-    groupProduct(PRODUCT_GPS_NANO_ID);
+    groupProduct(PRODUCT_GPS_LOCALIZATOR_ID);
     groupProduct(PRODUCT_CONFIGURATION_ID);
     updateQuantityRuleInService(UNIQUE_QUANTITY_QUANTITY_RULE);
   }
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DeliveryModesIssueTestsHelper.java	Sat May 11 00:12:45 2019 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliverymodesissue/DeliveryModesIssueTestsHelper.java	Mon May 13 11:41:18 2019 -0400
@@ -32,7 +32,7 @@
   private static final String YOSEMITE_STORE_0_0_0_LOCATOR_ID = "62FF417ECFBA41B491F2FB013AC70B53";
   private static final String YOSEMITE_STORE_0_0_1_LOCATOR_ID = "A7C7F92D81984923A4EF100293A43E62";
   protected static final String PRODUCT_CONFIGURATION_ID = "95FF37BC29824C4CBC7ECCB0AF4E7DF5";
-  protected static final String PRODUCT_GPS_NANO_ID = "A4E876739BD443419EFC9A55B886D6AD";
+  protected static final String PRODUCT_GPS_LOCALIZATOR_ID = "A4E876739BD443419EFC9A55B886D6AD";
   protected static final String BABY_CARRIER = "WVG/B0004";
   protected static final String PRODUCT_HEADLAMP_ULTRALIGHT = "WVG/L0001";
   protected static final String PRODUCT_AVALANCHE_TRANSCEIVER = "WVG/M0019";
@@ -42,7 +42,7 @@
   protected static final String PICK_IN_STORE_WITH_DATE_DELIVERY_MODE = "2";
   protected static final boolean ASCENDING = true;
   protected static final boolean DESCENDING = false;
-  protected static final String GPS_NANO = "DMI_TP";
+  protected static final String GPS_LOCALIZATOR = "GPS_LOC";
   protected static final String UNIQUE_QUANTITY_QUANTITY_RULE = "UQ";
   protected static final String PER_PRODUCT_QUANTITY_RULE = "PP";
   protected static final String AFTER_ORDER_DELIVERED_INVOICE_TERM = "O";