Hi,

if I correctly remember, the appletRunner includes the class it needs
but you have to care by yourself that you configure the classpath
depending on the classes used in you scenario.
Why do you need Ant there?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Richard Kennard wrote:
> Hello,
> 
> First let me say thank you for developing WebTest. I am a long time
> user, first-time poster :)
> 
> I recently tried to add an <appletRunner> step to my WebTests (I created
> a class that extends
> com.canoo.webtest.extension.applet.runner.AbstractScenario). The error I
> get is rather odd. It says...
> 
>   java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
> 
> Looking further up the trace we see...
> 
>    [java] [appletRunner]  INFO (com.canoo.webtest.steps.Step) - >>>>
> Start Step: appletRunner (3/3)
>    [java] [appletRunner]  INFO
> (com.canoo.webtest.extension.applet.AppletRunnerStep) - Executing
> 'C:\Program Files\Java\jdk1.6.0_02\jre\bin\java.exe' with arguments:
>    [java] [appletRunner]
> '-Dlog4j.configuration=file:/C:/webtest-2.6/lib/log4j.properties'
>    [java] [appletRunner] '-Dlog4j.defaultInitOverride=false'
>    [java] [appletRunner]
> '-Djava.protocol.handler.pkgs=com.canoo.webtest.extension.applet.runner'
>    [java] [appletRunner] '-classpath'
>    [java] [appletRunner]
> 'C:\webtest-2.6\lib\commons-logging-1.1.jar;C:\webtest-2.6\lib\commons-httpclient-3.1.jar;C:\webtest-2.6\lib\log4j-1.2.14.jar;C:\webtest-2.6\lib\htmlunit-1.14.jar;C:\webtest-2.6\lib\commons-codec-1.3.jar;C:\webtest-2.6\lib\
> 
> jemmy-2.2.7.5.jar;C:\webtest-2.6\lib\webtest.jar'
>    [java] [appletRunner]
> 'com.canoo.webtest.extension.applet.runner.AppletRunner'
> 
> ...which is interesting because the forked classpath that the
> AppletRunnerStep is specifying does not include the Ant JAR found in
> 'webtest-2.6\lib'. Should it? If not, how can I get this step running?
> 
> Many thanks in advance,
> 
> Richard.
> 
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 

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

Reply via email to