Verifies issue 40445 : Modified Automated Test 3.0RR18Q4
authorRanjith S R <ranjith@qualiantech.com>
Mon, 25 Mar 2019 13:49:47 +0530
changeset 8464 ae5c352ec296
parent 8304 e3f9fcb555cf
child 8465 a23463970e6e
Verifies issue 40445 : Modified Automated Test

* I33512_VerifyPayOpenTickets.java
* CreateMultiorder.java
* I27214_MultiorderFailsWhenEmptyReceiptsPresent.java
* I33834_VerifyLayawayInPayOpen.java
src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33512_VerifyPayOpenTickets.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMultiorder.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I27214_MultiorderFailsWhenEmptyReceiptsPresent.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I33834_VerifyLayawayInPayOpen.java
--- a/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33512_VerifyPayOpenTickets.java	Tue Feb 19 14:41:35 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bypaymentmethod/I33512_VerifyPayOpenTickets.java	Mon Mar 25 13:49:47 2019 +0530
@@ -55,7 +55,6 @@
     tap(TestIdExtModules.BUTTON_POPUP_OPENTICKETS_DONE);
     verify(TestIdExtModules.LABEL_TOTALTOPAY, "221.00");
 
-    tap(TestIdExtModules.BUTTON_PAY);
     tap(TestIdExtModules.BUTTON_PAY_EXACT);
     tap(TestIdExtModules.BUTTON_PAY_DONE);
     verify(TestIdExtModules.LABEL_TOTALTOPAY, "0.00");
@@ -109,4 +108,4 @@
     tap(TestIdExtModules.BUTTON_SEARCHPRODUCT_FIRSTROW);
     verify(TestIdExtModules.LABEL_TOTALTOPAY, "110.50");
   }
-}
\ No newline at end of file
+}
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMultiorder.java	Tue Feb 19 14:41:35 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMultiorder.java	Mon Mar 25 13:49:47 2019 +0530
@@ -88,7 +88,6 @@
     verify(TestIdPack.LABEL_RECEIPT_MULTIORDER_TOTALQTY, "2");
     verify(TestIdPack.LABEL_RECEIPT_MULTIORDER_TOTALGROSS, totalGross);
     verify(TestIdPack.LABEL_TOTALTOPAY, totalGross);
-    tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
@@ -105,9 +104,9 @@
       protected void yieldResultSet(final ResultSet rs) throws SQLException {
         final String productId = rs.getString("m_product_id");
         final String productName = rs.getString("name");
-        logger.info(String.format(
-            "Verifying that the database record (%s) '%s' is one of the expected", productId,
-            productName));
+        logger.info(
+            String.format("Verifying that the database record (%s) '%s' is one of the expected",
+                productId, productName));
         assertThat("The product name is not the expected", productName,
             equalTo("Alpine skiing backpack 27 L"));
         assertThat("The 'productId' is not one of the expected", productId,
@@ -122,14 +121,15 @@
       protected void yieldResultSet(final ResultSet rs) throws SQLException {
         final String productId = rs.getString("m_product_id");
         final String productName = rs.getString("name");
-        logger.info(String.format(
-            "Verifying that the database record (%s) '%s' is one of the expected", productId,
-            productName));
-        assertThat("The product name is not the expected", productName, equalTo("Basecamp lantern"));
+        logger.info(
+            String.format("Verifying that the database record (%s) '%s' is one of the expected",
+                productId, productName));
+        assertThat("The product name is not the expected", productName,
+            equalTo("Basecamp lantern"));
         assertThat("The 'productId' is not one of the expected", productId,
             equalTo("772EE3421FE84D768A674840C2EB855B"));
       }
     }.execute(sql2, 1);
 
   }
-}
\ No newline at end of file
+}
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I27214_MultiorderFailsWhenEmptyReceiptsPresent.java	Tue Feb 19 14:41:35 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I27214_MultiorderFailsWhenEmptyReceiptsPresent.java	Mon Mar 25 13:49:47 2019 +0530
@@ -55,7 +55,8 @@
     return parameters;
   }
 
-  public I27214_MultiorderFailsWhenEmptyReceiptsPresent(final String terminal, final String userName) {
+  public I27214_MultiorderFailsWhenEmptyReceiptsPresent(final String terminal,
+      final String userName) {
     super(terminal, userName, "openbravo");
   }
 
@@ -74,8 +75,8 @@
       totalToPay2 = "67.16";
       totalGross = "200.14";
     } else {
-      throw new IllegalArgumentException("The terminal '" + getTerminal()
-          + "' is missing a proper test");
+      throw new IllegalArgumentException(
+          "The terminal '" + getTerminal() + "' is missing a proper test");
     }
 
     // create some empty tickets
@@ -115,7 +116,6 @@
     verify(TestIdPack.LABEL_RECEIPT_MULTIORDER_TOTALQTY, "2");
     verify(TestIdPack.LABEL_RECEIPT_MULTIORDER_TOTALGROSS, totalGross);
     verify(TestIdPack.LABEL_TOTALTOPAY, totalGross);
-    tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
@@ -134,9 +134,9 @@
       protected void yieldResultSet(final ResultSet rs) throws SQLException {
         final String productId = rs.getString("m_product_id");
         final String productName = rs.getString("name");
-        logger.info(String.format(
-            "Verifying that the database record (%s) '%s' is one of the expected", productId,
-            productName));
+        logger.info(
+            String.format("Verifying that the database record (%s) '%s' is one of the expected",
+                productId, productName));
         assertThat("The product name is not the expected", productName,
             equalTo("Alpine skiing backpack 27 L"));
         assertThat("The 'productId' is not the expected", productId,
@@ -151,10 +151,11 @@
       protected void yieldResultSet(final ResultSet rs) throws SQLException {
         final String productId = rs.getString("m_product_id");
         final String productName = rs.getString("name");
-        logger.info(String.format(
-            "Verifying that the database record (%s) '%s' is one of the expected", productId,
-            productName));
-        assertThat("The product name is not the expected", productName, equalTo("Basecamp lantern"));
+        logger.info(
+            String.format("Verifying that the database record (%s) '%s' is one of the expected",
+                productId, productName));
+        assertThat("The product name is not the expected", productName,
+            equalTo("Basecamp lantern"));
         assertThat("The 'productId' is not the expected", productId,
             equalTo("772EE3421FE84D768A674840C2EB855B"));
       }
@@ -166,8 +167,8 @@
     } else if (getTerminal().equals("PS-1")) {
       cleanCashupPS();
     } else {
-      throw new IllegalArgumentException("The terminal '" + getTerminal()
-          + "' is missing a proper test");
+      throw new IllegalArgumentException(
+          "The terminal '" + getTerminal() + "' is missing a proper test");
     }
   }
 
@@ -190,4 +191,4 @@
     tap(TestIdPack.BUTTON_POPUP_OK);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
   }
-}
\ No newline at end of file
+}
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I33834_VerifyLayawayInPayOpen.java	Tue Feb 19 14:41:35 2019 +0100
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I33834_VerifyLayawayInPayOpen.java	Mon Mar 25 13:49:47 2019 +0530
@@ -55,7 +55,6 @@
     tap(TestIdPack.BUTTON_POPUP_OPENTICKETS_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "301.00");
 
-    tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
@@ -83,4 +82,4 @@
     tap(TestIdPack.BUTTON_OPEN_RECEIPT_ROW1);
     verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
   }
-}
\ No newline at end of file
+}