Micro Focus QTP (UFT) Forums
problem with setting up recovery scenario. - 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: problem with setting up recovery scenario. (/Thread-problem-with-setting-up-recovery-scenario)



problem with setting up recovery scenario. - pranjal - 08-02-2009

Hi, I am testing a flex application and get an error popup sometimes.
the title is 'Adobe Flash Player 10' and the text contains a big paragraph describing the error.
I am trying to set up a recovery scenario to press enter when this popup comes up. the popup has 2 buttons 'Dismiss All' and 'Continue'
i have 2 issues:
1. I used the hand pointer in the recov scenario manager to get the popup title. But it doesnt work when i run the test. So I want to set up a regular expression. i tried *Adobe* but it didnt work either.
2. For the actions to be taken, when i use the hand tool to point to continue button it registers as '&Continue'. so i just selected 'click default/enter' option. this doesnt work either.

please help me if anyone has any experience with dealing with such a popup. thanks. any help appreciated.


RE: problem with setting up recovery scenario. - basanth27 - 08-05-2009

Pranjal -
First i appreciate you for writing up a detailed issue. This helps anyone wanting to help.

Okay here are few which you can try,

1. Regular expression it this way, .*Adobe.*
2. For the sake of debugging try to manually activate the recovery scenario as, Recovery.Activate(ScenarioName)
3. If none of the above work, you will need to handle the dialog using the code. you can write a function and call it whenever the dialog pops up.

Let me know the results.

-basanth