Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035076 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2017-01-30 09:20 | 2017-03-15 20:18 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR17Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | a97688739247 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0035076: if test leaves admin mode, following test cases fail | |||||||
Description | If a test extending ObserverBaseTest leaves context as admin, it expectedly fails. But the subsequent test cases fail also if they don't handle this situation. | |||||||
Steps To Reproduce | - Add attached test cases: AdminModeHandleInTest - Execute them -> 1st one correctly fails -> 2nd one shouldn't fail but it does Note this test case cannot be included in standard suite as there is no way to prevent 1st one to fail as exception is thrown by TestWatcher after test finalization. | |||||||
Proposed Solution | Following test cases shouldn't fail. | |||||||
Tags | No tags attached. | |||||||
Attached Files | AdminModeHandleInTest.java [^] (543 bytes) 2017-01-30 09:21 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0093915) hgbot (developer) 2017-01-30 09:24 |
Repository: erp/devel/pi Changeset: a9768873924713fa9ae1a2fd704c766a97f70b1d Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Jan 30 09:23:12 2017 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/a9768873924713fa9ae1a2fd704c766a97f70b1d [^] fixed bug 35076: if test leaves admin mode, following test cases fail Restore previous mode when this situation occurs so that following test cases start in a clean situation. --- M src-test/src/org/openbravo/test/base/OBBaseTest.java --- |
(0093923) caristu (developer) 2017-01-30 11:03 |
Code reviewed + testing OK: admin mode is reset properly, therefore 2nd test case does not fail. |
(0095136) hudsonbot (developer) 2017-03-15 20:18 |
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/54e102bef53e [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2017-01-30 09:20 | alostale | New Issue | |
2017-01-30 09:20 | alostale | Assigned To | => platform |
2017-01-30 09:20 | alostale | Modules | => Core |
2017-01-30 09:20 | alostale | Triggers an Emergency Pack | => No |
2017-01-30 09:20 | alostale | Relationship added | related to 0035075 |
2017-01-30 09:20 | alostale | Review Assigned To | => caristu |
2017-01-30 09:20 | alostale | Assigned To | platform => alostale |
2017-01-30 09:21 | alostale | File Added: AdminModeHandleInTest.java | |
2017-01-30 09:24 | hgbot | Checkin | |
2017-01-30 09:24 | hgbot | Note Added: 0093915 | |
2017-01-30 09:24 | hgbot | Status | new => resolved |
2017-01-30 09:24 | hgbot | Resolution | open => fixed |
2017-01-30 09:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a9768873924713fa9ae1a2fd704c766a97f70b1d [^] |
2017-01-30 11:03 | caristu | Note Added: 0093923 | |
2017-01-30 11:03 | caristu | Status | resolved => closed |
2017-01-30 11:03 | caristu | Fixed in Version | => 3.0PR17Q2 |
2017-03-15 20:18 | hudsonbot | Checkin | |
2017-03-15 20:18 | hudsonbot | Note Added: 0095136 |
Copyright © 2000 - 2009 MantisBT Group |