skip to main content
Corticon Studio: Quick Reference Guide : Ruletests : Ruletest window : Exporting a testsheet to an XML document
 

Try Corticon Now
Exporting a testsheet to an XML document
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. Toggle the option off to include transients in the exported document.
Consult the Server Integration & Deployment Guide for more information about the sections of the XML document, including the important decisionServiceName parameter shown in line 2 of the CorticonRequest tag, below.

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.