Monday, October 13, 2008

Where Regular Expression will be used?

In QTP, delaing of Regualar Expressions and varing object descriptions can be handled by using Descriptive Programming.

Ex. of using Regular expression is:

u just record yahoo login operation and click on Inbox link.
Assume u got 10 new mails, then it shows like Inbox(10).
Read one mail, now it shows like Inbox(9). Now try to play
the recorded script. It wont work. Now use Regular
expression in Inbox link like:

"Inbox.*". At that time it wil work.

No comments: