5 messages in com.canoo.lists.webtestRE: [Webtest] Script error
FromSent OnAttachments
Jon Poulton [kinomi]13 Apr 2006 04:44 
Jon Poulton [kinomi]13 Apr 2006 05:09 
Marc Guillemot13 Apr 2006 07:30 
Jon Poulton [kinomi]13 Apr 2006 09:28 
Marc Guillemot14 Apr 2006 06:41 
Subject:RE: [Webtest] Script error
From:Jon Poulton [kinomi] (jo@kinomi.com)
Date:04/13/2006 05:09:11 AM
List:com.canoo.lists.webtest

Well, I'm a step closer to finding out what's going on. Part of the error message refers to a line number/variable name in this script:

http://jquery.com/src/latest/ajax-event-fx-jquery-latest/

Line 741 in function fixEvent() tries to set a variable like this:

event.preventDefault = fixEvent.preventDefault;

Perhaps the error message "Cannot set property 'preventDefault' of null" means that the "event" variable is null? Why would this be the case?

Jon

_____

From: webt@gate2.canoo.com [mailto:webt@gate2.canoo.com] On Behalf Of Jon Poulton [kinomi] Sent: 13 April 2006 12:45 To: webt@gate2.canoo.com Subject: [Webtest] Script error

One of our web developers has made some changes to our web application, which includes moving some Javascript into separate files. For some reason this has caused my Canoo tests to fail with an error message I have never seen before. I do not know what the error message means, or how to diagnose the problem further. The error from the log below reads:

"ScriptException: enclosed exception was "TypeError: Cannot set property "preventDefault" of null to "org.mozilla.javascript.InterpretedFunction@278e83" (http://localhost:8080/cks/scripts/jquery.js#741)".

I have seen a fair number of script exception problems on this mailing list, but I've never had a problem with them before. Any help would be appreciated.

..

[testSpec] (steps.Step 322 ) >>>> Start Step: invoke "Get Group add Page." (7/28)

[testSpec] (request.AbstractTargetAction 105 ) -> gotoTarget by URL: groups/add

[testSpec] (request.TargetHelper 64 ) getting response for url: http://localhost:8080/cks/groups/add

[testSpec] (request.TargetHelper 94 ) ScriptException: enclosed exception was "TypeError: Cannot set property "preventDefault" of null to "org.mozilla.javascript.InterpretedFunction@278e83" (http://localhost:8080/cks/scripts/jquery.js#741)"

[testSpec] (steps.Step 556 ) Exception thrown from this class: com.canoo.webtest.engine.StepFailedException

[testSpec] (steps.Step 558 ) Message was: Step[invoke "Get Group add Page." (7/28)]: Script error executing at: invoke

...

Jon