Hi

the AppletRunnerStep fetches the applet from the server, like the browser does, so you have nothing special to do.

I see that the applet has a https url.
Is the applet signed?
This was a problem at least once in a previous project, but we could then switch to an unsigned applet for testing.

Best
        dna

On 25 mai 07, at 01:18, Rich Toulouse wrote:

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\commons-httpclient-3.0.1.jar;C:\WebTest\bin\.. \lib\log4j-1.2.14.jar;C:\WebTest\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-20040604.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 (AppletRunner.java:145) [appletRunner] at com.canoo.webtest.extension.applet.runner.AppletRunner.newApplet (AppletRunner.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

--
Ce n'est point dans l'objet que réside le sens des choses, mais dans la démarche.
  -- Antoine de Saint-Exupéry, Citadelle


Reply via email to