This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Testing and the fly likes java script issue on httpunit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Testing
Bookmark "java script issue on httpunit" Watch "java script issue on httpunit" New topic

java script issue on httpunit

Sonu Jaiswal

Joined: Feb 26, 2012
Posts: 2
Hi all,

I'm a newbie with HTTPUnit and i'm facing to a problem with javascript.

On the web application, no error the page request is displayed but with HTTPUnit I have an error with the javascript. It seems that HTTPUnit don"t access to the dojo.js file found in the application. See below the error generated ...

Somebody could help me?

dojo.provide("dojo.tlocale");' failed: undefined: The undefined value has no properties.
at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.handleScriptException(
at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.executeScript(
at com.meterware.httpunit.scripting.ScriptableDelegate.runScript(
at com.meterware.httpunit.parsing.ScriptFilter.getTranslatedScript(
at com.meterware.httpunit.parsing.ScriptFilter.endElement(
at org.cyberneko.html.filters.DefaultFilter.endElement(
at org.cyberneko.html.filters.NamespaceBinder.endElement(
at org.cyberneko.html.HTMLTagBalancer.callEndElement(
at org.cyberneko.html.HTMLTagBalancer.endElement(
at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(
at org.cyberneko.html.HTMLScanner.scanDocument(
at org.cyberneko.html.HTMLConfiguration.parse(
at org.cyberneko.html.HTMLConfiguration.parse(
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at com.meterware.httpunit.parsing.NekoHTMLParser.parse(
at com.meterware.httpunit.HTMLPage.parse(
at com.meterware.httpunit.WebResponse.getReceivedPage(
at com.meterware.httpunit.WebResponse.getFrames(
at com.meterware.httpunit.WebResponse.getFrameRequests(
at com.meterware.httpunit.FrameHolder.updateFrames(
at com.meterware.httpunit.WebWindow.updateFrameContents(
at com.meterware.httpunit.WebClient.updateFrameContents(
at com.meterware.httpunit.WebWindow.updateWindow(
at com.meterware.httpunit.WebWindow.getSubframeResponse(
at com.meterware.httpunit.WebWindow.getResponse(
at com.meterware.httpunit.WebWindow.getResponse(
at com.meterware.httpunit.WebClient.getResponse(
at jwebunit.HttpUnitWrapper.startConversation(
... 23 more
wood burning stoves
subject: java script issue on httpunit