[Webtest] Re: haltonerror/haltonfailure in v1.7r1212

Stefan Voß webtest@lists.canoo.com
Fri, 03 Mar 2006 14:59:08 +0100


Marc Guillemot schrieb:
> Stefan Voß <Stefan_Voss@...> writes:
> 
>>Hallo,
>>
>>I updated from build 1000 to 1212 yesterday and I'm facing the following 
>>problem:
>>
>>Webtest seems to ignore the value of the haltonerror and haltonfailure 
>>property from the config part and always halts on failures and errors. 
>>I've edited the webtestrunner.xml so it now contains the import of the 
>>taskdef.xml and my resultfile "result.xml" contains the two properties 
>>with the values I've set. Any suggestions?
> 
> 
> how does your test look like? 
> It's quite surprising because webtest selftests test these features too and
> haven't complaint about behavior changes.
> 
> Marc.
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 
The test is quite simple. It only clicks through the application and 
checks if there are any ServletExceptions. The failing part of the test is:

...

<clickButton
     htmlId="${data.search.buttonName}"
     description="Suche Button klicken."/>

<not>
	<verifytext
		text="${data.error.1}"
		description="Es sollte keine Exception auf der Seite 		 
  aufgetreten sein."/>
</not>


The data.error.1 is set:

data.error.1=xception

The Page includes a ServletException so the not-step fails causing the 
testsuite to halt.

...

The config part looks like this:

<config
     protocol="${application.protocol}"
     host="${application.host}"
     port="${application.port}"
     basepath="${application.basepath}"
     haltonfailure="false"
     haltonerror="false"
	summary="${webtest.createSummary}"
     saveresponse="${webtest.saveResponse}"
     failureproperty="test.failure"
     errorproperty="test.error"
     resultpath="${webtest.config.resultpath}"
     resultfile="${webtest.config.resultfile.name}"
     >
     <header name="Accept-Language" value="de-de"/>
</config>