Re: Bug: HTTP Response Code 204

Marc Guillemot <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi Ulrich,

you can activate the http header log by setting
log4j.logger.httpclient.wire.header=debug
in lib/log4j.properties

This will allow you to really "see" what WebTest receives from your
webserver.

Cheers,
Marc.
-- 
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com

Le 08/05/2012 13:51, Ulrich Mayring a écrit :
> Hello,
> 
> we have the following test:
> 
> <invoke method="DELETE" url="${my.url}/id/123"/>
> <storeResponseCode property="status"/>
> <verifyProperty name="status" text="204"/>
> 
> Canoo R1813 (the newest build) fails this test, whereas the older
> release version 3.0.0 succeeds. The failure message on the report is:
> 
> expected value    204
> actual value    200
> 
> Apparently Canoo erroneously thinks that the HTTP response code is 200.
> We did verify that the HTTP response code is actually 204 (and the older
> Canoo correctly identifies it as such).
> 
> The tested URL belongs to a REST API, i. e. the response is not HTML,
> but XML.
> 
> Ulrich
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.