[Webtest] Patch for Error and Failure Properties added to the community site

Lisa Crispin webtest@lists.canoo.com
Mon, 09 Aug 2004 14:59:51 +0000


This is a great feature, I hope it is incorporated into a future WebTest version.
-- Lisa


-------------- Original message from Paul King : -------------- 

> 
> http://webtest-community.canoo.com/wiki/space/ErrorAndFailureProperties 
> 
> From the description: 
> 
> This patch provides for better control of error processing. Suppose you 
> have the following webtest ant script: 
> 
> 
> ... 
> ... 
> 
> 
> 
> 
> 
> WebTest provides two possible ways to execute these steps: 
> 
> 1. in the config element, set haltOnError (or haltOnFailure) to true 
> in which case if partA fails, then neither partB or cleanup (or for that 
> matter myTest2) will be executed and the build will terminate with 
> "BUILD FAILED", or 
> 2. if haltOnError is set to false, then all steps execute even if 
> any fail and the ant build says "BUILD SUCCESSFUL". 
> 
> Various testing advocates have suggested that neither of these 
> alternatives represent best practice. In fact, what is desirable is that 
> all tests are carried out (including any cleanup) but then the ant build 
> fails with "BUILD FAILED". The attached patches provide this 
> functionality by setting a flag to indicate errors (or failures) in 
> tests which can later be checked (this matches how ant's junit tasks 
> implement this functionality). 
> 
> 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest