Exporting Test Results in QTP

Test Result Window: After running the test, you can view the result in the Test Results window. The Test Results window opens when a run session is completed.

You can open the Test Results window as a standalone application from the Start Menu. To open the Test Results window, select "Start | Programs | QuickTest | Test Results Viewer".

The left pane in the Test Results window contains the run results tree. The right pane in the Test Results window contains the details for a selected step in the run results tree. The details for a selected step may include a test summary, step details, a still image of your application, a movie of  your application, or results of system counters.

If the test run is in Maintenance Run Mode, the result details tab contains a Maintenance Summary. The Maintenance Summary lists the number of objects that were updated and added to your test. It also lists the number of updated and commented steps in your test.

The Object Repository Changes report lists the specific changes that the Maintenance Run Wizard made to the object repository and contains the following sections:

Added Objects: Lists the objects that were added to the object repository by the Maintenance Run Wizard.
Object with Changed Descriptions: Describes the changes to the object properties carried out by the Maintenance Run Wizard.

import.jpg

Jumping to a step in QuickTest

You can view the step in QuickTest that corresponds to a node in the run results tree. To view the step in the test case that corresponds to a node:

  1. Select a node in the run results tree.
  2. Perform one of the following:
    • Click the jump to step in QuickTest button from the Run Results toolbar.
    • Right-click and select jump to step in quicktest from the context-sensitive menu.
    • Select View -Jump to Step in QuickTest.
  3. The QuickTest Window is activated and the step is highlighted
Exported Test Results

You can export the test result details to an HTML, DOC or PDF file. This enables you to view the test results even if the QuickTest environment is unavailable. For example, you can send the file containing the test results in e-mail to a third-party who does not have QuickTest installed. You can select the format of the report you want to export, and you can also create and export a customized report.
For exporting a file:
  1. Select "File | Export report". The Export Report dialog box opens.
  2. Select an export range option:

    • All: Exports the results for the entire test.
    • Selection: Exports test result information for the selected branch in the run results tree.
  3. Select a file type from the type list.
  4. Select an Export format option:

    • Short: Exports a summary line for each item in the run results tree. The short report does not include still images associated with the steps in your run results. This option is only available if you selected All in step2.
    • Detailed: Exports all available information for each item in the run results tree, or for the selected branch, according to your selection in step2. The detailed report includes still images associated with the steps in your run results.
    • User-defined XSL: Enables you to browse to and select a customized .xsl file.

      TestReport_Export.png

  5. Click OK: The save As dialog box opens. By default, the file is named <name of test> [<name of run results>], and is saved in the test results folder. You can change the default destination folder and rename the file, if required.
  6. Click save to save the file and close the dialog box. 

    run.PNG
                     


Similar Articles