Exporting Test Results from QTP

You can export the run results from the Test Results window to an HTML file. This enables you to easily view the run results when you are not in a QuickTest environment. For example, you can send the HTML file containing the run results in an e-mail to a third-party who does not have QuickTest installed. You can select the type of report you want to export, and you can also create and export a customized report.

To export the run results:

  1. Choose File > Export to HTML File. The Export to HTML File dialog box opens.
  2. Select an Export range option:
    • All—Exports the results for the entire component.
    • Selection—Exports run result information for the selected branch in the test results tree.
  3. Select an Export format option:
    • Short—Exports a summary line (when available) for each item in the test results tree. This option is only available if you selected All in step 2.
    • Detailed—Exports all available information for each item in the test results tree, or for the selected branch, according to your selection in step 2.
    • User-defined XSL—Enables you to browse to and select a customized .xsl file. You can create a customized .xsl file that specifies the information to be included in the exported report, and the way it should appear. For more information, see Customizing the Test Results Display.

Note: The Export format options are available only for run results created with QuickTest version 8.0 and later.

  1. Click Export. The Save As dialog box opens, enabling you to change the default destination folder and rename the file, if required. By default, the file is named <name of component> [<name of run results>], and is saved in the run results folder.
  2. Click Save to save the HTML file and close the dialog box.

No comments: