Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Using anteater in ant

Pooja Ganapathi

2010-04-12


Author LoginPost Reply

HI,

I am using anteater testing tool in my ant build, to test few URLS as smoke
test.
So am using the <httprequest>, <match>,<responsecode>, to validate my URLS.
I am trying to capture the result of this testinng with assign attribute as
in match,which i could use later with <if> condition. The anteater manual
page (test tasks) decribes the same,
However, when i try to use the same in my build file, it errs out. below is
the code snippet.

<httprequest>
<match>
<regexp assign ="var">${var1}</regexp>
</match>
<if>
<isset property="var"/>
<then>
<do somethin>
</then>
</if>
</httprequest>

The same code example as been given in the manuals too. however, when ran it
gave the below error.
"The <httpRequest> task doesn't support the nested "if" element."

Any help please?

Regards,
Pooja




--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.