Posts: 34
Threads: 13
Joined: Dec 2008
Reputation:
0
08-31-2009, 04:51 PM
hi
i have created a recovery scenario
but how would i be able to call this scenario through my script so that whenevr the popup occurs it perform some action
Thanks
Rames Tahiiani
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-31-2009, 04:55 PM
If the Recovery Setting has been set to "On Every Step" then it will "ping" back and forth to check if the pop-up occurs and if it does then it will perform the specified action.
Programmatically it is done this way,
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: 61
Threads: 1
Joined: Jul 2009
Reputation:
0
08-31-2009, 05:29 PM
Hi Ramesh,
Associate this recovery scenario with your script using File->Settings->Recovery-> Add this QRS file & set "On Every Step", then this recovery will be triggered.
Posts: 34
Threads: 13
Joined: Dec 2008
Reputation:
0
08-31-2009, 05:32 PM
Thanks for the reply
so u mean to say that unlesss i give recovery.Actvate command the recovery scenarios wont get activated even i have added them in the settings
Is there any way to invoke these recovery scenarios through the code instead of adding them into the setting -> recovery
thanks
Ramesh Tahiliani
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
08-31-2009, 05:46 PM
Well, If you have a recovery scenario for pop up then run AUT under the condition that the pop will be appeared and then you will see the recovery scenario get activated and run.
Posts: 34
Threads: 13
Joined: Dec 2008
Reputation:
0
09-01-2009, 10:28 AM
For VBS file : we can execute the file using ExecuteFile which will load the library file
dont we have the same mechanism for QRS (do we always need to associate the QRS from the GUI to the test )
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
09-01-2009, 12:23 PM
Saket -
Repositories can also be added during runtime using the "RepositoriesCollection" Object.
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: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-01-2009, 12:28 PM
Sorry Ramesh, That was Typo, what I meant was recovery instead of repository.
Thanks for pointing out, Basanth.