Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044113Retail ModulesWeb POSpublic2020-05-20 07:172020-06-04 10:37
prakashmurugesan88 
prakashmurugesan88 
normalminorhave not tried
closedfixed 
5
 
RR20Q3 
gorka_gil
No
0044113: Automated test date verification fails if the try execution occurs at mid night(Day 1 & Day 2)
Following error occurs in try,

Error Message
Expected: "2020-05-19"
     but: was "2020-05-18"

This is caused due to execution occurs at mid night.
Where order creation occurs in day 1 and verification with local date occurs in day 2.

https://ci.openbravo.com/job/try-ret-test-pgsql-suite5/10592/testReport/junit/org.openbravo.test.mobile.retail.pack.selenium.tests.cashup/I33633_WrongInvoiceDateInSalesInvoice/test/ [^]
This can be reproduced only if order creation occurs in day 1 and verification with local date occurs in day 2.
Check the console output of failed test and verify date and time.
No tags attached.
patch I44113_Test_3.patch (3,352) 2020-05-22 08:50
https://issues.openbravo.com/file_download.php?file_id=14517&type=bug
Issue History
2020-05-20 07:17prakashmurugesan88New Issue
2020-05-20 07:17prakashmurugesan88Assigned To => prakashmurugesan88
2020-05-20 07:17prakashmurugesan88Triggers an Emergency Pack => No
2020-05-22 08:50prakashmurugesan88File Added: I44113_Test_3.patch
2020-05-22 08:50prakashmurugesan88Statusnew => scheduled
2020-05-22 10:59hgbotCheckin
2020-05-22 10:59hgbotNote Added: 0120166
2020-05-22 10:59hgbotStatusscheduled => resolved
2020-05-22 10:59hgbotResolutionopen => fixed
2020-05-22 10:59hgbotFixed in SCM revision => http://code.openbravo.com/tools/automation/pi-mobile/rev/2d46d2183ae99376d2439f30a25fff61544909e6 [^]
2020-05-22 12:33gorka_gilReview Assigned To => gorka_gil
2020-05-22 12:33gorka_gilStatusresolved => closed
2020-05-22 12:33gorka_gilFixed in Version => RR20Q3
2020-06-04 10:34hgbotCheckin
2020-06-04 10:34hgbotNote Added: 0120641
2020-06-04 10:37hgbotCheckin
2020-06-04 10:37hgbotNote Added: 0120643

Notes
(0120166)
hgbot   
2020-05-22 10:59   
Repository: tools/automation/pi-mobile
Changeset: 2d46d2183ae99376d2439f30a25fff61544909e6
Author: Prakash M <prakash <at> qualiantech.com>
Date: Fri May 22 14:27:34 2020 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/2d46d2183ae99376d2439f30a25fff61544909e6 [^]

Fixed BUG-44113: Automated test date verification fails if the try
execution occurs at mid night(Day 1 & Day 2)

* Before execution of a test verifies if the date is expected to change in less
than or equal to 5 mins(test timeout duration).
* If so test execution will wait for date change(wait time).
* For that test time out will be increased from 5 mins to 5 mins plus wait time.
* As globalTimeout is set before execution of each test in a class, so after
test time out increased in one test it will be reset to 5 mins again upcoming
tests.

---
M src-test/org/openbravo/test/mobile/retail/mobilecore/selenium/terminals/MobileCoreTerminalHelper.java
---
(0120641)
hgbot   
2020-06-04 10:34   
Repository: erp/pmods/org.openbravo.retail.digitalcoupons
Changeset: 0fc3e65aeeace0c8c60be699e329b2a03175567d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jun 04 14:03:53 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.digitalcoupons/rev/0fc3e65aeeace0c8c60be699e329b2a03175567d [^]

Related to issue 44113 : Fields should be reset when Opening Digital Coupon Popup

---
M web/org.openbravo.retail.digitalcoupons/js/modalDigitalCoupons.js
---
(0120643)
hgbot   
2020-06-04 10:37   
Repository: tools/automation/pi-mobile
Changeset: 83e59aef9d4f526a35a9f884cfa48ed6d8957914
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jun 04 14:07:38 2020 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/83e59aef9d4f526a35a9f884cfa48ed6d8957914 [^]

Related to BUG-44113 : POS should be reloaded after midnight timeout

---
M src-test/org/openbravo/test/mobile/retail/mobilecore/selenium/terminals/MobileCoreTerminalHelper.java
---