scriptStep doesn't work

View: New views
2 Messages — Rating Filter:   Alert me  

scriptStep doesn't work

by Alex Ignatov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

scriptStep doesn't work

I get this error whenever I try to use scriptStep with javascript:

Error invoking script: java.lang.ClassNotFoundException: org.apache.bsf.engines.javascript.JavaScriptEngine

Heres the code Im using:

                        <scriptStep description="submit a form" language="javascript">

                                document.MainForm.submit();

                        </scriptStep>

Anyone know a solution?

Thanks,

Alex


Re: scriptStep doesn't work

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alex,

this is strange. Which WebTest build do you use?

Take care, that you can't use it to directly execute JS code in the
context of page as you try in the snippet below.

Cheers,
Marc.

Alex Ignatov a écrit :

> I get this error whenever I try to use scriptStep with javascript:
>
> Error invoking script: java.lang.ClassNotFoundException:
> org.apache.bsf.engines.javascript.JavaScriptEngine
>
> Here’s the code I’m using:
>
>                         <scriptStep description="submit a form"
> language="javascript">
>
>                                 document.MainForm.submit();
>
>                         </scriptStep>
>
> Anyone know a solution?
>
> Thanks,
>
> Alex
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest