[Webtest] NoSuchMethodError
Marc Guillemot
webtest@lists.canoo.com
Tue, 12 Apr 2005 09:34:01 +0200
Where is your method "getDbFormFieldNameSO" defined?
The script test allows to script webtest, not to execute javascripts from the loaded page. This would be surely
interesting as well, but it's not the purpose of the scriptTest step.
Marc.
Chintakrindi Meghanath wrote:
> Hi
>
> I am getting the following error,when trying to execute the javascript function.
>
> The script is :
> <scriptStep stepid="Validate Parent Save" language="javascript">
> getDbFormFieldNameSO('118');
> </scriptStep>
>
> I installed bsf.jar (version 2.3.0) and js.jar (1.6)
>
> The error is
> Validate Parent Save" (15/18)
> [testSpec] (steps.Step 454 ) Exception thrown from th
> s class: java.lang.NoSuchMethodError
> [testSpec] (steps.Step 456 ) Message was: org.mozilla
> javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/Debuggabl
> Engine;
> [testSpec] (steps.Step 467 ) Cannot handle unexpected
> exception in step ScriptStep at I:\sourcefor\canoo\tc_tests\tests\tc_export_so_
> inks.xml:23: with (script="
> [testSpec] getDbFormFieldNameSO('118');
> [testSpec] ", stepId="Validate Parent Save", language="javascript", stepTy
> e="scriptStep")
> [testSpec] java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebu
> gableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;
> [testSpec] at org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unkn
> wn Source)
> [testSpec] at org.apache.bsf.util.BSFEngineImpl.exec(Unknown Source)
> [testSpec] at org.apache.bsf.BSFManager$6.run(Unknown Source)
> [testSpec] at java.security.AccessController.doPrivileged(Native Method)
> [testSpec] at org.apache.bsf.BSFManager.exec(Unknown Source)
> [testSpec] at org.apache.tools.ant.util.ScriptRunner.executeScript(ScriptR
> nner.java:128)
>
> Thanks
> Meghanath
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>