Saturday, November 22, 2014

Recovery Scenarios in QTP?

What is recovery scenario in QTP?
While executing a test, some unexpected error and event may occur. To overcome this we take the help of Recovery Scenario. The Recovery Scenario Consist of following steps:
1. Create a New Scenario in Recovery Scenario Manager.
2. Identify trigger Event.
3. Set the Recovery Operations.
4. Set Post Recovery Test Run Operations.
5. Name the Scenario.
6. Associate the scenario with our test.

Trigger Event: when an unexpected events or errors invoke. Following types of Triggers:
o POP-UP window: QTP identify POP-UP window based on window title and textual content.
o Object State: object state is identified by its properties.
o Test Run Error: when test run result value is failed it is identified.
o Application Crash: this state is identified by predefined list of application.
Nature of Error can be any Error like:
o Item in List/Menu is not unique.
o Item in List/Menu is not found.
o More than one objet responding to physical description.
o Object is disabled.
o Object not found.
o Object not visible.
Recovery Operation: Operation needed to perform for running the remaining test script. Following types of Recovery Operations are there in QTP:
o Keyboard or mouse operation.
o Close Application Process.
o Function call.
o Restart Microsoft Windows.
Post-Recovery Test Run Option: after recovering from unexpected error where to start the remaining test execution. It can be any of the following:
o Repeat Current Step & Continue.
o Proceed to Next Step.
o Proceed to Next Action or component iteration.
o Restart Current Test Plan.
o Stop Test Run.
Name the Recovery Scenario.
Click Finish button Summary Screen with ‘Option to add to Current Test’ appears.
Associate recovery scenario Specifying either associate to the current test or all new test. By Selection the Location from File> Settings> Recovery> +
o Either Select from Scenario’s
o or Add Scenario.

No comments:

Post a Comment