File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
I agree. Here's the link:
subject: java script issue on httpunit
It's not a secret anymore!