Posts: 20
Threads: 9
Joined: Jul 2009
Reputation:
0
09-23-2009, 10:18 AM
Hi all...
I m recordng the application flight reservation.i opened the order and i check the date field with text checkpoint.Again i configured the date by [0-1][0-9]\[0-3][0-9]\[0-1][0-9] is this decalring is write. when i run the application it says failed.
please help me out
Posts: 20
Threads: 9
Joined: Jul 2009
Reputation:
0
09-23-2009, 04:22 PM
thankz its running...but i dont understand the "(0[1-9]|1[012])[ /](0[1-9]|[12][0-9]|3[01])[ /]([0-9]{2})"
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
09-23-2009, 04:45 PM
Saket -
I maybe wrong, but i believe this post may need to be under QTP Regular Expression ?
Rajesh - Please choose the appropriate category from the next time to better classify the posts.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-23-2009, 04:46 PM
(This post was last modified: 09-23-2009, 04:50 PM by Saket.)
This is the another pattern for 'mm/dd/yy'. you can create different patterns for your validation.
search this forum, I am sure there are other patterns discussed earlier for date.
You are right Basanth, It was in my mind but somehow I missed to move.
Thanks Buddy.
Thread has been moved!!
Posts: 20
Threads: 9
Joined: Jul 2009
Reputation:
0
09-23-2009, 05:30 PM
Thankz saket...
one more doubt is using the ^. i scrapped some lines in notepad and saved.after that using qtp , i checked with text checkpoint and configured using the regular expression using the ^ab....stiil my output is fail..
Please provide me an good example with web based application and window based application.
Is that ^ only for character or numeric.
Thankz in advance
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-23-2009, 05:40 PM
Your query is not clear to me, Would you like to elaborate the query, exactly what do you need to verify using ^.
and for what purpose you need an example.
Please note that if the new query is not relevant with the current thread query, you should open a new thread for new query.