Hello,
i am currently in the process of writing some tests for an app.
I am using wicket 1.3.4 and html-unit 2.3
this is about a functional test involving an ajax heavy page with a modal
window (open / close ), ajax refreshing parts (both in the modal and in the
main page),
it seems that for long running tests (a few minutes long) it get the error
[junit]com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob - Caught
exception in Window.setTimeout().
[junit] ======= EXCEPTION START ========
[junit] EcmaError: lineNumber=[1] column=[0] lineSource=[<no source>]
name=[ReferenceError] sourceName=[JavaScriptBackgroundJob]
message=[ReferenceError: "Wicket" is not defined.
(JavaScriptBackgroundJob#1)]
[junit] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError:
"Wicket" is not defined. (JavaScriptBackgroundJob#1)
[junit] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528)
[junit] at org.mozilla.javascript.Context.call(Context.java:502)
[junit] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
[junit] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:405)
[junit] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:380)
[junit] at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:890)
[junit] at
com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob.run(JavaScriptBackgroundJob.java:101)
Has anyone seen this before?
I don't know if its a html-unit problem or not.I for one think its is
,mainly because of the way it handles ajax, but my tests are failing and
that doesn't help me push the 'functional testing is good' idea.I'm pretty
much stuck.
Any help would be appreciated!
Thank you,
Alex