I'm having 2 recovery scenarios-RS1 & RS2, associated to my QTP script. RS1 has post-recovery operation as 'Repeat current step and continue' and RS2 has post-recovery operation as 'Proceed to next test iteration'. When an error occurs RS1 is invoked which handles the error occurred but fails to perform the post recovery operation(Repeat current step and continue) since RS2 gets invoked immediately after RS1 and hence RS2's post recovery operation(Proceed to next test iteration) gets performed. Is there any way i can avoid the RS2 getting invoked after RS1 has successfully handled the issue??
One thing u can try is write a conditional statement in RS1 and based on the outcome call RS2 if u achieve the desired output!! I mean u need to write a function in RS1 that uses QTP AOM & Recovery object to enable/disable RS2.
Though RS2 gets disabled or removed through the code it gets executed. I think once an error occurs QTP invokes all recovery scenarios in a queue so that the changes made to any RS will not get reflected at that error point...!!
Please try it once n let me know if that's workin for u...