[Webtest] [webtest][JIRA] Created: (WT-279) <scriptStep> does not work
Askar Rahimberdiev (JIRA)
Askar Rahimberdiev (JIRA)" <noreply@canoo.com
Mon, 5 Mar 2007 10:05:29 +0100 (CET)
<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