Friday, July 16, 2010

Tutorial 29 - All about Recovery Scenario in QTP

This tutorial demonstrates Recovery Scenarios in QTP



Video Transcript with Key Takeaways highlighted

Using Recovery Scenarios you can instruct QTP to recover from unexpected events and errors that occur in your testing environment during a run session.

Recovery scenario become crucial for large tests, which run unattended and are paused until recovery operation, is performed increasing the test execution time.

There are 6 steps involved in creating a recovery scenario

* 1) In QTP , Select Resources > Recovery Scenario Manager .Create new Scenario
* 2) Specify the Trigger Event. A Trigger Event is an event that interrupts your run session
* 3) Specigy the Recovery Operation which is the corrective action you take when trigger happens
* 4) Specify Post-recovery test run options which specify how to continue the run session after Quick Test Professional has identified the event and performed all of the specified recovery operations.
* 5) Check and verify Summary of the scenario you created.
* 6) Add Recovery Scenario to your test using File > Settings > Recovery.

The test results window show the details of the recovery scenario

Use can also use statements
On Error Resume Next :
On Error Go to 0 :

to handle errors in your script

No comments:

South Beach Smoke E-Cigarette - The Better Smoking Choice