Exporting Test Logs to XML
PTF provides the ability to export test logs to XML. Once the logs have been exported to XML, you can compare the results in a text editor, such as NotePad or EditPlus, or view them in most web browsers. You can export all fields, or limit the export to specific fields.
To export a test log to XML:
In PTF Explorer, open the logs folder.
Right-click on a specific log.
The Export Log dialog box is displayed:
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.
Field or Control
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.
Select this check box to preview the xml.
Select this check box to include images in the exported file.
You can also set an option to automatically generate XML log files every time that tests are executed. For more information, see Configuring Execution Options in PTF Client.