Openbravo Issue Tracking System - QA
View Issue Details
0030557QAAutomation - Generalpublic2015-08-12 11:092015-09-07 11:55
aferraz 
aferraz 
normalminorsometimes
closedfixed 
30Professional Appliance
 
 
dmiguelez
0030557: Error in TestCosting when it is executed at midnight
Some date asserts fail in TestCosting tests when execution starts one day (before midnight) and ends the next day (after midnight):
https://ci.openbravo.com/view/retail/job/ret-checks-pgsql/2232/testReport/ [^]
N/A
No tags attached.
related to defect 0029274 closed aferraz Openbravo ERP New TestCosting junit test is very very slow 
Issue History
2015-08-12 11:09aferrazNew Issue
2015-08-12 11:09aferrazAssigned To => aferraz
2015-08-12 11:10aferrazRelationship addedrelated to 0029274
2015-08-12 11:17aferrazDescription Updatedbug_revision_view_page.php?rev_id=9196#r9196
2015-09-04 09:28hgbotCheckin
2015-09-04 09:28hgbotNote Added: 0080078
2015-09-04 09:28hgbotStatusnew => resolved
2015-09-04 09:28hgbotResolutionopen => fixed
2015-09-04 09:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b24e4b703e4ebf3aaf9aecd6bd5bf486d4411856 [^]
2015-09-04 09:28hgbotCheckin
2015-09-04 09:28hgbotNote Added: 0080079
2015-09-04 15:46hudsonbotCheckin
2015-09-04 15:46hudsonbotNote Added: 0080136
2015-09-04 15:46hudsonbotCheckin
2015-09-04 15:46hudsonbotNote Added: 0080137
2015-09-07 11:55dmiguelezReview Assigned To => dmiguelez
2015-09-07 11:55dmiguelezNote Added: 0080182
2015-09-07 11:55dmiguelezStatusresolved => closed

Notes
(0080078)
hgbot   
2015-09-04 09:28   
Repository: erp/devel/pi
Changeset: b24e4b703e4ebf3aaf9aecd6bd5bf486d4411856
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Sun Aug 30 21:06:28 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b24e4b703e4ebf3aaf9aecd6bd5bf486d4411856 [^]

Fixes issue 30557: Error in TestCosting when it is executed at midnight

Today variable has been replaced with new Date() to get the current date and not the date when the test suite starts.
FormatDate will be used in date asserts where it was not.
Creation and Updated date asserts have been removed.

---
M src-test/src/org/openbravo/test/costing/TestCosting.java
---
(0080079)
hgbot   
2015-09-04 09:28   
Repository: erp/devel/pi
Changeset: d61c48c1ba81de54674ccbb880fe9d9d196e3186
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Sun Aug 30 21:07:43 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d61c48c1ba81de54674ccbb880fe9d9d196e3186 [^]

Related to issue 30557: Replace amount0 variable with BigDecimal.ZERO

---
M src-test/src/org/openbravo/test/costing/TestCosting.java
---
(0080136)
hudsonbot   
2015-09-04 15:46   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2c27fe2e93a9 [^]
Maturity status: Test
(0080137)
hudsonbot   
2015-09-04 15:46   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2c27fe2e93a9 [^]
Maturity status: Test
(0080182)
dmiguelez   
2015-09-07 11:55   
Code Review + Testing Ok