Mercury Test Results Help > Analyzing Test Results in the Unified Report View > Customizing the Test Results Display PreviousNext

Customizing the Test Results Display

The results of each WinRunner run session are saved in an .xml file (called results.xml). This .xml file stores information about each of the test result nodes in the left pane of the display.

Each node in the test results tree is an element in the results.xml file. In addition, there are different elements that represent different types of information displayed in the test results. The sample results.xml shows the basic structure of the results.xml file. In this image the Step element nodes are collapsed. You can view the child elements and attributes of the Step element by viewing the results.xml file of a test containing a variety of different types of steps.



Note that if your test calls a QuickTest test, then the structure of the nodes under the QuickTest call are somewhat different. For more information on the QuickTest results xml structure, refer to the QuickTest Professional documentation.

You can take test result information from the .xml file and use XSL to display the information you require in a customized format, such as for printing or viewing a print preview.

XSL provides you with the tools to describe exactly which test result information to display and exactly where and how to display/print it. You can also modify the .css file referenced by the .xsl file, to change the appearance of the report (for example, fonts, colors, and so forth).

You may find it easier to modify the existing .xsl and .css files provided with WinRunner, instead of creating your own customized files from scratch. The files are located in <WinRunner Installation Folder>\UnifiedReport\dat, and are named as follows:

  • PShort.xsl. Specifies the content of the test results report printed when you select the Short option in the Print dialog box.
  • PDetails.xsl. Specifies the content of the test results report printed when you select the Detailed option in the Print dialog box.
  • PSelection.xsl. Specifies the content of the test results report printed when you select the Selection option in the Print dialog box.
  • PResults.css. Specifies the appearance of the test results print preview. This file is referenced by all three .xsl files.

PreviousNext



Copyright 2007 Mercury Interactive Corporation