Hi Mike,

the best (?) and quicker way is to add some "alert(...)" in the js code and run the test to see the messages in the log. If you can't do it directly on your server you could save the html page locally and work on this local version.

In you js code you must have something like
someObj.location = "new value"
as someObj evaluated to undefined for htmlunit, you need to retrieve the expression assigning its value to someObj. This is probably the expression which doesn't work correctly.

Marc.


valemic wrote:
Hi Marc,

Thank for the response, but I'm not sure what you mean. I need javascript
and that was the first error I recieved.  Is there some other logging I can
turn on to see what is going on? I've read other post that reference error
when calling a function from the onload event and thought it was related to
that. Any debugging hints would be helpful.

Thanks,
-Mike


Marc Guillemot wrote:
Hi Mike,

the problem comes from an error earlier, in the evaluation of the object on which location is called later.

If you don't need javascript, you can deactivate it. Otherwise you have to investigate what is the failing js expression.

Marc.

valemic wrote:
Hi, I am getting this message when calling a javascript fuction on the onload
event from a frame. Is there a workaround?
C:\webtest\usecases\tech.xml:61: Canoo Webtest: R_1396.
Test failed.
Test step clicklink (C:\webtest\usecases\tech.xml:91: )  failed with
message
"Step[clicklink (6/50)]: Script error loading page executing webtest at:
clicklink Wrapped com.gargoylesoftware.htmlunit.ScriptException:
TypeError:
Cannot read property "location" from null (Embedded script in
http://localhost/techServlet?nextpage=find_report_questions.html&currBus=Retail#170)
(Embedded script in
http://localhost/techServlet?nextpage=find_report.html#27)
Source code:
function () {
        [native code, arity=0]
}

Thanks,
-Mike
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest




_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to