How to handle the exceptions using recovery secnario manager in Qtp? 

Showing Answers 1 - 4 of 4 Answers

Kalpana Naidu

  • Aug 17th, 2005
 

You can instruct QTP to recover unexpected events or errors that occured in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps 
1. Triggered Events 
2. Recovery steps 
3. Post Recovery Test-Run 

  Was this answer useful?  Yes

Rajesh Ravisankar

  • Aug 31st, 2005
 

There are 4 trigger events during which a recovery scenario should be activated. They are 
A pop up window appears in an opened application during the test run. 
A property of an object changes its state or value. 
A step in the test does not run successfully. 
An open application fails during the test run. 
These triggers are considered as exceptions and more details regarding how to use Recovery Manager is given in the QTP User Guide. Since there is hardly any space to put up snapshots.Thanks.

  Was this answer useful?  Yes

Rituparna Ingawale

  • Mar 17th, 2007
 

1. Go to TOOLS -> Recovery scenario manager.
2. Select the trigger event that caused the error(it may be a pop up window).
3. Identify the name of the window with the help of POINTING HAND.
4. Choose the operation type : KEYBOARD OR MOUSE OPERATION.
5. Select the action with the help of POINTING HAND.(e.g. Click on OK button to close the window.)
6. If you want to add another action then keep "Add another recovery scenario" check box selected else de select it.
7. In the "Post recovery test run option" select "Proceed to next test iteration"
8. Give scenario name & description & click on finish button.
9. Save the scenario.
10. Go to TEST->SETTINGS->SCENARIO TAB....and add the saved scenario.
11. Click on APPLY & OK button......now your test run smoothly.

Madhukar

  • Apr 11th, 2007
 

hi all,
           I followed the steps given this but my problem arises after when i try to use object state or test run error during trigger event and then selecting the functional call during the Recovery Operation. It asks the User to select a Library File the Prototype given in the QTP help menu like

OnRunStep
(
[in] Object as Object: The object of the current step.
[in] Method as String: The method of the current step.
[in] Arguments as Array: The actual method's arguments.
[in] Result as Integer: The actual method's result.
)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions