Sunday, 24 November 2013

Recovery Scenario in QTP with Example

Recovery scenarios are used to handle the unexpected events that might occur while test execution is going on by QTP.

Please find below the steps that have to be followed to create the recovery scenario in QTP.

First of all You have to open the recovery scenario manager.  In resources menu you will find  recovery scenario manager option. Click on that and you will get to see below window.

Step1: Open Recovery  Scenario Manager.
Using recovery scenario manager you can create new recovery scenarios and store it in a file with .qrs extension.
One qrs file may contain multiple recovery scenarios.

To create new recovery scenario, click on the button circled with red color. It will open recovery scenario wizard.


Step 2: Open Recovery  Scenario Wizard.
Recovery scenario wizard shows the steps involved in creating the recovery scenario. Click on Next

Step 3: Select Trigger Event.
There are 4 types of the trigger events.
  1. Pop up window
  2. Object State
  3. Test Run Error
  4. Application Crash



Step 4: Specify the trigger Details.
In this step you have to specify more details about the trigger. For example if you selected pop up window in trigger event above, you will have to provide the title or text of the pop up as shown below.



Step 5: Recovery Operation.
After specifying the trigger event, you have to provide the recovery operation. There are 4 types of the recovery operations.
  1. Keyboard or mouse operation
  2. Close application process
  3. Function Call
  4. Restart Microsoft Windows





 Step 6: Post Recovery  Operation.
In Post Recovery You can tell what step should be executed after recovery is done by QTP.


 Step 7: Name  the Recovery  Scenario.
You have to give the name to recovery scenario in this step

 Step 8: Finishing the recovery scenario.
This is last step. You can add this scenario to current test in this step.



 Once you click finish recovery scenario manager window will be shown where you can save the qrs file.

Please note that to activate recovery scenario, you have to go to test settings.

You may also like below topics on Recovery Scenarios.
  1. How to Use Recovery Scenario Manager
  2. qrs file in QTP
  3. How to handle pop ups in QTP


Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.

No comments:

Post a Comment

Please Leave your reply. We value your feedback and inputs

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.