Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038985Retail ModulesTests Stabilizationpublic2018-07-18 16:382018-07-19 10:39
jorge-garcia 
jorge-garcia 
normalmajorhave not tried
scheduledopen 
5
 
 
No
0038985: SelectPrinterTests.java is failing in retail-qa
Error Message
The login process did not finish (isLoggingIn has never became false)

Stacktrace
junit.framework.AssertionFailedError: The login process did not finish (isLoggingIn has never became false)
    at org.openbravo.test.mobile.retail.mobilecore.utils.RetailUtils$3.timeout(RetailUtils.java:151)
    at org.openbravo.test.mobile.core.utils.OBWait.<init>(OBWait.java:66)
    at org.openbravo.test.mobile.core.utils.OBWait.<init>(OBWait.java:35)
    at org.openbravo.test.mobile.retail.mobilecore.utils.RetailUtils$3.<init>(RetailUtils.java:139)
    at org.openbravo.test.mobile.retail.mobilecore.utils.RetailUtils.verifyThatTheLoginProcessHasEnded(RetailUtils.java:139)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.logIn(MobileCoreTerminalHelper.java:406)
    at org.openbravo.test.mobile.retail.pack.selenium.terminals.WebPOSTerminalHelper.logIn(WebPOSTerminalHelper.java:273)
    at org.openbravo.test.mobile.retail.mobilecore.selenium.terminals.MobileCoreTerminalHelper.logIn(MobileCoreTerminalHelper.java:357)
    at org.openbravo.test.mobile.retail.pack.selenium.tests.selectingPrinter.SelectPrinterTests.NoPrintersConfigured(SelectPrinterTests.java:51)
Execute the test several times.
The problem could happen if the test or the user configures the Hardware URL from POS Terminal incorrectly, the login process could take more time than expected and fail the OBWait define for the login process in the tests.

The solution is to decrease the timeout (from 20 seconds to 5 seconds) of the request for display and drawer as these kind of request are smaller than the rest of request done to the hardware manager. The rest of request done to the hardware manager keeps the old timeout.
No tags attached.
png SelectPrinterTests.NoPrintersConfigured.png (43,711) 2018-07-18 16:38
https://issues.openbravo.com/file_download.php?file_id=11974&type=bug
png
Issue History
2018-07-18 16:38jorge-garciaNew Issue
2018-07-18 16:38jorge-garciaAssigned To => jorge-garcia
2018-07-18 16:38jorge-garciaFile Added: SelectPrinterTests.NoPrintersConfigured.png
2018-07-18 16:38jorge-garciaTriggers an Emergency Pack => No
2018-07-19 10:39jorge-garciaStatusnew => scheduled

There are no notes attached to this issue.