2 messages in com.canoo.lists.webtest[Webtest] Adding jar files to WebTest...
FromSent OnAttachments
Rich Toulouse24 May 2007 16:18.gif
Denis N. Antonioli25 May 2007 00:21 
Subject:[Webtest] Adding jar files to WebTest classpath
From:Rich Toulouse (Rich@Attachmate.com)
Date:05/24/2007 04:18:13 PM
List:com.canoo.lists.webtest
Attachments:

Hi there I'm trying to test an applet and I keep getting a ClassNotFoundException. I am wondering how I add the jar containing the applet to the classpath when I run WebTest. I'm assuming that this is a classpath issue. I've been searching the docs and email archive, but haven't found anything. Is there a way to set this in the build script or an external properties file?

Here's the logging that I see:

[appletRunner] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: appletRunner (2/3) [appletRunner] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget by applet showDocument [appletRunner] INFO (com.canoo.webtest.extension.applet.AppletRunnerStep) - Executing 'C:\Program Files\Java\jdk1.6.0_01\jre\bin\java.exe' with arguments: [appletRunner] '-Dlog4j.configuration=file:/C:/WebTest/bin/../lib/log4j.properties' [appletRunner] '-Dlog4j.defaultInitOverride=false' [appletRunner] '-Djava.protocol.handler.pkgs=com.canoo.webtest.extension.applet.runner' [appletRunner] '-classpath' [appletRunner] 'C:\WebTest\bin\..\lib\commons-logging-1.1.jar;C:\WebTest\bin\..\lib\com mons-httpclient-3.0.1.jar;C:\WebTest\bin\..\lib\log4j-1.2.14.jar;C:\WebT est\bin\..\lib\ant-1.6.5.jar;C:\WebTest\bin\..\lib\htmlunit-1.11.jar;C:\ WebTest\bin\..\lib\commons-codec-1.3.jar;C:\WebTest\bin\..\lib\jemmy-200 40604.jar;C:\WebTest\bin\..\lib\webtest.jar' [appletRunner] 'com.canoo.webtest.extension.applet.runner.AppletRunner' [appletRunner] 'C:\DOCUME~1\RichT\LOCALS~1\Temp\AppletPlugin63522.arguments'

[appletRunner] The ' characters around the executable and arguments are [appletRunner] not part of the command.

[appletRunner] Using org.netbeans.jemmy.drivers.DefaultDriverInstaller driver installer [appletRunner] INFO (com.canoo.webtest.extension.applet.AbstractAppletTag) - https://rich.attachmate.com/rweb/ex/Launcher.jar [appletRunner] ERROR (com.canoo.webtest.extension.applet.runner.AppletRunner) - com/wrq/rweb/Launcher [appletRunner] java.lang.ClassNotFoundException: com/wrq/rweb/Launcher [appletRunner] at java.lang.Class.forName0(Native Method) [appletRunner] at java.lang.Class.forName(Class.java:247) [appletRunner] at com.canoo.webtest.extension.applet.runner.AppletRunner.createObject(Appl etRunner.java:145) [appletRunner] at com.canoo.webtest.extension.applet.runner.AppletRunner.newApplet(AppletR unner.java:137) [appletRunner] at com.canoo.webtest.extension.applet.runner.AppletRunner.run(AppletRunner. java:81) [appletRunner] at com.canoo.webtest.extension.applet.runner.AppletRunner.main(AppletRunner .java:62) [appletRunner] INFO (com.canoo.webtest.extension.applet.AppletRunnerStep) - runApplet: exitValue was: -3 [appletRunner] ERROR (com.canoo.webtest.extension.applet.AppletRunnerStep) - Test com.wrq.applet.test.AppletTest failed. Exit value: -3 [appletRunner] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1562. [appletRunner] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepExecutionException [appletRunner] INFO (com.canoo.webtest.steps.Step) - Message was: Test com.wrq.applet.test.AppletTest failed. Exit value: -3 [appletRunner] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1562. [appletRunner] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepExecutionException [appletRunner] INFO (com.canoo.webtest.steps.Step) - Message was: Test com.wrq.applet.test.AppletTest failed. Exit value: -3 INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1562. INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepExecutionException INFO (com.canoo.webtest.steps.Step) - Message was: Test com.wrq.applet.test.AppletTest failed. Exit value: -3 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "myTest" (C:\WebTest\rweb\rweb.xml:6: )

Thanks!

Rich

Rich Toulouse | Software Dev Eng in Test

<http://www.attachmatewrq.com/>