Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035117 | Openbravo ERP | A. Platform | public | 2017-02-01 08:15 | 2017-09-21 16:49 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | high | Severity | minor | Reproducibility | random |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q4 | |
Merge Request Status | |
Review Assigned To | caristu |
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 | 0035117: unstable DataSourceWhereParameter tests |
Description | Tests in DataSourceWhereParameter are sometimes unstable.
They randomly fail with an unclear error message.
Ie.:
org.openbravo.test.datasource.DataSourceWhereParameter.datasourceWithNoManualWhereParameter[ActionRegardingSelector datasource]
Record not present
Expected: is <false>
but: was <true>
junit.framework.AssertionFailedError: Record not present
Expected: is <false>
but: was <true>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.openbravo.test.datasource.DataSourceWhereParameter.datasourceWithNoManualWhereParameter(DataSourceWhereParameter.java:212) |
Steps To Reproduce | So far unknown conditions to make it fail.
Example of failed case:
https://ci.openbravo.com/job/ret-checks-oracle/4380/testReport/junit/org.openbravo.test.datasource/DataSourceWhereParameter/datasourceWithNoManualWhereParameter_ActionRegardingSelector_datasource_/ [^] |
Proposed Solution | - Improve error message to make easier to understand what is expected and why it failed
- Make it stable |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0035166 | | closed | alostale | Allow junit testclasses and test-method to be selectively skipped (when running tests against i.e. addon modules) |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-02-01 08:15 | alostale | New Issue | |
2017-02-01 08:15 | alostale | Assigned To | => platform |
2017-02-01 08:15 | alostale | OBNetwork customer | => No |
2017-02-01 08:15 | alostale | Modules | => Core |
2017-02-01 08:15 | alostale | Triggers an Emergency Pack | => No |
2017-02-06 11:41 | shuehner | Relationship added | related to 0035166 |
2017-02-10 09:13 | alostale | Status | new => acknowledged |
2017-05-04 10:02 | hgbot | Checkin | |
2017-05-04 10:02 | hgbot | Note Added: 0096373 | |
2017-05-29 17:43 | hudsonbot | Checkin | |
2017-05-29 17:43 | hudsonbot | Note Added: 0096936 | |
2017-07-31 15:30 | alostale | Note Added: 0098277 | |
2017-07-31 15:31 | hgbot | Checkin | |
2017-07-31 15:31 | hgbot | Note Added: 0098278 | |
2017-07-31 15:31 | hgbot | Status | acknowledged => resolved |
2017-07-31 15:31 | hgbot | Resolution | open => fixed |
2017-07-31 15:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/88f469f4c2313c940e2f9dd4994fa32546319319 [^] |
2017-07-31 15:31 | hgbot | Checkin | |
2017-07-31 15:31 | hgbot | Note Added: 0098279 | |
2017-08-01 15:51 | shuehner | Assigned To | platform => alostale |
2017-08-04 09:33 | alostale | Review Assigned To | => caristu |
2017-08-04 10:40 | caristu | Note Added: 0098389 | |
2017-08-04 10:40 | caristu | Status | resolved => closed |
2017-08-04 10:40 | caristu | Fixed in Version | => 3.0PR17Q4 |
2017-09-21 16:49 | hudsonbot | Checkin | |
2017-09-21 16:49 | hudsonbot | Note Added: 0099288 | |
Notes |
|
(0096373)
|
hgbot
|
2017-05-04 10:02
|
|
Repository: erp/devel/pi
Changeset: 8baa2bae6ff2ca6433a7c850317cffe4f15fa44e
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 04 10:01:48 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8baa2bae6ff2ca6433a7c850317cffe4f15fa44e [^]
related to issue 35117: improved some error messages
so it makes it easier to anlyze logs when tests fail
---
M src-test/src/org/openbravo/test/datasource/DataSourceSecurity.java
M src-test/src/org/openbravo/test/datasource/TestComboDatasource.java
---
|
|
|
|
|
|
|
Most probably it was failing because of how it checked if record was not present in custom query selector response: the record to assert it was not returned has id "369". The check was performed by simply checking if substring was not present. It is possible 369 substring to be present not as record ID but as part of record timestamp (which is randomly genereated based on creation timestamp). |
|
|
(0098278)
|
hgbot
|
2017-07-31 15:31
|
|
Repository: erp/devel/pi
Changeset: 88f469f4c2313c940e2f9dd4994fa32546319319
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jul 28 12:10:42 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/88f469f4c2313c940e2f9dd4994fa32546319319 [^]
fixed 35117: unstable DataSourceWhereParameter tests
* Added more log information in case it fails
* Be more precise when checking for row id (asserting on "id" property instead
of on the full response
---
M src-test/src/org/openbravo/test/datasource/DataSourceWhereParameter.java
---
|
|
|
(0098279)
|
hgbot
|
2017-07-31 15:31
|
|
|
|
|
Code reviewed + tested OK |
|
|
|
|