QTP/UFT Support Tip: How to customize the run results report

Hello everyone,

 

Extensible Stylesheet Language (XSL) provides the tools to describe exactly which run result information to display and exactly where and how to display, print or export it. The .css file referenced by the .xsl file can be modified to change the appearance of the report (for example, fonts, colors, and so forth).

 

It is easier to modify the existing .xsl and .css files provided with the Run Results Viewer application, instead of creating the customized files from scratch. The files are located in the HP\Run Results Viewer\dat folder (i.e. C:\Program Files (x86)\HP\Run Results Viewer\dat), and are named as follows:

 

PShort.xsl: Specifies the content of the run results report printed, or exported to an HTML/DOC/PDF file, when you select the Short option in the Print or Export To File dialog boxes.
PDetails.xsl: Specifies the content of the run results report printed, or exported to an HTML/DOC/PDF file, when you select the Detailed option in the Print or Export To File dialog boxes.
PResults.css: Specifies the appearance of the run results print preview. This file is referenced by the above .xsl files.

 

To use a customized XSL file:

 

  1. In the Run Results Viewer go to File > Export To File.
  2. In the Export Format section select "User-defined XSL" and browse to the customized .xsl file.
  3. Click on Export.

 

Related article: KM00657344

 

Thanks

  • The given link is broken. Can you provide the right link again?

    Question: Is there a way to customize UFT reports to give different layers of reporting. Say based on the function calls and their depths. So if I have two custom functions, and each of them call 2 more functions, than I would like to see :

    ->a run report (with overall status), and on a  level down I should see two fn's and then within each fn, two more layers

          ->  fn 1 -> fn a -> fn b

          -> fn2 -> fn c -> fn d

    If not possible, with custom reports, then I would have to create something myself but was hoping to see if I can reuse what UFT has to offer? Thanking you in anticipation. 

    Pramod