5 messages in com.canoo.lists.webtestRE: [Webtest] empty content type?| From | Sent On | Attachments |
|---|---|---|
| Jeff Barrett | 12 Feb 2005 17:24 | |
| Marc Guillemot | 14 Feb 2005 00:48 | |
| Jeff Barrett | 14 Feb 2005 01:09 | |
| Jeff Barrett | 14 Feb 2005 01:20 | |
| Marc Guillemot | 14 Feb 2005 02:51 |
| Subject: | RE: [Webtest] empty content type?![]() |
|---|---|
| From: | Jeff Barrett (jbar...@finaplex.com) |
| Date: | 02/14/2005 01:20:02 AM |
| List: | com.canoo.lists.webtest |
As one more piece of information -- here's my extremely short testspec: <testSpec name="check calling and parsing a local file"> <config host="localhost" port="80" protocol="http" basepath="fwm" resultpath="c:/eng/other-sw/canoo-1.7" resultfile="FinaplexResult.xml" summary="true" saveresponse="true" /> <steps> <invoke stepid="get Login Page" url="login.jsp" /> </steps> </testSpec>
-----Original Message----- From: webt...@gate2.canoo.com [mailto:webt...@gate2.canoo.com] On Behalf Of Jeff Barrett Sent: Monday, February 14, 2005 1:10 AM To: webt...@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: webt...@gate2.canoo.com [mailto:webt...@gate2.canoo.com] On Behalf Of Marc Guillemot Sent: Monday, February 14, 2005 12:49 AM To: webt...@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 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,
I'm getting strange errors when trying to run a basic test on my web 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 javascript files it's not getting anything or it's unhappy w/ what it's getting. The error looks like so:
[testSpec] INFO (com.canoo.webtest.steps.request.Target) - -> gotoTarget(by url): http://localhost/fwm/login.jsp
[testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or applicatio
n/x-javascript for remotely loaded javascript element http://localhost/fwm/js/request.js;jsessionid=COndH8Fc5ifQCEVZGHkQ
wqqvQPJlZZsMXyBgQte2gov2dCPkHDTE!1303382767 but got []
A similar javascript error is printed out for every javascript file that Webtest tries to retrieve. In terms of my environment I'm running on winXP, jdk 1.4, ant 1.6.2, and a "latest snapshot" of 1.7 from a few days ago.
Any ideas?
Thanks.
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest




