[Webtest] New to webtest, but pretty classical install problem
Francois LETELLIER
webtest@lists.canoo.com
Fri, 02 Apr 2004 16:20:10 +0200
Hi,
I'm new to webtest and will probably ask a boring "newbie question". i'm=20
sorry about that :)
Config: Win XP ; Ant 1.6.1 ; JDK 1.4.2 ; Canoo WebTest Build number 432
When trying the basic example (source below), I get an "unexpected=20
exception caught" error message...
Trace:
Exception raised: com.canoo.webtest.engine.StepExecutionException:=20
Unexpected ex
ception caught: java.io.EOFException, Step: InvokePage at C:\Documents and=
=20
Setti
ngs\flet\Bureau\Java\canoo\doc\samples\installTest.xml:19: with=20
(stepId=3D"get in
dex Page", url=3D"index.html",=20
stepType=3D"invoke")com.canoo.webtest.engine.StepExec
utionException: Unexpected exception caught: java.io.EOFException, Step:=20
InvokeP
age at C:\Documents and=20
Settings\flet\Bureau\Java\canoo\doc\samples\installTest.
xml:19: with (stepId=3D"get index Page", url=3D"index.html",=
stepType=3D"invoke")
at=20
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334)
at=20
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:115)
at=
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:153)
at=20
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:37)
at com.canoo.webtest.steps.Step.execute(Step.java:99)
at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
at=20
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecification=20
Task.java:68)
at=20
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Here's my test file:
<project name=3D"SimpleTest" basedir=3D"." default=3D"main">
<taskdef file=3D"C:\Documents and=20
Settings\flet\Bureau\Java\canoo\webtestTaskdefs.properties">
<classpath>
<fileset dir=3D"C:\Documents and Settings\flet\Bureau\Java\canoo"=
=20
includes=3D"**/lib/*.jar"/>
</classpath>
</taskdef>
<target name=3D"main">
<testSpec name=3D"myTest">
<config
host=3D"www.sun.com"
port=3D"80"
protocol=3D"http"
basepath=3D"/" />
<steps>
<invoke
stepid=3D"get index Page"
url=3D"index.html" />
</steps>
</testSpec>
</target>
</project>
Hint anybody ?
Thanks,
Fran=E7ois LETELLIER
INRIA Rh=F4ne-Alpes - ObjectWeb Consortium Executive Committee
email: francois.letellier at objectweb.org - phone: +33 (0)6 84 64 00 24
http://www.objectweb.org - ObjectWeb middleware : provide your applications=
=20
with the kind of freedom they deserve !