QTP Test Results

After running/executing the test, QTP provides a test results window and the user (Test Engineer) has to analyze the test result.

Results Locations

  1. New run result folder: This option displays the default path and folder name in which the results are saved. Every time you run a test, a new folder is created. By default, the results for a QuickTest test are stored in the test folder. You can enter a new path by typing it in the text box or by the browse button to locate a different folder (the folder must be new and empty).
  2. Temporary run results folder: Saves the run results in a temporary folder but this option overwrites the previously existing result saved in this folder.

test result1.jpg

Status of the Results
  1. Fail
  2. Warning
testresult3.jpg

Running your entire test: When you start to run, a dialog box opens to enable you to specify the location for the results and to enter the values for any test parameters you have defined.

To run a test
  1. If your test is not already open, select File>Open>test.
  2. Click the run button in the toolbar, or select Automation>Run. The run dialog box opens.
  3. In the Run dialog box, specify the results location and the input Parameters values (if applicable) for the run session.
  4. Click OK. The run dialog box closes and the run session starts. By default, when the run session ends, the test results window opens.

test result2.jpg

Running part of your test: This enables you to check a specific section of an application or to confirm that a certain part of your test runs smoothly.
You can use the Run Current Action option to run a single action in your test. Using Run Current Action ignores any iterations. However, if the action contains nested actions, QuickTest runs the nested actions for the defined number of iterations.

To run a test or action from a selected step
  1. Make sure that your application is in a state matching the action or step you want to run.
  2. Select the action or step where you want to start running the test:
    • In the Test flow pane, select the action.
    • In the Keyword View, highlight a step or action row. 
    • In the Expert View, place your cursor in a line of VBScript.
  3. Select Automation > Run from Step or Run Current Action, or right-click and select Run from step. The run dialog box opens.
  4. In the run dialog box, choose where to save the run session results, and define any input parameters you want to use,
  5. Click Ok. The run dialog box closes and the run session starts.

test result4.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all