Micro Focus QTP (UFT) Forums
Regular expression in a 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Regular expression in a recovery scenario (/Thread-Regular-expression-in-a-recovery-scenario)



Regular expression in a 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: Regular expression in a recovery scenario - rameshrise3 - 08-12-2009

Hi,
I have a question for you, If the tiltle is keep changing, everytime you run, then only Regular Expression needs to be implemented.

and you do that as follows:
Replace [a-z] by an alphabet & [0-9] by a digit.

Thanks
Ramesh
Hi,
I have a question for you, If the tiltle is keep changing, everytime you run, then only Regular Expression needs to be implemented.

and you do that as follows:
Replace alphabet by [a-z] & digit by [0-9].

Thanks
Ramesh


RE: Regular expression in a recovery scenario - basanth27 - 08-12-2009

Ramesh - Please do not post information you have. It will be appropriate if you answer the question. The above post is a mere reply with a misleading answer.


RE: Regular expression in a recovery scenario - azeem - 08-12-2009

Hi Pranjal,

Use the below regular Expression Patterns, both will work for your window title issue.

Code:
sPattern1 = "Adobe.*"

Code:
sPattern2 = "Adobe\x20(\w+)"


Thanks,
Azeem


RE: Regular expression in a recovery scenario - pranjal - 08-21-2009

Thank you for your replies. I will try them and update about my results.


RE: Regular expression in a recovery scenario - pranjal - 09-16-2009

i tried using these reg exp:
sPattern1 = "Adobe.*"

sPattern2 = "Adobe\x20(\w+)"
But none worked.
Even when I explicitly add this line:
Recovery.Activate
it does not activate the scenario.

other recov scenarios dealing with windows dialog work fine. It is just this one that doesn't.
I am attaching an image of the popup.
Any help will be appreciated.
thanks a lot.