Hi Kallin,
Am pretty sure this has come up in previous posts. The usual
recommended was to get around it, is to dis-able javascript error
checking in webtest. You do this by defining this in your webtest config
element:
<config>
<option name="ThrowExceptionOnScriptError" value="false" />
</config>
Do search for previous posts too, to get extra information about this
workaround.
HTH,
Conor
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kallin Nagelberg
Sent: Wednesday, 28 May 2008 7:05 AM
To: [email protected]
Subject: [Webtest] Re: JavaScript error loading page
I forgot to mention this happens right at the 'invoke' step.
I'm not sure if I can even apply a filter at this step...
On Tue, May 27, 2008 at 4:39 PM, Kallin Nagelberg
<[EMAIL PROTECTED]> wrote:
I've just started a project to integrate Canoo Webtest into our
company's continous integration system, and it looks to be an excellent
product!
Unfortunately, my first test was to hit a site's homepage, and
webtest returned the following error:
JavaScript error loading page
http://www.northernreflections.com/vr4-web-site/index.jsp.vr: Wrapped
java.lang.ClassCastException:
com.gargoylesoftware.htmlunit.html.HtmlPage cannot be cast to
com.gargoylesoftware.htmlunit.html.HtmlElement
(http://www.northernreflections.com/vr4-web-site/omniture_s_code_2305.js
#390(eval)#1
<http://www.northernreflections.com/vr4-web-site/omniture_s_code_2305.js
#390%28eval%29%231> )
This JS file is not really in our control, as a third party
provides it. Is there something wrong with it? Also, is there a way to
disclude only specific JS files (perhaps a filter is appropriate)?
Please be kind I'm brand new to this tool, but look forward to
digging in deep asap!
Regards,
Kallin Nagelberg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended
recipient(s) only. If you received this email by mistake, please,
as a courtesy, tell the sender, then delete this email.
The views and opinions are the originator's and do not necessarily
reflect those of the Queensland Studies Authority. All reasonable
precautions have been taken to ensure that this email contained no
viruses at the time it was sent.