Reading:  

Quick Test Professional - The starters Guide


Recovery Scenarios

Sometime while executing the code we may get some unexpected errors.

Recovery Scenarios are used to recover the test and continue executing the next line of the code from the unexpected error.

Follow below steps to create Recovery Scenario:

Step 1: Click Resources then select Recovery Scenario Manager.

launch recover scenario wizard QTP

Step 2: After Clicking "New" Recovery Scenario, the Recovery Scenario Wizard popup.

recover scenario wizard QTP

Step 3: Now we need to choose the Trigger Event. It corresponds to event which arises.

 Trigger events are:

  • Pop-Up Window
  • Object State
  • Test Run Error
  • Application Crash

 

Step 4: Recovery Operation has the following Operations.

 

recover scenario wizard QTP recover operation

 

Step 5: Here we need to specify the Post Recovery Operation.

 

recover scenario wizard QTP test run options

 

Step 6:  Enter scenario name and added to the Test so that it will be activated.

 

recover scenario wizard QTP Name and description

 

Step 7: Check "Add Scenario to the current Test" check box, then click "Finish".

 

recover scenario wizard QTP

 

Step 8: The Recovery Scenario added will be as shown, now click “Close" Button to continue

 

Recover scenario manager QTP

 

Step 9: Save Recovery Scenario opens. It will be saved with the extension .qrs and the wizard would be closed.

 

Recovery Scenario QTP

 

Verification:

The Recovery Scenario created should be part of the test and can be verified:

 Go to "File" select "Settings" select "Recovery" Tab

 

verification recovery QTP

 

 

Description

In this tutorial, we will get to know Quick test professional. At the time of writting QTP is at version 12.2. This tutorial is subdivided into multiple parts as shown below

  • What is QTP
  • Automating tests
  • Environment
  • Recording and Playback
  • Object Repository
  • Actions
  • Data Table
  • Checkpoints in QTP
  • Synchronization
  • Smart Identification
  • Debugging and Error handling
  • Recovery Scenarios
  • Environment Variables
  • Library Files
  • Test Results
  • GUI Objects
  • Virtual Objects
  • Accessing Databases
  • Working with XML
  • Descriptive Programming
  • Automation Object Model
  • A work on Frameworks

Leave your feedback for us, Feedback help us improve our tutorials.

 



Prerequisites

Some knowledge on Windows OS and VB Script is recommended

Audience

Students who wish to learn QTP

Learning Objectives

Learn QTP

Author: Subject Coach
Added on: 16th Mar 2015

You must be logged in as Student to ask a Question.

None just yet!