If you just want to make sure the URL for a website
returns a valid HTTP code (i.e. the website is
responsing) try the <waitfor> task.
We do the following to test that our Tomcat App
servers are up:
<waitfor maxwait="30" maxwaitunit="second"
timeoutproperty="server.is.unavailable">
<http url="${server.url}"/>
</waitfor>
<fail if="server.is.unavailable" message="Sorry,
the server at ${server.url} is unavailable at this
time..."/>
--- [EMAIL PROTECTED] wrote:
>
> Is there a way through ant to do
>
> a) Login in to a website - success or failure based
> on status codes.
> b) To test hyperlink's to check if the applications
> are running.
>
> Any ideas would be highly appreciated.
>
> Thanks
> srikrishna
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]