Related to issue 39135: trying to stabilize test I38365_VerifyOpenLayawayWithoutPermissionForThatTicket
authorAlejandro <alekosmp86@gmail.com>
Tue, 14 Aug 2018 11:18:09 -0400
changeset 7595 bb1563d9557e
parent 7594 166e0cef91f5
child 7596 3078907d665b
Related to issue 39135: trying to stabilize test I38365_VerifyOpenLayawayWithoutPermissionForThatTicket
For some (unknown) reason, after login in the terminal with the test user, the
method BackboneHelper.getDocumentNo() wasn't returning the receipt's number, but
an empty string instead, which causes the test to crash further ahead, so now
the receipt's number is captured before changing users.
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I38365_VerifyOpenLayawayWithoutPermissionForThatTicket.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I38365_VerifyOpenLayawayWithoutPermissionForThatTicket.java	Mon Aug 13 11:25:04 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I38365_VerifyOpenLayawayWithoutPermissionForThatTicket.java	Tue Aug 14 11:18:09 2018 -0400
@@ -50,12 +50,13 @@
 
   @Test
   public void test() {
+    String layawayDocNo = BackboneHelper.getDocumentNo();
+
     // logout and login using the Test User
     simpleLogOut();
     simpleLogIn(testUserName, testUserPassword);
 
     // create a layaway
-    String layawayDocNo = BackboneHelper.getDocumentNo();
     tap(TestIdCore.BUTTON_MENU);
     tap(TestIdPack.BUTTON_MENU_LAYAWAYTHISRECEIPT);
     verify(TestIdPack.LABEL_RECEIPT_TYPE, "To be laid away");