I working in Web based application. In my application I have the datatable (Today’s Date). When I use Regular Expression on the Today’ Date cell I have the error
Ex: Today’s Date 1/26/2007
Regular Expression like this [0-9]|[0-9][0-9]/[0-9]|[0-9][0-9]/2007 (because some times month is 2 digits and date also single digit).
Please any one helps me.
Thanks a lot
What do you want to do with the regualr expression?
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
How can i check the date is displayed correct or not?
Example Today i am going to recording the script. Date is 1/26/2007 When i run the script it' working fine.
but when i ran tommorrow it is failed because date displayed 1/26/2007.
I would use in my regex this format for the date
The to do the check to see if it failed or not, I would use a GetROProperty on the Object and have a reporter.reportevent micpass/micfail in a if loop. Something like:
- How many testers do you need to switch a light bulb? None, we just report it's dark -