[Webtest] empty content type?
Jeff Barrett
webtest@lists.canoo.com
Mon, 14 Feb 2005 01:20:24 -0800
As one more piece of information -- here's my extremely short testspec:
<testSpec name=3D"check calling and parsing a local file">
<config
host=3D"localhost"
port=3D"80"
protocol=3D"http"
basepath=3D"fwm"
resultpath=3D"c:/eng/other-sw/canoo-1.7"
resultfile=3D"FinaplexResult.xml"
summary=3D"true"
saveresponse=3D"true" />
<steps>
<invoke
stepid=3D"get Login Page"
url=3D"login.jsp" />
</steps>
</testSpec>
-----Original Message-----
From: webtest-admin@gate2.canoo.com
[mailto:webtest-admin@gate2.canoo.com] On Behalf Of Jeff Barrett
Sent: Monday, February 14, 2005 1:10 AM
To: webtest@gate2.canoo.com
Subject: RE: [Webtest] empty content type?
Hi Marc,
I guess it might not be a javascript error even though it comes after
all of those warnings. The result XML file doesn't seem to have any
more information. The next two lines after the javascript warnings are:
[testSpec] ERROR (com.canoo.webtest.steps.request.Target) -
ScriptException: enclosed exception was "argument type mism
atch"
[testSpec] INFO (com.canoo.webtest.steps.Step) - Exception thrown from
this class: com.canoo.webtest.engine.StepFailed
Exception
As a related question, any idea how I can make those javascript messages
go away? I saw the "Cookie Guide" on the htmlunit webpage but there
didn't seem to be anything there that helped me out.
Thanks.
-----Original Message-----
From: webtest-admin@gate2.canoo.com
[mailto:webtest-admin@gate2.canoo.com] On Behalf Of Marc Guillemot
Sent: Monday, February 14, 2005 12:49 AM
To: webtest@gate2.canoo.com
Subject: Re: [Webtest] empty content type?
Hi Jeff,
As far as I know, htmlunit only complains that the received response is
not of the type it should be. It's only a=20
warning (that you should fix) and it doesn't affect the execution. What
do you have for a js error?
Marc.
Jeff Barrett wrote:
> Hello,
>=20
> =20
>=20
> I'm getting strange errors when trying to run a basic test on my web=20
> application. All it does is hit the main login page and try to assert
> some text on the page. But it seems when Webtest tries to get the=20
> javascript files it's not getting anything or it's unhappy w/ what
it's=20
> getting. The error looks like so:
>=20
> =20
>=20
> [testSpec] INFO (com.canoo.webtest.steps.request.Target) - ->=20
> gotoTarget(by url): http://localhost/fwm/login.jsp
>=20
> [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) -=20
> Expected content type of text/javascript or applicatio
>=20
> n/x-javascript for remotely loaded javascript element=20
> http://localhost/fwm/js/request.js;jsessionid=3DCOndH8Fc5ifQCEVZGHkQ
>=20
> wqqvQPJlZZsMXyBgQte2gov2dCPkHDTE!1303382767 but got []
>=20
> =20
>=20
> A similar javascript error is printed out for every javascript file
that=20
> Webtest tries to retrieve. In terms of my environment I'm running on=20
> winXP, jdk 1.4, ant 1.6.2, and a "latest snapshot" of 1.7 from a few=20
> days ago.
>=20
> =20
>=20
> Any ideas?
>=20
> =20
>=20
> Thanks.
>=20
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest