ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject Re: Expose nested tasks in Parallel and Sequential
Date Thu, 08 Nov 2001 21:51:10 GMT
Hi Conor,

Did this info help you understand how I make use of the nested tasks?
Could you please let me know what's the resolution on this?

Thanks,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.rgv.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

On Wed, 07 Nov 2001 15:27:50 -0800, Ovidiu Predescu <ovidiu@cup.hp.com> wrote:

> On Thu, 8 Nov 2001 09:54:00 +1100, "Conor MacNeill" <conor@cortexebusiness.com.au>
wrote:
> 
> > Can you provide some motivation for doing this.
> 
> Yes, Conor, check-out Anteater, a testing framework based on Ant:
> 
> http://www.geocities.com/SiliconValley/Monitor/7464/anteater/
> 
> Here's a sample test case written in Anteater:
> 
>   <target name="content-check" depends="init">
>     <http debug="1" description="Comparison of streamed file with actual one">
>       <parallel>
>         <listener path="/good.html">
>           <match>
>             <method value="GET"/>
>             <sendResponse href="test/responses/good.html"
>                           contentType="text/html"
> 			  responseCode="301"/>
>           </match>
>         </listener>
> 
>         <sequential>
>           <sleep seconds="1"/>
>           <httpRequest path="/good.html">
>             <match>
>               <responseCode value="301"/>
>             </match>
>           </httpRequest>
>         </sequential>
>       </parallel>
>     </http>
>   </target>
> 
> 
> The httpRequest element needs to have access to some of the context,
> which is maintained by the <http> element. The Java class
> corresponding to <http> simply passes that information to its
> children, which in turn do it for their children and so on. However
> this info cannot be passed down when a <parallel> or <sequential> is
> encountered. What I do is to collect that information from the
> <sequential> or <parallel> elements and do it in their enclosing
> element.
> 
> You can take a look at the source code to see how it works.
> 
> Hope this helps,
> -- 
> Ovidiu Predescu <ovidiu@cup.hp.com>
> http://orion.rgv.hp.com/ (inside HP's firewall only)
> http://sourceforge.net/users/ovidiu/ (my SourceForge page)
> http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)
> 

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message