[Webtest] Problem with 204 No Content response
Jon Davies
Jon Davies" <Jon.Davies@scisys.co.uk
Fri, 29 Jun 2007 09:21:58 +0100
This is a multi-part message in MIME format.
------_=_NextPart_001_01C7BA26.BE1EC3EF
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Well, nobody seemed to have an answer to this so I dug and dug to work
out what was going wrong. Turns out there's a bug in htmlunit which
throws a null pointer exception when it shouldn't. The bug is fixed in
htmlunit's subversion repository, so I guess it'll make it out into the
rest of the world and hence into webtest in due course. I've built a
fix which is working fine for me, and if anyone else wants it just let
me know. (I haven't posted it because it doesn't seem to be an issue
for anyone else at the moment.)
=20
Jon
(talking to myself again :)
=20
________________________________
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Jon Davies
Sent: 19 June 2007 17:46
To: webtest@lists.canoo.com
Subject: [Webtest] Problem with 204 No Content response
I've been beginning to use canoo webtest on my current project, but have
hit a problem: I have a page which under some circumstances returns a
204 No content http status code. But the tests I've built in webtest
fail to run - (its not that they run and fail, but they they won't run
and webtest dies). How can I run a test that expects a 204 status code,
or is this a bug that I've found? Details below.
=20
Any help would be appreciated :)
=20
thanks
Jon
=20
------_=_NextPart_001_01C7BA26.BE1EC3EF
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D500021908-29062007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Well, nobody seemed to have an answer to this =
so I dug and=20
dug to work out what was going wrong. Turns out there's a bug in =
htmlunit=20
which throws a null pointer exception when it shouldn't. The bug =
is fixed=20
in htmlunit's subversion repository, so I guess it'll make it out into =
the rest=20
of the world and hence into webtest in due course. I've built a =
fix which=20
is working fine for me, and if anyone else wants it just let me =
know. (I=20
haven't posted it because it doesn't seem to be an issue for anyone else =
at the=20
moment.)</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D500021908-29062007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D500021908-29062007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Jon</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D500021908-29062007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>(talking to myself again :)</FONT></SPAN></DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> webtest-admin@lists.canoo.com=20
[mailto:webtest-admin@lists.canoo.com] <B>On Behalf Of </B>Jon=20
Davies<BR><B>Sent:</B> 19 June 2007 17:46<BR><B>To:</B>=20
webtest@lists.canoo.com<BR><B>Subject:</B> [Webtest] Problem with 204 No =
Content=20
response<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=3D375553816-19062007><FONT face=3DArial size=3D2>I've =
been beginning=20
to use canoo webtest on my current project, but have hit a =
problem: I have=20
a page which under some circumstances returns a 204 No content http =
status=20
code. But the tests I've built in webtest fail to run - (its not =
that they=20
run and fail, but they they won't run and webtest dies). How can I =
run a=20
test that expects a 204 status code, or is this a bug that I've =
found? =20
Details below.</FONT></SPAN></DIV>
<DIV><SPAN class=3D375553816-19062007><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D375553816-19062007><FONT face=3DArial size=3D2>Any =
help would be=20
appreciated :)</FONT></SPAN></DIV>
<DIV><SPAN class=3D375553816-19062007><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D375553816-19062007><FONT face=3DArial=20
size=3D2>thanks</FONT></SPAN></DIV>
<DIV><SPAN class=3D375553816-19062007><FONT face=3DArial=20
size=3D2>Jon</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------_=_NextPart_001_01C7BA26.BE1EC3EF--