[Webtest] Bug in clickLink
Evan Hughes
webtest@lists.canoo.com
Wed, 5 Nov 2003 09:30:29 -0500
Thanks for the tip. I suspected that it was an HttpUnit thing.
e
On Tue, Nov 04, 2003 at 09:08:42AM -0800, Richard Hill wrote:
> Evan,
> this could be an issue with httpunit. See if this archive helps:
> http://lists.canoo.com/pipermail/webtest/2003q3/000951.html
>
> - Richard
>
> -----Original Message-----
> From: Evan Hughes [mailto:ehughes@jukie.net]
> Sent: Thursday, October 23, 2003 2:59 PM
> To: webtest@gate.canoo.com
> Subject: [Webtest] Bug in clickLink
>
>
> 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.ja
> va: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
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest