[Webtest] Ant Script to Fail when Test Fails

Siegfried Goeschl siegfried.goeschl@it20one.at
Wed, 03 Oct 2007 09:45:46 +0200


Hi Christoph,

in <config> there are two settings which should do the trick - 
haltonerror and haltonfailure

Cheers,

Siegfried Goeschl

christoph.krammer@mvv.de wrote:
> Hello everybody,
>
> I want to do different actions in the Ant script when a test fails or is successful (deploy the application under test to a different application server). But to be able to do this, I have to decide whether a test was successful. But the Ant script states Build Successful even if tests fail. Is it possible to get a Build failed message, when a single test fails, but still to run all tests and generate the HTML output.
>
> Thanks for any help.
>
> Regards,
>  Christoph
>
> ---
> Christoph Krammer
>
> 24/7 IT-Services GmbH
> Luisenring 49
> 68159 Mannheim
> Germany
>
> christoph.krammer@mvv.de
> www.24-7-it-services.de
>
> 24/7 IT-SERVICES GmbH / Knooper Weg 75 / 24116 Kiel Handelsregister-Nr. HRB 7458, Amtsgericht Kiel
> Geschäftsführer: Dr. Dirk Bevers, Dr. Ulf Dunker 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
>