Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017037Openbravo ERPA. Platformpublic2011-05-06 10:352011-06-03 13:03
elopio 
mtaal 
highmajoralways
closedfixed 
5
pi 
 
Core
No
0017037: Improve testability of collapsible sections
For the automation framework, it is not so clear how to tell what is the corresponding section for a given field.

It is possible to loop on the fields array of the OBForm object, looking for all
the OBSectionItem objects. And then get the itemIds array of those
objects and check if my field is there. But this is slow and not so
nice.
It would be much easier if the fields could contain a reference
to the OBSectionItem they belong to. For example, on the Sales Invoice
Header tab, do something like:
window.OB.TestRegistry.registry["org.openbravo.client.application.ViewForm_263"].getField('documentStatus').section

and get the OBSectionItem corresponding to the Status section.

There might be other possible and easier solutions. This is just the suggestion that came to my mind.
testability
related to feature request 0017109 scheduled Triage Platform Base Assign meaningful and stable names to sections 
Issue History
2011-05-06 10:35elopioNew Issue
2011-05-06 10:35elopioAssigned To => mtaal
2011-05-06 10:35elopioModules => Core
2011-05-06 14:22hgbotCheckin
2011-05-06 14:22hgbotNote Added: 0036511
2011-05-06 14:22hgbotStatusnew => resolved
2011-05-06 14:22hgbotResolutionopen => fixed
2011-05-06 14:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ebead384d08cfd22bbd41c7d6d5bd75acef79bdc [^]
2011-05-11 08:46elopioRelationship addedrelated to 0017109
2011-05-11 08:57elopioTag Attached: testability
2011-05-12 13:30hudsonbotCheckin
2011-05-12 13:30hudsonbotNote Added: 0036845
2011-06-03 13:03iperdomoNote Added: 0037962
2011-06-03 13:03iperdomoStatusresolved => closed

Notes
(0036511)
hgbot   
2011-05-06 14:22   
Repository: erp/devel/pi
Changeset: ebead384d08cfd22bbd41c7d6d5bd75acef79bdc
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri May 06 14:21:52 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ebead384d08cfd22bbd41c7d6d5bd75acef79bdc [^]

Fixes issue 17037: Improve testability of collapsible sections

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
---
(0036845)
hudsonbot   
2011-05-12 13:30   
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/c40e579fcd38 [^]

Maturity status: Test
(0037962)
iperdomo   
2011-06-03 13:03   
Tested on pi @ rev 3723e0cd3861