10-03-2008, 10:30 AM
Hi
I need help in using regular expressions. I am practicing QTP and gone through some practice exercises given in the book. I am a bit confused with regular expressions. My book says that
* matches zero to any number of occurrences of the preceding character
. Matches any single character
I use regular expression on the Fax order on the sample flight application in QTP 8.2. I go to Flight app. File->Open Order. Give the order no.3 and click OK. In the flights menu bar I click file->fax order
Now I change the Fax order no: to 7 in the recorded script and the test fails. I insert a standard checkpoint on the title bar of FAX order no like this Fax order no.* and it doesn't work.
How do I insert a regular expression here. tried [0-9]+. Still not working
Any help please
Regards
Srinivas
I need help in using regular expressions. I am practicing QTP and gone through some practice exercises given in the book. I am a bit confused with regular expressions. My book says that
* matches zero to any number of occurrences of the preceding character
. Matches any single character
I use regular expression on the Fax order on the sample flight application in QTP 8.2. I go to Flight app. File->Open Order. Give the order no.3 and click OK. In the flights menu bar I click file->fax order
Now I change the Fax order no: to 7 in the recorded script and the test fails. I insert a standard checkpoint on the title bar of FAX order no like this Fax order no.* and it doesn't work.
How do I insert a regular expression here. tried [0-9]+. Still not working
Any help please
Regards
Srinivas