QTP Forums

Full Version: Regular expression in a recovery scenario
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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
(08-12-2009 10:34 AM)rameshrise3 Wrote: [ -> ]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
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.
(08-12-2009 01:01 PM)basanth27 Wrote: [ -> ]
(08-12-2009 10:34 AM)rameshrise3 Wrote: [ -> ]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
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.

Hi Pranjal,

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

sPattern1 = "Adobe.*"

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


Thanks,
Azeem
(08-12-2009 10:09 PM)azeem Wrote: [ -> ]
(08-12-2009 01:01 PM)basanth27 Wrote: [ -> ]
(08-12-2009 10:34 AM)rameshrise3 Wrote: [ -> ]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
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.

Hi Pranjal,

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

sPattern1 = "Adobe.*"

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


Thanks,
Azeem

Thank you for your replies. I will try them and update about my results.
(08-21-2009 02:29 AM)pranjal Wrote: [ -> ]
(08-12-2009 10:09 PM)azeem Wrote: [ -> ]
(08-12-2009 01:01 PM)basanth27 Wrote: [ -> ]
(08-12-2009 10:34 AM)rameshrise3 Wrote: [ -> ]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
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.

Hi Pranjal,

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

sPattern1 = "Adobe.*"

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


Thanks,
Azeem

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

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.
Reference URL's