In-Line Testing

Navigation:  Formulas >

In-Line Testing

Previous pageReturn to chapter overviewNext page

In-line Testing is conducted from the decision model palette. By clicking on a Test Inputs button ButtonTestInputs in the tool bar you will open a Document Builder Pane to the left of the workspace.

 

Tip

Alternatively the 'Ctrl' + 'Shift' + 'D' shortcut keys opens the Debugger Input Documents Tab

 

3-33InlineTesting

Figure 3-30(a): Inline Testing Document Builder or 'Debugger' Pane.

 

Here, you can enter data directly in to the document builder pane, or import a pre-prepared 'Input.xml' file to test the processing of the decisions/groups within a decision model, make any relevant changes and see the `realtime' effect of these changes.

This process is known as `debugging'.

The testing process is conducted using the C# runtime and generator.

The document builder also includes an Xpath utility that allows users to find information within the displayed XML document via Xpath 2.0 queries. This can be accessed via the 'Toggle Xpath Utility button on the toolbar.

 

3-30(b)XpathToggle

Figure 3-30(b): Xpath Utility toggled on in the debugger.

More information on Xpath 2.0 can be found at the following links: https://www.w3schools.com/xml/xpath_intro.asp and http://www.w3.org/TR/xpath20  

The Document Builder's right-click menu contains two options to quickly view one or more Input document values in the XPath Utility. The Show in XPath Browser option copies the unqualified XPath to the Browser. All instances of a repeating node will be displayed. The Show this in XPath Browser option copies the qualified (indexed) XPath to the Browser:

Figure 3-30(c) Show in XPath Browser

Figure 3-30(c) : Show (this) in XPath Browser

 

The XPath is added to the combo box list when the control loses focus. The XPath's in the list can be selected again for display in the XPath browser.

Figure 3-30(d) XPath Browser Combobox

Figure 3-30(d) : XPath Combo box

The following topics provide a guide to conducting an in-line test.