Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044406Retail ModulesWeb POSpublic2020-06-18 10:012020-08-19 14:28
prakashmurugesan88 
prakashmurugesan88 
normalminorhave not tried
closedfixed 
5
 
RR20Q3 
marvintm
No
No
0044406: Random tests failing in try while verifying MessageTableIsEmpty
Random tests failing in try while verifying MessageTableIsEmpty with following error,

"The javascript 'return ((await OB.App.SynchronizationBuffer.getPendingMessages()).length !== 0 || OB.App.State.getState().Messages.length !== 0);' has failed because: 'javascript error: Cannot read property 'transaction' of null'

#### Selenium driver exception: The javascript 'return ((await OB.App.SynchronizationBuffer.getPendingMessages()).length !== 0 || OB.App.State.getState().Messages.length !== 0);' has failed because: 'javascript error: Cannot read property 'transaction' of null' ####
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'c18101', ip: '10.1.18.101', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-72-generic', java.version: '11.0.5'
Driver info: driver.version: unknown"

Seems it is trying to fetch PendingMessages before IndexedDB is Initialized
Tests failing randomly in try
Ensure IndexedDB is Initialized before verifying PendingMessages
No tags attached.
related to defect 0053669 closed ranjith_qualiantech_com Random selenium tests failing in chrome version 117 and above 
Issue History
2020-06-18 10:01prakashmurugesan88New Issue
2020-06-18 10:01prakashmurugesan88Assigned To => prakashmurugesan88
2020-06-18 10:01prakashmurugesan88OBNetwork customer => No
2020-06-18 10:01prakashmurugesan88Triggers an Emergency Pack => No
2020-06-18 10:01prakashmurugesan88Statusnew => scheduled
2020-06-19 09:24hgbotCheckin
2020-06-19 09:24hgbotNote Added: 0120913
2020-06-25 15:13prakashmurugesan88Statusscheduled => resolved
2020-06-25 15:13prakashmurugesan88Resolutionopen => fixed
2020-06-29 10:40marvintmReview Assigned To => marvintm
2020-06-29 10:40marvintmStatusresolved => closed
2020-06-29 10:40marvintmFixed in Version => RR20Q3
2020-08-19 14:28hgbotNote Added: 0122176
2023-10-18 11:09ranjith_qualiantech_comRelationship addedrelated to 0053669

Notes
(0120913)
hgbot   
2020-06-19 09:24   
Repository: tools/automation/pi-mobile
Changeset: 1c3a23e03d8973e7c77ddb482356fd8daaba9a53
Author: Prakash M <prakash <at> qualiantech.com>
Date: Fri Jun 19 12:53:21 2020 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1c3a23e03d8973e7c77ddb482356fd8daaba9a53 [^]

Related to BUG-44406: Tests failing in trying on fetching PendingMessages

* Error occurs as it tries to PendingMessages before IndexedDB is Initialized
* Ensured the database is created before the check

---
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/MobileCoreAPI.java
---
(0122176)
hgbot   
2020-08-19 14:28   
Merge request closed: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/9 [^]