From: "Ovidiu Predescu" <[EMAIL PROTECTED]> > On 6/7/02 9:48 PM, "Ivelin Ivanov" <[EMAIL PROTECTED]> wrote: > > I have also asked a question about reusing steps among test cases. > > How do you suggest this can be done? > > Just group the different test cases in two different targets. In a common > test target, just do the login, then call the two targets sequentially, and > then do the logout. If you want the two steps to happen in parallel, you can > use Ant's <parallel> element. > > Something like this: > > <target name="test1"> > // Do the steps for test case 1 > </target> > > <target name="test2"> > // Do the steps for test case 2 > </target> > > <target name="full-test"> > <http> > // Do the login here > > <antcall target="test1"/> > <antcall target="test2"/> > > // Do the logout here > </http> > </target> > > The <target> element acts as a function here, and you make use of <antcall> > to invoke it. > > If you want to reuse functionality across multiple ant files, just define > the common functionality in targets in a common file, and call them using > the <ant> target.
Which really slows down things sometimes and precludes the Ant dependency mechanism. I'm writing a simple xinclude system to patch Ant. Any suggestion on what to use to manage xinclude tags? -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]