Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043852Retail ModulesWeb POSpublic2020-04-24 05:102021-09-10 09:39
ranjith_qualiantech_com 
prakashmurugesan88 
normalminorrandom
closedfixed 
5
 
 
No
0043852: Test fails randomly in try-retail
Random Error occurs in tests in try-retail module suites

junit.framework.AssertionFailedError: (2) errors in the browser log:
[2020-04-22T00:11:46+0000] [SEVERE] http://127.0.0.1/try-ret-modules-pgsql-suite2/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.posterminal.term.Terminal/%7B%22parameters%22:%7B%22terminalTime%22:%222020-04-22T00:11:46.540Z%22,%22terminalTimeOffset%22:%7B%22value%22:0,%22type%22:%22long%22%7D%7D,%22terminalName%22:%22YS-11%22,%22appName%22:%22WebPOS%22,%22timeout%22:15000%7D [^] - Failed to load resource: the server responded with a status of 401 (401)
[2020-04-22T00:11:46+0000] [SEVERE] http://127.0.0.1/try-ret-modules-pgsql-suite2/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.discounts.category.term.DiscountCategory/%7B%22terminalName%22:%22YS-11%22,%22appName%22:%22WebPOS%22,%22timeout%22:15000%7D [^] - Failed to load resource: the server responded with a status of 401 (401)

    at org.openbravo.test.mobile.core.selenium.SeleniumHelper.saveLog(SeleniumHelper.java:379)
    at org.openbravo.test.mobile.core.selenium.SeleniumHelper.saveLog(SeleniumHelper.java:318)
    at org.openbravo.test.mobile.core.selenium.SeleniumHelper.executeJavascript(SeleniumHelper.java:450)
    at org.openbravo.test.mobile.core.selenium.SeleniumHelper.executeScriptWithReturn(SeleniumHelper.java:426)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.SynchronizationMonitor$2.until(SynchronizationMonitor.java:66)
    at org.openbravo.test.mobile.core.utils.OBWait.<init>(OBWait.java:61)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.SynchronizationMonitor$2.<init>(SynchronizationMonitor.java:63)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.SynchronizationMonitor.waitUntiTheApplicationHasSynchronized(SynchronizationMonitor.java:63)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.TestRegistryHelper.forceRefresh(TestRegistryHelper.java:69)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.TestRegistryHelper.waitForPopupToUpdate(TestRegistryHelper.java:88)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.EnyoNode.checkIfItsAPopup(EnyoNode.java:638)
    at org.openbravo.test.mobile.retail.mobilecore.javascript.EnyoNode.isReady(EnyoNode.java:224)
    at org.openbravo.test.mobile.retail.mobilecore.intuitive.IntuitiveCommandsMobileCore$8.until(IntuitiveCommandsMobileCore.java:630)
    at org.openbravo.test.mobile.core.utils.OBWait.<init>(OBWait.java:61)
    at org.openbravo.test.mobile.core.utils.OBWait.<init>(OBWait.java:35)
    at org.openbravo.test.mobile.retail.mobilecore.intuitive.IntuitiveCommandsMobileCore$8.<init>(IntuitiveCommandsMobileCore.java:621)
    at org.openbravo.test.mobile.retail.mobilecore.intuitive.IntuitiveCommandsMobileCore.firstOf(IntuitiveCommandsMobileCore.java:621)
    at org.openbravo.test.mobile.retail.extmodules.selenium.terminals.WebPOSExtModulesTerminalHelper.postLogInActions(WebPOSExtModulesTerminalHelper.java:89)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.loginInPostUserActions(MobileCoreTerminalHelper.java:452)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.logIn(MobileCoreTerminalHelper.java:398)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.logIn(MobileCoreTerminalHelper.java:392)
    at org.openbravo.test.mobile.retail.pack.selenium.terminals.WebPOSTerminalHelper.logIn(WebPOSTerminalHelper.java:352)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.logIn(MobileCoreTerminalHelper.java:388)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.before(MobileCoreTerminalHelper.java:296)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Random Error occurs in tests in try-retail module suites
https://ci.openbravo.com/job/try-ret-modules-pgsql-suite2/10417/ [^]
No tags attached.
related to defect 0044176 closed prakashmurugesan88 VerifyReload automated test failed randomly in try 
Issue History
2020-04-24 05:10ranjith_qualiantech_comNew Issue
2020-04-24 05:10ranjith_qualiantech_comAssigned To => ranjith_qualiantech_com
2020-04-24 05:10ranjith_qualiantech_comTriggers an Emergency Pack => No
2020-05-07 11:32ranjith_qualiantech_comSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20965#r20965
2020-05-07 12:03ranjith_qualiantech_comNote Added: 0119654
2020-05-11 08:20ranjith_qualiantech_comStatusnew => scheduled
2020-05-11 08:21ranjith_qualiantech_comStatusscheduled => resolved
2020-05-11 08:21ranjith_qualiantech_comResolutionopen => fixed
2020-05-12 15:13migueldejuanaNote Added: 0119781
2020-05-12 15:13migueldejuanaStatusresolved => new
2020-05-12 15:13migueldejuanaResolutionfixed => open
2020-05-30 09:40prakashmurugesan88Relationship addedrelated to 0044176
2020-06-26 11:56hgbotCheckin
2020-06-26 11:56hgbotNote Added: 0121109
2020-07-01 09:47ranjith_qualiantech_comAssigned Toranjith_qualiantech_com => prakashmurugesan88
2020-07-20 08:58hgbotNote Added: 0121516
2020-07-20 09:06hgbotNote Added: 0121517
2020-07-20 12:03hgbotNote Added: 0121523
2020-07-20 12:04hgbotNote Added: 0121524
2020-07-30 10:33hgbotNote Added: 0121703
2020-07-30 10:34hgbotNote Added: 0121704
2021-09-10 09:38prakashmurugesan88Statusnew => scheduled
2021-09-10 09:38prakashmurugesan88Statusscheduled => resolved
2021-09-10 09:38prakashmurugesan88Resolutionopen => fixed
2021-09-10 09:39prakashmurugesan88Note Added: 0131698
2021-09-10 09:39prakashmurugesan88Statusresolved => closed

Notes
(0119654)
ranjith_qualiantech_com   
2020-05-07 12:03   
Failing test "ActiveDiscountsPopupAddProductAndPay" is the first test of the suite.
Request for Class Terminal and DiscountCategory returns 401 error.
Finding the possible cause of the issue is difficult.
(0119781)
migueldejuana   
2020-05-12 15:13   
The issue not resolved and we are not going to work on it for now
(0121109)
hgbot   
2020-06-26 11:56   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 99e430fb31fd0b8122455f684007ff25a444b8d9
Author: Prakash M <prakash <at> qualiantech.com>
Date: Fri Jun 26 15:25:48 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/99e430fb31fd0b8122455f684007ff25a444b8d9 [^]

Related to BUG-43852: Added logs to debug the try error

---
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
---
(0121516)
hgbot   
2020-07-20 08:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/35 [^]
(0121517)
hgbot   
2020-07-20 09:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/36 [^]
(0121523)
hgbot   
2020-07-20 12:03   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: c25c1234e3aca0f5abcee109d220ed09f7d128e1
Author: Adrián Romero <adrian.romero@openbravo.com>
Date: 2020-07-20T12:00:37+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/c25c1234e3aca0f5abcee109d220ed09f7d128e1 [^]

Revert "Related to BUG-43852: Added logs to debug the try error"

This reverts commit 51ceb2b1721c1c86313ae2185402c1ab5b592c80.

---
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
---
(0121524)
hgbot   
2020-07-20 12:04   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 25c355005226a79efeb1e60dacc2d1302be749e6
Author: Adrián Romero <adrian.romero@openbravo.com>
Date: 2020-07-20T12:03:21+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/25c355005226a79efeb1e60dacc2d1302be749e6 [^]

Revert "Related to BUG-43852: Added logs to debug the try error"

This reverts commit 51ceb2b1721c1c86313ae2185402c1ab5b592c80.

---
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
---
(0121703)
hgbot   
2020-07-30 10:33   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/35 [^]
(0121704)
hgbot   
2020-07-30 10:34   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/36 [^]
(0131698)
prakashmurugesan88   
2021-09-10 09:39   
Seems issue doesn't occurs any more after Adrian's change