5 messages in com.canoo.lists.webtest[Webtest] Bug in clickLink| From | Sent On | Attachments |
|---|---|---|
| Evan Hughes | 23 Oct 2003 14:58 | |
| Dierk Koenig | 04 Nov 2003 04:30 | |
| Dierk Koenig | 04 Nov 2003 07:39 | |
| Richard Hill | 04 Nov 2003 09:08 | |
| Evan Hughes | 05 Nov 2003 06:30 |
| Subject: | [Webtest] Bug in clickLink![]() |
|---|---|
| From: | Evan Hughes (ehug...@jukie.net) |
| Date: | 10/23/2003 02:58:40 PM |
| List: | com.canoo.lists.webtest |
I've found a bug in clicklink. I'm using an off-the-shelf build 379.
My buildfile is: ----- <project name="SimpleTest" basedir="." default="main">
<!-- The location of the webtest-sepecific files (settings, etc) --> <property name="webtest.home" value="webtest"/>
<!-- Locations of the various jar files that we need to run --> <property name="jars.home" value="lib/"/>
<taskdef file="${webtest.home}/webtestTaskdefs.properties"> <classpath> <fileset dir="${jars.home}" includes="*.jar"/> </classpath> </taskdef>
<target name="main"> <testSpec name="Connectivity test"> <config host="www.google.ca" port="80" protocol="http" basepath="" />
<steps> <invoke stepid="Check if we can get the google page" url="" /> <verifytitle text="Google"/>
<setinputfield name="q" value="openconcept"/> <clickbutton label="Google Search"/>
<clicklink stepid="Click the 'openconcept' link"
label="Consulting - Home"
/>
<verifytext text="We strive to give our clients quality, interactive web sites,
at an affordable price"/>
</steps>
</testSpec>
</target>
</project>
-----
Ant output: ----- Buildfile: build.xml
main:
[testSpec] log4j:WARN No appenders could be found for logger
(com.meterware.httpunit.HttpWebResponse).
[testSpec] log4j:WARN Please initialize the log4j system properly.
BUILD FAILED
file:/home/ehughes/openconcept/testing/build.xml:17: Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException: Unexpected
exception caught:
java.io.EOFExceptioncom.canoo.webtest.engine.StepExecutionException: Unexpected
exception caught: java.io.EOFException
at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:409) at
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:139) at
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:184)
at com.canoo.webtest.steps.request.ClickLink.doExecute(ClickLink.java:42)
at com.canoo.webtest.steps.Step.execute(Step.java:125)
at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:72)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
-----
thanks, e




