[ http://webtest-community.canoo.com/jira/browse/WT-279?page=all ]
     
Denis N. Antonioli closed WT-279:
---------------------------------

    Resolution: Won't Fix

Although there are many ways to call webtest, the support is limited to calling 
webtest with the two supplied shell scripts. Webtest build further shows how to 
call webtest from an ant script.

These setups are tested in every build and known to work.

This is obviously a case of bad class path.

> <scriptStep> does not work
> --------------------------
>
>          Key: WT-279
>          URL: http://webtest-community.canoo.com/jira/browse/WT-279
>      Project: WebTest
>         Type: Bug

>     Versions: 2.1
>     Reporter: Askar Rahimberdiev

>
> It is a duplicate of WT-179. When a test script started as an Ant target (not 
> using webtest.bat) everything works fine except for Groovy script which 
> generates ClassNotFound exception.
> A workaround suggested by Paul King works: 
> http://lists.canoo.com/pipermail/webtest/2006q2/005918.html
> Exception raised: com.canoo.webtest.engine.StepExecutionException: Error 
> invoking script: java.lang.ClassNotFoundException: 
> org.codehaus.groovy.bsf.GroovyEngine, Step: ScriptStep at 
> C:\eclipse\workspace\webtest\modules\init-properties.xml:16:  with 
> (language="groovy", script="
>                                               import java.text.DateFormat;
>                                               import 
> java.text.SimpleDateFormat;
>                                               import java.util.Date;
>                                               SimpleDateFormat df = new 
> SimpleDateFormat("yyyy-MM-dd");
>                                               String today = df.format(new 
> Date());
>                                               
> step.setWebtestProperty('today', today);
>            ", 
> taskName="scriptStep")com.canoo.webtest.engine.StepExecutionException: Error 
> invoking script: java.lang.ClassNotFoundException: 
> org.codehaus.groovy.bsf.GroovyEngine, Step: ScriptStep at 
> C:\eclipse\workspace\webtest\modules\init-properties.xml:16:  with 
> (language="groovy", script="
>                                               import java.text.DateFormat;
>                                               import 
> java.text.SimpleDateFormat;
>                                               import java.util.Date;
>                                               SimpleDateFormat df = new 
> SimpleDateFormat("yyyy-MM-dd");
>                                               String today = df.format(new 
> Date());
>                                               
> step.setWebtestProperty('today', today);
>            ", taskName="scriptStep")
>         at 
> com.canoo.webtest.extension.ScriptStep.doExecute(ScriptStep.java:72)
>         at com.canoo.webtest.steps.Step.execute(Step.java:132)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at org.apache.tools.ant.Task.perform(Task.java:348)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to