Posts: 6
Threads: 3
Joined: May 2008
Reputation:
0
06-12-2008, 06:13 PM
Hi,
I want to know more about recovery scenarios available in QTP.
I want to set for such scenarios in my cur project.
I want to know detailed method to set it.
I searched in Blog i couldnt get it.
Please help me.
I have 2 yrs exp with QTP.
Thanks in advance,
Shahin
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
06-12-2008, 06:37 PM
Did you go thru User Guide?
Posts: 6
Threads: 3
Joined: May 2008
Reputation:
0
06-13-2008, 06:28 PM
Yes,
But the pbm i got is i tried to implement to this, issue i got is:
1.I tried to create a hard coded object, means a web button which is not in my repository and tried to run it
2. t got the required error while running
3. but until to press stop, skip or debug i m unable to access the Tools menu, so how do i record it in the Triggers part so that it will handle it?
here i m stuck up !
pls help
thanks in advance
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
06-13-2008, 06:39 PM
One way is to write a small function using DP and the calling it from recovery scenario. (Using the function call in recovery scenario).
second way if to create recovery scenario for the pop-up (I am not sure about this though)
Posts: 159
Threads: 1
Joined: Apr 2008
Reputation:
0
06-14-2008, 02:19 PM
Hi,
Follow these steps..
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.
Posts: 6
Threads: 3
Joined: May 2008
Reputation:
0
06-16-2008, 11:06 AM
Hi,
Thanks alot.
my actual doubt was,
does the recovery manager help us to recover our web appln errors or QTP errors?
can we handle QTP errors with tht?
if its QTP error how can i record it while i get the error only when i run the script (tools menu will be disableled)
pls help me
shahin
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
06-16-2008, 06:20 PM
If it is QTP Run Error, then select the Trigger event as Test Run Error. Once you select this option, you will be shown all possible QTP Errors in the next screen. Or you can select "Any Error (or something like that)", and this will be for any Test Run Error by QTP.
Posts: 23
Threads: 10
Joined: Aug 2009
Reputation:
0
09-15-2009, 01:16 AM
shahin, I have the same issue, although it is in the next step of setting up recovery scenario.
The problem is that when the qtp error popup with 'stop', 'retry', 'skip', 'debug' buttons shows up, the 'Resources' button on toolbar is disabled. So how can I set up the Recovery operation for 'Keyboard or mouse operation' if I want to record one of these 4 buttons click?
please help. thanks.
(ps: moderators, i wasnt sure if i needed to start a new thread for this. if so please let me know if i do. thanks)