Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
06-04-2010, 05:11 PM
(This post was last modified: 06-04-2010, 05:19 PM by guin.anirban.)
1. Either during setting of recovery scenario you can set recovery operation as desired Function Call. For that you have to define the desired function in your library.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
06-07-2010, 02:14 PM
Yes it is possible. There is a object called Recovery which you can use to perform specific actions related to Recovery scenarios. For eg :
Recovery.Activate will activate the recovery scenario at that stage.
MyCurrentStatus=Recovery.Enabled -- Will check if the recovery scenario is enabled...
Can you build the logic now ?
PS : Information obtained from QTP help.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
06-07-2010, 04:08 PM
Hi Basanth,
Thanks for your valuable suggestion.
During run time we can use Recovery object of the AOM. We can activate as well as make that enable during run time. But where the checking will happen?
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
06-08-2010, 08:46 AM
AOM is not the only way to do it. You can explicity activate it in your script based on the scenario name. when you activate it, use a counter to determine by a flag that the process is completed.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
06-08-2010, 01:38 PM
Thanks Basanth.
I will try to implement the same.
Posts: 15
Threads: 5
Joined: Jun 2010
Reputation:
0
06-10-2010, 11:09 AM
Thnks Basanth for the solution..
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
06-10-2010, 01:59 PM
Chanda -
You are most Welcome
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.