Below is example script, it works for yoye scenario. x = 12/12/2008 y = split (x,"/",-1) dd=y(0) if dd>31 then if Browser().Dialog().exist then
Browser().Dialog().Winbutton().click Reporter.Reportevent micpass, "" "your comments" else Reporter.Reportevent micFail, "" "your comments" end if end if mm=x(1) if mm>12 then if Browser().Dialog().exist then Browser().Dialog().Winbutton().click Reporter.Reportevent micpass, "" "your comments" else Reporter.Reportevent micFail, "" "your comments" end if end if yy=y(3) if yy>2050 then if Browser().Dialog().exist then Browser().Dialog().Winbutton().click Reporter.Reportevent micpass, "" "your comments" else Reporter.Reportevent micFail, "" "your comments" end if end if On Thu, Dec 11, 2008 at 6:51 PM, Rama Ramesh <[email protected]>wrote: > Hi Friends, > > In my application, date format is "dd/mm/yyyy" . If input value is other > than this date format, it throws an error msg. > can anyone please tell me, how to check date validations in qtp. > > Thanks in advance. > > Regards, > Rama > > > > -- Rajanikanth.B --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
