it might be a compatibility issue. please make sure exactly which version of jwebunit supports top DOM object. my expereince is in this kind of scenario try to revert to an old version and see whether you are still finding the same error. you may try it in another machine with the same config except an old jwebunit/httpunit version.
-S

On 3/21/06, YIN, Tong <[EMAIL PROTECTED]> wrote:

Hi,

We have been using jwebunit for our integration testing, and there was no big issues.
Recently, we have a js file imported in our jsp page which contains the "top" DOM object. When we run the jwebunit test we got:

java.lang.RuntimeException: Script ' (the external js body) ' failed: java.lang.RuntimeException: No such property: top

at com.meterware.httpunit._javascript_._javascript_$_javascript_Engine.handleScriptException(_javascript_.java:199)
at com.meterware.httpunit._javascript_._javascript_$_javascript_Engine.executeScript(_javascript_.java:136)
at com.meterware.httpunit.scripting.ScriptableDelegate.runScript(ScriptableDelegate.java:65)
at com.meterware.httpunit.parsing.ScriptFilter.getTranslatedScript(ScriptFilter.java:151)
at com.meterware.httpunit.parsing.ScriptFilter.endElement(ScriptFilter.java:131)
at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source)
at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source)
at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown Source)
at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source)
at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source)
at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source)
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(NekoHTMLParser.java:41)
at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:255)
at com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1126)
at com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:688)
at com.meterware.httpunit._javascript_._javascript_.load(_javascript_.java:89)
at com.meterware.httpunit._javascript_._javascript_EngineFactory.load(_javascript_EngineFactory.java:58)
at com.meterware.httpunit.RequestContext.runScripts(RequestContext.java:44)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:122)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:102)
at com.meterware.httpunit.WebClient.getResponse(WebClient.java:87)
…..
I have checked httpunit website and found httpunit supports the top DOM object. Could someone please help us with this issue?

Thanks,
Tong

*********************************************************************************

This e-mail message (along with any attachments) is intended only for the named addressee and could contain information that is confidential or privileged. If you are not the intended recipient you are notified that any dissemination, copying or use of any of the information is prohibited. Please notify us immediately by return e-mail if you are not the intended recipient and delete all copies of the original message and attachments.

 

This footnote also confirms that this message has been checked for computer viruses.

 

*********************************************************************************

 




--

Reply via email to