Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0028876 | Openbravo ERP | A. Platform | public | 2015-02-05 17:24 | 2015-02-09 12:27 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | inigosanchez |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0028876: OBBaseTest rolls back all test executions |
Description | After executing any OBBaseTest junit test case, rollback is performed on DAL session.
The expected behavior is to commit in case of success and rollback only in case of failure. In this way it is possible to make tests dependent on other ones. |
Steps To Reproduce | See attached test cases, it fails because 2nd test case expects objects created in 1st one are still present. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0027290 | | closed | inigosanchez | Upgrade all test cases of JUnit (Version 4.11) |
|
Attached Files | TestInfrastructure.java (3,096) 2015-02-05 17:25 https://issues.openbravo.com/file_download.php?file_id=7773&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2015-02-05 17:24 | alostale | New Issue | |
2015-02-05 17:24 | alostale | Assigned To | => alostale |
2015-02-05 17:24 | alostale | OBNetwork customer | => No |
2015-02-05 17:24 | alostale | Modules | => Core |
2015-02-05 17:24 | alostale | Triggers an Emergency Pack | => No |
2015-02-05 17:25 | alostale | File Added: TestInfrastructure.java | |
2015-02-05 17:26 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=7633#r7633 |
2015-02-06 08:22 | alostale | Relationship added | related to 0027290 |
2015-02-06 08:23 | alostale | Review Assigned To | => inigosanchez |
2015-02-06 08:55 | hgbot | Checkin | |
2015-02-06 08:55 | hgbot | Note Added: 0074236 | |
2015-02-06 08:55 | hgbot | Status | new => resolved |
2015-02-06 08:55 | hgbot | Resolution | open => fixed |
2015-02-06 08:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bdf1796ee0120d1796e48d13cdcc78be894c790c [^] |
2015-02-06 08:55 | hgbot | Checkin | |
2015-02-06 08:55 | hgbot | Note Added: 0074237 | |
2015-02-06 08:55 | hgbot | Checkin | |
2015-02-06 08:55 | hgbot | Note Added: 0074239 | |
2015-02-06 15:42 | hudsonbot | Checkin | |
2015-02-06 15:42 | hudsonbot | Note Added: 0074260 | |
2015-02-06 15:42 | hudsonbot | Checkin | |
2015-02-06 15:42 | hudsonbot | Note Added: 0074261 | |
2015-02-09 12:27 | inigosanchez | Note Added: 0074280 | |
2015-02-09 12:27 | inigosanchez | Status | resolved => closed |
Notes |
|
(0074236)
|
hgbot
|
2015-02-06 08:55
|
|
Repository: erp/devel/pi
Changeset: bdf1796ee0120d1796e48d13cdcc78be894c790c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 05 17:30:09 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bdf1796ee0120d1796e48d13cdcc78be894c790c [^]
fixed bug 28876: OBBaseTest rolls back all test executions
Added a test watcher to determine wether the test failed or succeeded and do
the commit/rollback based on that.
---
M src-test/src/org/openbravo/test/base/OBBaseTest.java
---
|
|
|
(0074237)
|
hgbot
|
2015-02-06 08:55
|
|
Repository: erp/devel/pi
Changeset: 0c0527b41e73d687595d89be4e2e08afbb165b5b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 05 17:30:40 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0c0527b41e73d687595d89be4e2e08afbb165b5b [^]
related to bug 28876: added test case
---
M src-test/src/org/openbravo/test/AllAntTaskTests.java
M src-test/src/org/openbravo/test/AllQuickAntTaskTests.java
M src-test/src/org/openbravo/test/AntTaskTests.java
A src-test/src/org/openbravo/test/system/TestInfrastructure.java
---
|
|
|
(0074239)
|
hgbot
|
2015-02-06 08:55
|
|
Repository: erp/devel/api-checks
Changeset: 8dbaaba6e596729afabf26660026f81e335126c9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Feb 06 08:54:24 2015 +0100
URL: http://code.openbravo.com/erp/devel/api-checks/rev/8dbaaba6e596729afabf26660026f81e335126c9 [^]
related to bug 28876: fixed false api change positive
Changes in ClassicSelectorTest were detected, this is a false positive because
test package is excluded from api checks, though this class contains test cases,
it is not excluded because it is not in org.openbravo.test package.
---
M java/reference/java.japi.gz
---
|
|
|
|
|
|
|
|
|
|
Code reviewed and verified in pi@5461e9cb19dd |
|