I tried to implement Recovery Scenario Mechanism for the security Alert pop-up window as in my app these windows can pop-up any time. I used Recovery Scenario manager to capture it and specified to Click "Yes" and after that proceed with next step.
Added this .qrs file to my test(Test->Setting->Recovery->+->, specified to activate "on every step".
This is working fine only first time and after that recovery mechanism is not being used.
I tried in one scenario the following code:
If(Browser("Browser").Dialog("Security Alert").Exist(8)) then
But to use this, I should know when am i expecting Security window which is not the case.
Two thing writing a code does not make a recovery scenario. What you have written cannot be used as when don't know at which position the Security window may popup, thats why me make Recovery Scenarios. Second QTP provides some recovery scenario itself, you can browse to the QTP installation folder and there will be Qrs file on recovery folder. Add that to your script and then you can see all the recovery scenarios present in that and you can also see how they were created or what are triggers and action for the same.
I have similar issue with recovery scenario. Instead of giving securtiy alert as my pop up, I have given one of the pop up windows in my application. It is not working. I have done all the steps mentioned in the help file, without missing anything. Please help!