Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041216Retail ModulesTests Stabilizationpublic2019-03-11 12:022019-07-15 10:02
gorka_gil 
gorka_gil 
normalminorN/A
closedfixed 
5
 
RR19Q1.2RR19Q1.2 
guilleaer
No
0041216: pi-mobile: wait for process to finish or till a new popup is opened
In this issue:
https://issues.openbravo.com/view.php?id=40266 [^]

Pi-mobile was changed to wait for the finish of all processes after all taps and writes.

As part of this change was needed to introduce the pause and resume of process when a popup is opened, so the tests can write in that popup.

The problem is that this popup sometimes is opened as part of a hook, and inside the hook don't have the process id to do a pause/resume of the process.


The new idea is instead do a pause/resume of the processes is that the tests wait for the end of the process or if a new popup is opened. For that, before a tap should be needed to save the number of opened popups and after the tap, check that the number of opened popups has not increase.

The problem with this new idea is that some actions don't open a popup, for example the write of user and pass in the authorization popup for prepayment.
And for this cases is needed a tap or write that don't wait for processes.

Some of the are a bit risky, like for example the click on search for giftcards or creditnotes, that do a request to the backend, and don't wait for the processes in these cases is not very good.
-
No tags attached.
blocks defect 0040348 closed gorka_gil pi-mobile: wait for process to finish or till a new popup is opened 
Issue History
2019-07-01 19:20gorka_gilTypedefect => backport
2019-07-01 19:20gorka_gilTarget Version => RR19Q1.2
2019-07-01 19:23hgbotCheckin
2019-07-01 19:23hgbotNote Added: 0113130
2019-07-01 19:23hgbotStatusscheduled => resolved
2019-07-01 19:23hgbotResolutionopen => fixed
2019-07-01 19:23hgbotFixed in SCM revisionhttp://code.openbravo.com/tools/automation/pi-mobile/rev/7d553108f4a028616b03ba208adac11b1cdde7be [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1.2/pi-mobile/rev/a541d8291406c9ad17756b94858101f7d2d619ba [^]
2019-07-01 19:23hgbotCheckin
2019-07-01 19:23hgbotNote Added: 0113131
2019-07-08 18:48guilleaerReview Assigned Tomarvintm => guilleaer
2019-07-08 18:48guilleaerStatusresolved => closed
2019-07-08 18:48guilleaerFixed in Version => RR19Q1.2
2019-07-15 08:57hgbotCheckin
2019-07-15 08:57hgbotNote Added: 0113356
2019-07-15 08:57hgbotStatusclosed => resolved
2019-07-15 08:57hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR19Q1.2/pi-mobile/rev/a541d8291406c9ad17756b94858101f7d2d619ba [^] => http://code.openbravo.com/tools/automation/pi-mobile/rev/a541d8291406c9ad17756b94858101f7d2d619ba [^]
2019-07-15 08:58hgbotCheckin
2019-07-15 08:58hgbotNote Added: 0113357
2019-07-15 10:02priyamNote Added: 0113358
2019-07-15 10:02priyamStatusresolved => closed

Notes
(0113130)
hgbot   
2019-07-01 19:23   
Repository: retail/backports/3.0RR19Q1.2/pi-mobile
Changeset: a541d8291406c9ad17756b94858101f7d2d619ba
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Mar 26 13:49:35 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1.2/pi-mobile/rev/a541d8291406c9ad17756b94858101f7d2d619ba [^]

Fixes issue 41216: wait for process to finish or till a new popup is opened

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/terminals/WebPOSExtModulesTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/intuitive/IntuitiveCommandsMobileCore.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/EnyoNode.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/MobileCoreAPI.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/utils/RetailUtils.java
---
(0113131)
hgbot   
2019-07-01 19:23   
Repository: retail/backports/3.0RR19Q1.2/pi-mobile
Changeset: 1b8880b0ab2a6bcb8f791682178094e20d74bdcb
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Mar 26 19:54:09 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1.2/pi-mobile/rev/1b8880b0ab2a6bcb8f791682178094e20d74bdcb [^]

Related to issue 41216: improve the waitProcesses so if the current processes are the same that the previous ones, no need to wait

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/terminals/WebPOSExtModulesTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/intuitive/IntuitiveCommandsMobileCore.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/EnyoNode.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/MobileCoreAPI.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/utils/RetailUtils.java
---
(0113356)
hgbot   
2019-07-15 08:57   
Repository: tools/automation/pi-mobile
Changeset: a541d8291406c9ad17756b94858101f7d2d619ba
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Mar 26 13:49:35 2019 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/a541d8291406c9ad17756b94858101f7d2d619ba [^]

Fixes issue 41216: wait for process to finish or till a new popup is opened

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/terminals/WebPOSExtModulesTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/intuitive/IntuitiveCommandsMobileCore.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/EnyoNode.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/MobileCoreAPI.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/utils/RetailUtils.java
---
(0113357)
hgbot   
2019-07-15 08:58   
Repository: tools/automation/pi-mobile
Changeset: 1b8880b0ab2a6bcb8f791682178094e20d74bdcb
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Mar 26 19:54:09 2019 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1b8880b0ab2a6bcb8f791682178094e20d74bdcb [^]

Related to issue 41216: improve the waitProcesses so if the current processes are the same that the previous ones, no need to wait

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/terminals/WebPOSExtModulesTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/intuitive/IntuitiveCommandsMobileCore.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/EnyoNode.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/MobileCoreAPI.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/utils/RetailUtils.java
---
(0113358)
priyam   
2019-07-15 10:02   
closing this issue, The status changed to resolve as part of merge back to automation/pi-mobile on 19Q1.2 publish