Go the the archives. We had this discussion last week and ALL the
details you need to put together a real solution are there.
(Testing dd>31 does not catch bad dates like 31/02/2001. The scripts
from last week will answer your issue.)

On Dec 13, 7:27 am, "rajanikanth b" <[email protected]> wrote:
> Below is example script, it works for your 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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to