Check Recovery Status - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Check Recovery Status (/Thread-Check-Recovery-Status) |
Check Recovery Status - chanda Hemke - 06-04-2010 how to verify whether my recovery sceanario is triggered or not and want to call some other function like:- Code: If RecoverySceanriotriggered=True then RE: Check Recovery Status - guin.anirban - 06-04-2010 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. RE: Check Recovery Status - basanth27 - 06-07-2010 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. RE: Check Recovery Status - guin.anirban - 06-07-2010 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? RE: Check Recovery Status - basanth27 - 06-08-2010 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. RE: Check Recovery Status - guin.anirban - 06-08-2010 Thanks Basanth. I will try to implement the same. RE: Check Recovery Status - chanda Hemke - 06-10-2010 Thnks Basanth for the solution.. RE: Check Recovery Status - basanth27 - 06-10-2010 Chanda - You are most Welcome |