Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035303Openbravo ERPA. Platformpublic2017-02-19 13:592017-04-04 16:59
shuehner 
shuehner 
normalminorhave not tried
closedfixed 
5
 
3.0PR17Q2 
alostale
Core
No
0035303: Skip grid config related junit tests if any module shipping grid configuration is installed - part2
Same case as already reported and partially fixed in issue 34769.

The SortingFilteringGridConfiguration rely on the grid config setting being not modified for:
  private static final String BUSINESS_PARTNER_TAB_ID = "220";
  private static final String BUSINESS_PARTNER_CATEGORY_FIELD_ID = "3955";

If any grid config module is installed which modify those the tests can no longer work.

Same fix as 34769 the tests should check this and skip itself.

Attached patch copies the fix from 34769 to this 2nd junit class.

1 change: it uses @BeforeClass instead of @Before to do the check once for the whole test class and not chekc for all 1820 parametrized combination over and over again.
Note: Maybe that same change could improve the auto-skip in the 34769.
Run this SortingFilteringGridConfiguration junit test with an grid-config module instaleld i.e. the org.openbravo.retail.highvolumesconfig module.
No tags attached.
related to defect 0034769 closed alostale Skip grid config related junit tests if any module shipping grid configuration is installed. 
related to defect 0038319 closed shuehner Skip grid config related junit tests if any module shipping grid configuration is installed - part3 
diff 35303.diff (2,423) 2017-02-19 14:00
https://issues.openbravo.com/file_download.php?file_id=10463&type=bug
Issue History
2017-02-19 13:59shuehnerNew Issue
2017-02-19 13:59shuehnerAssigned To => platform
2017-02-19 13:59shuehnerModules => Core
2017-02-19 13:59shuehnerTriggers an Emergency Pack => No
2017-02-19 13:59shuehnerRelationship addedrelated to 0034769
2017-02-19 14:00shuehnerFile Added: 35303.diff
2017-02-19 14:00shuehnerNote Added: 0094447
2017-02-20 09:14hgbotCheckin
2017-02-20 09:14hgbotNote Added: 0094453
2017-02-20 09:14hgbotStatusnew => resolved
2017-02-20 09:14hgbotResolutionopen => fixed
2017-02-20 09:14hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/678eb7a367b73a2a8d4d894e18199fa72747edc5 [^]
2017-02-20 09:15alostaleReview Assigned To => alostale
2017-02-20 09:15alostaleNote Added: 0094454
2017-02-20 09:15alostaleStatusresolved => closed
2017-02-20 09:15alostaleFixed in Version => 3.0PR17Q2
2017-03-15 20:19hudsonbotCheckin
2017-03-15 20:19hudsonbotNote Added: 0095194
2017-04-04 16:59alostaleAssigned Toplatform => shuehner
2018-04-10 19:45shuehnerRelationship addedrelated to 0038319

Notes
(0094447)
shuehner   
2017-02-19 14:00   
Note: patch may need formatting to be properly applied before committing.
(0094453)
hgbot   
2017-02-20 09:14   
Repository: erp/devel/pi
Changeset: 678eb7a367b73a2a8d4d894e18199fa72747edc5
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Mon Feb 20 09:13:34 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/678eb7a367b73a2a8d4d894e18199fa72747edc5 [^]

fixed issue 35303: Skip junit test if any module shipping grid configuration

The SortingFilteringGridConfiguration rely on the grid config setting being not modified for:
  private static final String BUSINESS_PARTNER_TAB_ID = "220";
  private static final String BUSINESS_PARTNER_CATEGORY_FIELD_ID = "3955";

If any grid config module is installed which modify those the tests can no longer work.

---
M src-test/src/org/openbravo/test/views/SortingFilteringGridConfiguration.java
---
(0094454)
alostale   
2017-02-20 09:15   
reviewed + tested
(0095194)
hudsonbot   
2017-03-15 20:19   
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