[Webtest] Bug in clickLink
Dierk Koenig
webtest@lists.canoo.com
Tue, 4 Nov 2003 13:30:36 +0100
Hi Evan,
this does not seem to be a clicklink issue.
HttpUnit gets an End-Of-File (EOF) exception while trying to get
the page.
You may try to get the same page with a direct invoke.
If this fails with the same message, it is likely to be
a server-side issue (maybe sending wrong content-length
headers).
cheers
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Evan Hughes
> Sent: Donnerstag, 23. Oktober 2003 23:59
> To: webtest@lists.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.StepExecutionExceptio
> n: Unexpected exception caught: java.io.EOFException
> at
> com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:4
> 09) at
> com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:1
> 39) 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(TestSpecificat
> ionTask.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
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>