Hi,
I have written a jwebunit test for a screen containing a button for a popup window,but i am not able to test for the popup window.
I tried getting the js.jar(js-1.6R2.jar) and jwebunit-1.3.jar still iam getting an error  java.lang.NoSuchFieldError: instance when i am using the clickButton(popupButtonId) metod of jwebunit.

The complete stack trace

java.lang.NoSuchFieldError: instance
 at com.meterware.httpunit._javascript_._javascript_$_javascript_Engine.toStringIfNotUndefined(_javascript_.java:300)
 at com.meterware.httpunit._javascript_._javascript_$Window.jsFunction_open (_javascript_.java:474)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.mozilla._javascript_.MemberBox.invoke(MemberBox.java:142)
 at org.mozilla._javascript_.FunctionObject.call(FunctionObject.java:468)
 at org.mozilla._javascript_.optimizer.OptRuntime.callN (OptRuntime.java:84)
 at org.mozilla._javascript_.gen.c8._c2(httpunit:12)
 at org.mozilla._javascript_.gen.c8.call(httpunit)
 at org.mozilla._javascript_.Interpreter.interpretLoop(Interpreter.java:3084)
 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 org.mozilla._javascript_.ScriptRuntime.doTopCall (ScriptRuntime.java:2755)
 at org.mozilla._javascript_.InterpretedFunction.call(InterpretedFunction.java:147)
 at com.meterware.httpunit._javascript_._javascript_$_javascript_Engine.performEvent(_javascript_.java:172)
 at com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:56)
 at com.meterware.httpunit.Button.doOnClickEvent(Button.java:103)
 at com.meterware.httpunit.Button.click(Button.java:81)
 at net.sourceforge.jwebunit.HttpUnitDialog.clickButton(HttpUnitDialog.java:784)
 at net.sourceforge.jwebunit.WebTester.clickButton(WebTester.java:915)
 at net.sourceforge.jwebunit.WebTestCase.clickButton(WebTestCase.java :379)
 at com.amex.ifst.web.controllers.refdata.EditAebOfficeTest.testEditAebOfficeInsert(EditAebOfficeTest.java:53)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at junit.framework.TestCase.runTest(TestCase.java:154)
 at junit.framework.TestCase.runBare (TestCase.java:127)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run (TestCase.java:118)
 at junit.framework.TestSuite.runTest(TestSuite.java:208)
 at junit.framework.TestSuite.run(TestSuite.java:203)
 at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java :128)
 at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:673)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

 Can some one help me in this regard.
 
Thanks,
Dinesh.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to