nas - 2009-04-21

I am using jameleon-test-suite-3.3 with Jameleon HtmlUnit Plug-in. My htmlUnit script gets an error right after it begins the Session and then fails with the below error.  It was all working before until we have added the jquery lib.

Beginning Session: "net.sf.jameleon.plugin.htmlunit.HtmlUnitSessionTag"
Begin: starting application.

Page source:
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

Error:
org.mozilla.javascript.EcmaError: TypeError: Cannot find function createComment. (http://localhost:8080/includes/jquery/jquery-1.3.2.min.js#19)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3226)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3216)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3232)
    at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3244)
    at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3304)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:1988)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2931)
    at script(http://localhost:8080/includes/jquery/jquery-1.3.2.min.js:19)
    at script(http://localhost:8080/includes/jquery/jquery-1.3.2.min.js:19)
    at script(http://localhost:8080/includes/jquery/jquery-1.3.2.min.js:19)
    at script(http://localhost:8080/includes/jquery/jquery-1.3.2.min.js:12)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:151)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160)
    at org.mozilla.javascript.Context.evaluateString(Context.java:1132)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:252)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:776)
    at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:224)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1395)
    at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:491)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:370)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.java:179)
    at org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBinder.java:286)
    at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1009)
    at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:639)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2407)
    at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1881)
    at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
    at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:312)
    at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:226)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:112)
    at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:85)
    at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:431)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:335)
    at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
    at net.sf.jameleon.plugin.htmlunit.HtmlUnitSessionTag.startApplication(HtmlUnitSessionTag.java:150)
    at net.sf.jameleon.SessionTag.doTag(SessionTag.java:179)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at net.sf.jameleon.TestCaseTag.invokeChildren(TestCaseTag.java:658)
    at net.sf.jameleon.TestCaseTag$1.run(TestCaseTag.java:868)
    at net.sf.jameleon.TestCaseTag.executeBody(TestCaseTag.java:929)
    at net.sf.jameleon.TestCaseTag.executeNoCSV(TestCaseTag.java:866)
    at net.sf.jameleon.TestCaseTag.doTag(TestCaseTag.java:815)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:706)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:670)
    at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:579)
    at net.sf.jameleon.ExecuteTestCase.runScript(ExecuteTestCase.java:271)
    at net.sf.jameleon.ui.TestCasePane$ExecuteButtonAction$2.run(TestCasePane.java:293)