Skip to Main Content
Return to Navigation

Exporting Test Logs to XML

 

PTF provides the ability to export test log to XML. Once the logs have been exported to XML, the user can compare the results in a text editor, such as NotePad or EditPlus. The user can select which fields to exclude from the XML.

To export a test log to XML:

  1. In PTF Explorer, open the logs folder.

  2. Right-click on a specific log.

  3. Select Export.

The Export Log dialog box is displayed:

Image: Export Log Dialog Box

This example illustrates the fields and controls on the Export Log Dialog Box. You can find definitions for the fields and controls later on this page.

Export Log Dialog Box

On the Export Log dialog, the user can see the structure(schema) of the Log XML, include/exclude elements to export and set the order of the elements, also the user is able to preview the exported result.

By default, all the timestamp(lastUpdate element in the schema tree) fields are excluded, as well as extra information such as ExecutionOptions, LogParentLineID, and so forth.

File Path

Enter the file path. The file name is automatically generated based on the test name and log number. For example PB_RUN_PROCESS-LOG-6.xml.

Select Elements to Export Column

By default all items are selected, click the check box to deselect specific items.

Preview

Select this check box to preview the xml.

Export Images

Select this check box to include images in the exported file.