Exporting Testsheets into XML documents can be useful for a few reasons:

  • For use as a template for structuring much larger data sets for subsequent XML Import (as described above).
  • To generate an XML data payload to test a deployed Rulesheet (a Decision Service on the Server).

Input

To generate the Input column of a testsheet to well-formed XML, choose the menu command Testsheet > Data > Input > Export Request XML.

The sample XML file shown below is a direct export of the Input Testsheet created in Populating the Input Testsheet section. Notice the hierarchical structure.

Note: You can chose to exclude transients when you export Testsheets to XML using the Exclude Transients option. For example, select Ruletest > Testsheets > Data > Input > Exclude Transients to set your preference to exclude transients. Clear the option to include transients in the exported document.

You must replace the decisionServiceName parameter, shown in line 2, with the Decision Service this request will call.

Output

To generate the Output panel of a testsheet to well-formed XML, choose the menu command Testsheet > Data > Output > Export Response XML.

Expected

To generate the Expected panel of a testsheet to well-formed XML, choose the menu command Testsheet > Data > Expected > Export Response XML.