[Webtest] Validating SOAP response against XML Schema

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Thu, 23 Nov 2006 16:26:06 +0100


you want the test to fail if xmlvalidate fails? Is xmlvalidate's 
failonerror set to true? If it is the case and if the validation fails, 
then the webtest should fail too.

Btw, it probably works better with a post release 2.1 build of WebTest 
(for instance the last one) as the normal ant task are now handled just 
like WebTest steps.


Caleandro wrote:
> Hi all,
> In a test-case  I have to validate a SOAP response message coming from a
> web-service against his XML Schema.
> I tried to do this with an <antWrapper> step by <xmlvalidate> task and all
> goes fine but, how could I obtain the Canoo step failure when the validation
> fails?
> The wrapped step always return ok. Do Anyone knows a more suitable way to do
> the same thing?
> Tanks in advance for any suggestion.
> Vito
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest