Ajax Panels: Testing Without the Rest of the Page

posted May 11, 2012, 3:14 PM by Eric Patrick   [ updated May 11, 2012, 3:16 PM ]
When developing complicated pages (such as Valuation Summary), it can be annoying to wait for the entire page to load or conditions to be met simply to render the AJAX panel you are working on.

You can unit test AJAX panels using:

Theme.ashx/Wrap?ClassName={Table}&Method={Method}&{Other Parameters}

For example, assume that on the Valuation Summary panel, you have the following panel:

<div data-behavior="ObjectBind" data-objectbind-options="{{ 'class': 'qbo3.ImportFormObject', 'method': 'RenderEdit', 'data': {{'ID': {//ImportFormID} }} }}">.</div>

You can test this from:


All the Wrap method does is mimic the div tag above.

This allows you to unit test specific statements and XSLTs without the need to go through the machinations we make users go through for data control. This is not good for regression testing, since it skips other controls you may choose to implement in Summary XSLTs.