[Webtest] Newbie errors - On build #362

Kumar, Vaidhyanatha K. webtest@lists.canoo.com
Mon, 4 Aug 2003 07:27:56 -0500


This is a multi-part message in MIME format.

------_=_NextPart_001_01C35A83.D5880728
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am trying to use the SimpleTest.xml after slight tweaks. I get these =
nasty errors ,no matter what I do.
Thanks
Vaidhy
-------------------
BUILD FAILED
file:D:/apps/conoo/webtest/samples/simpleTest.xml:13: Test failed.
Exception raised: com.canoo.webtest.engine.StepExecutionException: =
Unexpected ex
ception caught: =
java.io.IOExceptioncom.canoo.webtest.engine.StepExecutionExcepti
on: Unexpected exception caught: java.io.IOException
        at =
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:307)

----------
Here is my SimpleTest.xml
=20
<project name=3D"SimpleTest" basedir=3D"." default=3D"main">
<property name=3D"webtest.home" location=3D"D:\\apps\\conoo\\webtest" />
   <taskdef file=3D"${webtest.home}/webtestTaskdefs.properties">
    <classpath>
  <filelist=20
       id=3D"docfiles"=20
       dir=3D"D:\\apps\\conoo\\webtest\\lib"
   =
files=3D"Tidy.jar,ant.jar,antrunner.jar,dom4j-1.3-full.jar,easymock.jar,h=
ttpunitWithJTidy.jar,httpunit.jar,jakarta-oro-2.0.4.jar,jcert.jar,jnet.ja=
r,js.jar,jsse.jar,junit.jar,mailapi.jar,nekohtml-0.7.4.jar,optional.jar,s=
ervlet.jar,webtest.jar,xalan.jar,xercesImpl.jar,xml-apis.jar"/>
 </classpath>
</taskdef>
=20
<target name=3D"main">
      <testSpec name=3D"myTest">
         <config=20
   host=3D"hpc67.net.plm.eds.com"
            port=3D"7002"
            protocol=3D"https"
     basepath=3D"tower-foundation/controller" />
         <steps>
            <invoke=20
               stepid=3D"get Login Page"
               url=3D"home" />
            <verifytitle=20
               stepid=3D"we should see the login title"
               text=3D"Login Page" />
         </steps>
      </testSpec>
   </target>
 </project

------_=_NextPart_001_01C35A83.D5880728
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial size=3D2>I am =
trying to use=20
the SimpleTest.xml after slight tweaks. I get these nasty errors ,no =
matter what=20
I do.</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial=20
size=3D2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial=20
size=3D2>Vaidhy</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial=20
size=3D2>-------------------</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial size=3D2>BUILD=20
FAILED<BR>file:D:/apps/conoo/webtest/samples/simpleTest.xml:13: Test=20
failed.<BR>Exception raised: =
com.canoo.webtest.engine.StepExecutionException:=20
Unexpected ex<BR>ception caught:=20
java.io.IOExceptioncom.canoo.webtest.engine.StepExecutionExcepti<BR>on:=20
Unexpected exception caught:=20
java.io.IOException<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:307)<BR>=
</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial=20
size=3D2>----------</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial size=3D2>Here =
is my=20
SimpleTest.xml</FONT></SPAN></DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial =
size=3D2>&lt;project=20
name=3D"SimpleTest" basedir=3D"." default=3D"main"&gt;<BR>&lt;property=20
name=3D"webtest.home" location=3D"D:\\apps\\conoo\\webtest" =
/&gt;<BR>&nbsp;&nbsp;=20
&lt;taskdef=20
file=3D"${webtest.home}/webtestTaskdefs.properties"&gt;<BR>&nbsp;&nbsp;&n=
bsp;=20
&lt;classpath&gt;<BR>&nbsp;&nbsp;&lt;filelist <BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;id=3D"docfiles" <BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;dir=3D"D:\\apps\\conoo\\webtest\\lib"<BR>&nbsp;&nbsp;&n=
bsp;files=3D"Tidy.jar,ant.jar,antrunner.jar,dom4j-1.3-full.jar,easymock.j=
ar,httpunitWithJTidy.jar,httpunit.jar,jakarta-oro-2.0.4.jar,jcert.jar,jne=
t.jar,js.jar,jsse.jar,junit.jar,mailapi.jar,nekohtml-0.7.4.jar,optional.j=
ar,servlet.jar,webtest.jar,xalan.jar,xercesImpl.jar,xml-apis.jar"/&gt;<BR=
>&nbsp;&lt;/classpath&gt;<BR>&lt;/taskdef&gt;</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D469462512-04082003><FONT face=3DArial =
size=3D2>&lt;target=20
name=3D"main"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;testSpec=20
name=3D"myTest"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;config=20
<BR>&nbsp;&nbsp;=20
host=3D"hpc67.net.plm.eds.com"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
port=3D"7002"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
protocol=3D"https"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
basepath=3D"tower-foundation/controller"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
&lt;invoke=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
stepid=3D"get Login=20
Page"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
url=3D"home"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
&lt;verifytitle=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
stepid=3D"we should see the login=20
title"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
text=3D"Login Page" =
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/testSpec&gt;<BR>&nbsp;&nbsp; =
&lt;/target&gt;<BR>&nbsp;</FONT></SPAN><SPAN=20
class=3D469462512-04082003><FONT face=3DArial=20
size=3D2>&lt;/project</DIV></FONT></SPAN></BODY></HTML>

------_=_NextPart_001_01C35A83.D5880728--