Looks like the class file cannot be found. If I write the correct class
name like this:

<appletRunner 
scenario="LoginTest"
scenarioLocation="/home/cgajo/workspace/webtest/bin/wtest1/idocTest"
XPath="/html/body/table/tbody/tr[4]/td[1]/table/tbody/tr[2]/td[1]/applet"/>

and when I write something nonsense:

<appletRunner 
scenario="dhdf5THgfsff"
scenarioLocation="/home/cgajo/workspace/webtest/bin/wtest1/idocTest"
XPath="/html/body/table/tbody/tr[4]/td[1]/table/tbody/tr[2]/td[1]/applet"/>

I get the same result.
The debug log doesn't say that it cannot find the class file, or if the
path is invalid (because it isn't). So what could be the problem??

Csaba




On Thu, 2008-01-24 at 10:11 +0100, Csaba Gajo wrote:
> Hi,
> 
> I guess this is an easy question for someone who worked a lot with
> Webtest. I have an applet with a username, password text field and a
> login button. To use the applet, I've downloaded the jemmy library, and
> wrote a test scenario.
> 
> But it looks like the test is not invoked at all. I wrote this in the
> scenario class:
> 
> static {
>   // write "hello" into some file
> }
> 
> So if the class is instantiated the "hello" should be written into the
> file... yet this doesn't happen, so I'm guessing it's never invoked.
> 
> The class is not in any package.
> 
> The xpath to the applet on the webpage is correct.
> 
> This is the command in the webtest xml:
> 
> <appletRunner 
>  scenario="LoginTest"
>  scenarioLocation="/home/cgajo/workspace/webtest/bin/wtest1/idocTest"
> 
> XPath="/html/body/table/tbody/tr[4]/td[1]/table/tbody/tr[2]/td[1]/applet"/>
> 
> The location to the scenario class file is an absolute path.
> 
> The error I get is that the exit code is 253, and the stack trace is
> this:
> 
> /home/cgajo/workspace/webtest/bin/wtest1/idocTest/idoc.xml:15: Test
> LoginTest failed. Exit value: 253, Step: AppletRunnerStep
> at /home/cgajo/workspace/webtest/bin/wtest1/idocTest/idoc.xml:15: with
> (taskName="appletRunner") 
>         at
> com.canoo.webtest.extension.applet.AppletRunnerStep.runApplet(AppletRunnerStep.java:296)
>         at
> com.canoo.webtest.extension.applet.AppletRunnerStep.findTarget(AppletRunnerStep.java:197)
>         at
> com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)
>         at com.canoo.webtest.steps.Step.execute(Step.java:101)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at
> com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
>         at
> com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
>         at com.canoo.webtest.steps.Step.execute(Step.java:101)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at
> com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> 
> Can somebody tell me how to fix this?
> 
> Thanks,
> Csaba
> 
> _______________________________________________
> 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