3 messages in com.canoo.lists.webtest[Webtest] Applet runner problem| From | Sent On | Attachments |
|---|---|---|
| Csaba Gajo | 24 Jan 2008 00:57 | |
| Csaba Gajo | 24 Jan 2008 01:10 | |
| Csaba Gajo | 25 Jan 2008 00:29 |
| Subject: | [Webtest] Applet runner problem![]() |
|---|---|
| From: | Csaba Gajo (cga...@i-rose.si) |
| Date: | 01/24/2008 12:57:42 AM |
| List: | com.canoo.lists.webtest |
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




