[Webtest] (no subject)

sumathi P webtest@lists.canoo.com
21 Jun 2004 07:50:39 -0000


 This is a multipart mime message


--Next_1087804239---0-202.54.124.151-13503
Content-type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0A&nbsp; <BR>=0AHi , <BR>=0A&nbsp; &nbsp; I'm through with the installa=
tion process . I' was trying to work with the sample test , 'SimpleTest.xml=
' <BR>=0Awhen i did ' ant -buildfile SimpleTest.xml' i'm getting the follow=
ing exception , <BR>=0A<BR>=0AD:\WebTest\doc\samples&gt;ant -buildfile Simp=
leTest.xml<BR>=0ABuildfile: SimpleTest.xml<BR>=0A<BR>=0Amain:<BR>=0A[testSp=
ec] ERROR (Step.java:333) - Cannot handle unexpected exception in step Invo=
kePage at D:\WebTes<BR>=0A[testSpec] java.io.IOException<BR>=0A[testSpec]&n=
bsp; &nbsp; at sun.net.www.protocol.http.HttpURLConnection.getInputStream(H=
ttpURLConnection.java:5<BR>=0A[testSpec]&nbsp; &nbsp; at java.net.HttpURLCo=
nnection.getResponseCode(HttpURLConnection.java:272)<BR>=0A[testSpec]&nbsp;=
 &nbsp; at com.meterware.httpunit.HttpWebResponse.readResponseHeader(HttpWe=
bResponse.java:159)<BR>=0A[testSpec]&nbsp; &nbsp; at com.meterware.httpunit=
.HttpWebResponse.readHeaders(HttpWebResponse.java:197)<BR>=0A[testSpec]&nbs=
p; &nbsp; at com.meterware.httpunit.HttpWebResponse.&lt;init&gt;(HttpWebRes=
ponse.java:53)<BR>=0A[testSpec]&nbsp; &nbsp; at com.meterware.httpunit.WebC=
onversation.newResponse(WebConversation.java:61)<BR>=0A[testSpec]&nbsp; &nb=
sp; at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:162)<BR>=
=0A[testSpec]&nbsp; &nbsp; at com.meterware.httpunit.WebWindow.getSubframeR=
esponse(WebWindow.java:125)<BR>=0A[testSpec]&nbsp; &nbsp; at com.meterware.=
httpunit.WebWindow.getResponse(WebWindow.java:118)<BR>=0A[testSpec]&nbsp; &=
nbsp; at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:99)<BR=
>=0A[testSpec]&nbsp; &nbsp; at com.meterware.httpunit.WebClient.getResponse=
(WebClient.java:86)<BR>=0A[testSpec]&nbsp; &nbsp; at com.canoo.webtest.step=
s.request.Target.getResponse(Target.java:179)<BR>=0A[testSpec]&nbsp; &nbsp;=
 at com.canoo.webtest.steps.request.Target$2.call(Target.java:156)<BR>=0A[t=
estSpec]&nbsp; &nbsp; at com.canoo.webtest.steps.request.Target.protectedGo=
to(Target.java:106)<BR>=0A[testSpec]&nbsp; &nbsp; at com.canoo.webtest.step=
s.request.Target.gotoTarget(Target.java:153)<BR>=0A[testSpec]&nbsp; &nbsp; =
at com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:37)=
<BR>=0A[testSpec]&nbsp; &nbsp; at com.canoo.webtest.steps.Step.execute(Step=
.java:99)<BR>=0A[testSpec]&nbsp; &nbsp; at com.canoo.webtest.engine.Engine.=
executeSteps(Engine.java:26)<BR>=0A[testSpec]&nbsp; &nbsp; at com.canoo.web=
test.ant.TestSpecificationTask.execute(TestSpecificationTask.java:68)<BR>=
=0A[testSpec]&nbsp; &nbsp; at org.apache.tools.ant.UnknownElement.execute(U=
nknownElement.java:269)<BR>=0A[testSpec]&nbsp; &nbsp; at org.apache.tools.a=
nt.Task.perform(Task.java:364)<BR>=0A[testSpec]&nbsp; &nbsp; at org.apache.=
tools.ant.Target.execute(Target.java:301)<BR>=0A[testSpec]&nbsp; &nbsp; at =
org.apache.tools.ant.Target.performTasks(Target.java:328)<BR>=0A[testSpec]&=
nbsp; &nbsp; at org.apache.tools.ant.Project.executeTarget(Project.java:121=
5)<BR>=0A[testSpec]&nbsp; &nbsp; at org.apache.tools.ant.Project.executeTar=
gets(Project.java:1063)<BR>=0A[testSpec]&nbsp; &nbsp; at org.apache.tools.a=
nt.Main.runBuild(Main.java:632)<BR>=0A[testSpec]&nbsp; &nbsp; at org.apache=
.tools.ant.Main.startAnt(Main.java:183)<BR>=0A[testSpec]&nbsp; &nbsp; at or=
g.apache.tools.ant.launch.Launcher.run(Launcher.java:197)<BR>=0A[testSpec]&=
nbsp; &nbsp; at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)=
<BR>=0A[testSpec] Caused by: java.net.ConnectException: Connection refused:=
 connect<BR>=0A[testSpec]&nbsp; &nbsp; at java.net.PlainSocketImpl.socketCo=
nnect(Native Method)<BR>=0A[testSpec]&nbsp; &nbsp; at java.net.PlainSocketI=
mpl.doConnect(PlainSocketImpl.java:305)<BR>=0A[testSpec]&nbsp; &nbsp; at ja=
va.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)<BR>=0A[te=
stSpec]&nbsp; &nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.ja=
va:158)<BR>=0A[testSpec]&nbsp; &nbsp; at java.net.Socket.connect(Socket.jav=
a:452)<BR>=0A[testSpec]&nbsp; &nbsp; at java.net.Socket.connect(Socket.java=
:402)<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.NetworkClient.doConnect(Netw=
orkClient.java:139)<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.www.http.HttpC=
lient.openServer(HttpClient.java:402)<BR>=0A[testSpec]&nbsp; &nbsp; at sun.=
net.www.http.HttpClient.openServer(HttpClient.java:618)<BR>=0A[testSpec]&nb=
sp; &nbsp; at sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:306)=
<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.www.http.HttpClient.&lt;init&gt;(=
HttpClient.java:267)<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.www.http.Http=
Client.New(HttpClient.java:339)<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.ww=
w.http.HttpClient.New(HttpClient.java:320)<BR>=0A[testSpec]&nbsp; &nbsp; at=
 sun.net.www.http.HttpClient.New(HttpClient.java:315)<BR>=0A[testSpec]&nbsp=
; &nbsp; at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpUR=
LConnection.java:512<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.www.protocol.=
http.HttpURLConnection.connect(HttpURLConnection.java:489)<BR>=0A[testSpec]=
&nbsp; &nbsp; at sun.net.www.protocol.http.HttpURLConnection.getInputStream=
(HttpURLConnection.java:6<BR>=0A[testSpec]&nbsp; &nbsp; at sun.net.www.prot=
ocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.jav<BR>=0A[=
testSpec]&nbsp; &nbsp; at com.meterware.httpunit.HttpWebResponse.loadHeader=
s(HttpWebResponse.java:217)<BR>=0A[testSpec]&nbsp; &nbsp; at com.meterware.=
httpunit.HttpWebResponse.readHeaders(HttpWebResponse.java:195)<BR>=0A[testS=
pec]&nbsp; &nbsp; ... 25 more<BR>=0A<BR>=0ABUILD FAILED<BR>=0AD:\WebTest\do=
c\samples\SimpleTest.xml:10: Test failed.<BR>=0AException raised: com.canoo=
.webtest.engine.StepExecutionException: Unexpected exception caught: java.i=
<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at com.canoo.webtest.steps.Step.handleUn=
expectedException(Step.java:334)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at com.c=
anoo.webtest.steps.request.Target.protectedGoto(Target.java:115)<BR>=0A&nbs=
p; &nbsp; &nbsp; &nbsp; at com.canoo.webtest.steps.request.Target.gotoTarge=
t(Target.java:153)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at com.canoo.webtest.s=
teps.request.InvokePage.doExecute(InvokePage.java:37)<BR>=0A&nbsp; &nbsp; &=
nbsp; &nbsp; at com.canoo.webtest.steps.Step.execute(Step.java:99)<BR>=0A&n=
bsp; &nbsp; &nbsp; &nbsp; at com.canoo.webtest.engine.Engine.executeSteps(E=
ngine.java:26)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at com.canoo.webtest.ant.T=
estSpecificationTask.execute(TestSpecificationTask.java:68)<BR>=0A&nbsp; &n=
bsp; &nbsp; &nbsp; at org.apache.tools.ant.UnknownElement.execute(UnknownEl=
ement.java:269)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.T=
ask.perform(Task.java:364)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.=
tools.ant.Target.execute(Target.java:301)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp;=
 at org.apache.tools.ant.Target.performTasks(Target.java:328)<BR>=0A&nbsp; =
&nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Project.executeTarget(Project.=
java:1215)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Projec=
t.executeTargets(Project.java:1063)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at or=
g.apache.tools.ant.Main.runBuild(Main.java:632)<BR>=0A&nbsp; &nbsp; &nbsp; =
&nbsp; at org.apache.tools.ant.Main.startAnt(Main.java:183)<BR>=0A&nbsp; &n=
bsp; &nbsp; &nbsp; at org.apache.tools.ant.launch.Launcher.run(Launcher.jav=
a:197)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.launch.Lau=
ncher.main(Launcher.java:56)<BR>=0A<BR>=0A<BR>=0ATotal time: 7 seconds<BR>=
=0A.............................................<BR>=0AWhat cud be the prob=
lem ...<BR>=0Aand What server does this application use ?<BR>=0A<BR>=0A<BR>=
=0Aand here is my SimpleTest.xml ,<BR>=0A<BR>=0A&lt;project name=3D&quot;Si=
mpleTest&quot; basedir=3D&quot;.&quot; default=3D&quot;main&quot;&gt;<BR>=
=0A<BR>=0A&nbsp;  &lt;taskdef file=3D&quot;D:/WebTest/webtestTaskdefs.prope=
rties&quot;&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &lt;classpath&gt;<BR>=0A&nbsp; &=
nbsp; &nbsp; &nbsp;  &lt;fileset dir=3D&quot;D:/WebTest/&quot; includes=3D&=
quot;**/lib/*.jar&quot;/&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &lt;/classpath&gt;<=
BR>=0A&nbsp;  &lt;/taskdef&gt;<BR>=0A<BR>=0A&nbsp;  &lt;target name=3D&quot=
;main&quot;&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &lt;testSpec name=3D&quot;myTest=
&quot;&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp;  &lt;config <BR>=0A&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; host=3D&quot;localhost&quot;<BR>=0A&nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; port=3D&quot;8080&quot;<BR>=0A&nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; protocol=3D&quot;http&quot;<BR>=0A&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; basepath=3D&quot;myApp&quot; /&gt;<BR>=0A&nb=
sp; &nbsp; &nbsp; &nbsp;  &lt;steps&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &lt;invoke <BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp;  stepid=3D&quot;get Login Page&quot;<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp;  url=3D&quot;login&quot; /&gt;<BR>=0A&nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &lt;verifytitle <BR>=0A&nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp;  stepid=3D&quot;we should see the login title&quot;<=
BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  text=3D&quot;Login =
Page&quot; /&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp;  &lt;/steps&gt;<BR>=0A&n=
bsp; &nbsp; &nbsp; &lt;/testSpec&gt;<BR>=0A&nbsp;  &lt;/target&gt;<BR>=0A&l=
t;/project&gt;<BR>=0A--------------------------<BR>=0Aplease tell me what's=
 the problem !!:(<BR>=0A=0A</P>=0A=0A=0A<br><br>=0A<A target=3D"_blank" HRE=
F=3D"http://clients.rediff.com/signature/track_sig.asp"><IMG SRC=3D"http://=
ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@B=
ottom" BORDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A
--Next_1087804239---0-202.54.124.151-13503
Content-type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

 =A0=0AHi , =0A    I'm through with the installation process . I' was tryin=
g to work with the sample test , 'SimpleTest.xml' =0Awhen i did ' ant -buil=
dfile SimpleTest.xml' i'm getting the following exception , =0A=0AD:\WebTes=
t\doc\samples>ant -buildfile SimpleTest.xml=0ABuildfile: SimpleTest.xml=0A=
=0Amain:=0A[testSpec] ERROR (Step.java:333) - Cannot handle unexpected exce=
ption in step InvokePage at D:\WebTes=0A[testSpec] java.io.IOException=0A[t=
estSpec]    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(H=
ttpURLConnection.java:5=0A[testSpec]    at java.net.HttpURLConnection.getRe=
sponseCode(HttpURLConnection.java:272)=0A[testSpec]    at com.meterware.htt=
punit.HttpWebResponse.readResponseHeader(HttpWebResponse.java:159)=0A[testS=
pec]    at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebRespon=
se.java:197)=0A[testSpec]    at com.meterware.httpunit.HttpWebResponse.<ini=
t>(HttpWebResponse.java:53)=0A[testSpec]    at com.meterware.httpunit.WebCo=
nversation.newResponse(WebConversation.java:61)=0A[testSpec]    at com.mete=
rware.httpunit.WebWindow.getResource(WebWindow.java:162)=0A[testSpec]    at=
 com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125)=
=0A[testSpec]    at com.meterware.httpunit.WebWindow.getResponse(WebWindow.=
java:118)=0A[testSpec]    at com.meterware.httpunit.WebWindow.getResponse(W=
ebWindow.java:99)=0A[testSpec]    at com.meterware.httpunit.WebClient.getRe=
sponse(WebClient.java:86)=0A[testSpec]    at com.canoo.webtest.steps.reques=
t.Target.getResponse(Target.java:179)=0A[testSpec]    at com.canoo.webtest.=
steps.request.Target$2.call(Target.java:156)=0A[testSpec]    at com.canoo.w=
ebtest.steps.request.Target.protectedGoto(Target.java:106)=0A[testSpec]    =
at com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:153)=0A[te=
stSpec]    at com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePa=
ge.java:37)=0A[testSpec]    at com.canoo.webtest.steps.Step.execute(Step.ja=
va:99)=0A[testSpec]    at com.canoo.webtest.engine.Engine.executeSteps(Engi=
ne.java:26)=0A[testSpec]    at com.canoo.webtest.ant.TestSpecificationTask.=
execute(TestSpecificationTask.java:68)=0A[testSpec]    at org.apache.tools.=
ant.UnknownElement.execute(UnknownElement.java:269)=0A[testSpec]    at org.=
apache.tools.ant.Task.perform(Task.java:364)=0A[testSpec]    at org.apache.=
tools.ant.Target.execute(Target.java:301)=0A[testSpec]    at org.apache.too=
ls.ant.Target.performTasks(Target.java:328)=0A[testSpec]    at org.apache.t=
ools.ant.Project.executeTarget(Project.java:1215)=0A[testSpec]    at org.ap=
ache.tools.ant.Project.executeTargets(Project.java:1063)=0A[testSpec]    at=
 org.apache.tools.ant.Main.runBuild(Main.java:632)=0A[testSpec]    at org.a=
pache.tools.ant.Main.startAnt(Main.java:183)=0A[testSpec]    at org.apache.=
tools.ant.launch.Launcher.run(Launcher.java:197)=0A[testSpec]    at org.apa=
che.tools.ant.launch.Launcher.main(Launcher.java:56)=0A[testSpec] Caused by=
: java.net.ConnectException: Connection refused: connect=0A[testSpec]    at=
 java.net.PlainSocketImpl.socketConnect(Native Method)=0A[testSpec]    at j=
ava.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)=0A[testSpec]   =
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)=0A[=
testSpec]    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)=
=0A[testSpec]    at java.net.Socket.connect(Socket.java:452)=0A[testSpec]  =
  at java.net.Socket.connect(Socket.java:402)=0A[testSpec]    at sun.net.Ne=
tworkClient.doConnect(NetworkClient.java:139)=0A[testSpec]    at sun.net.ww=
w.http.HttpClient.openServer(HttpClient.java:402)=0A[testSpec]    at sun.ne=
t.www.http.HttpClient.openServer(HttpClient.java:618)=0A[testSpec]    at su=
n.net.www.http.HttpClient.<init>(HttpClient.java:306)=0A[testSpec]    at su=
n.net.www.http.HttpClient.<init>(HttpClient.java:267)=0A[testSpec]    at su=
n.net.www.http.HttpClient.New(HttpClient.java:339)=0A[testSpec]    at sun.n=
et.www.http.HttpClient.New(HttpClient.java:320)=0A[testSpec]    at sun.net.=
www.http.HttpClient.New(HttpClient.java:315)=0A[testSpec]    at sun.net.www=
.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512=0A=
[testSpec]    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpUR=
LConnection.java:489)=0A[testSpec]    at sun.net.www.protocol.http.HttpURLC=
onnection.getInputStream(HttpURLConnection.java:6=0A[testSpec]    at sun.ne=
t.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.j=
av=0A[testSpec]    at com.meterware.httpunit.HttpWebResponse.loadHeaders(Ht=
tpWebResponse.java:217)=0A[testSpec]    at com.meterware.httpunit.HttpWebRe=
sponse.readHeaders(HttpWebResponse.java:195)=0A[testSpec]    ... 25 more=0A=
=0ABUILD FAILED=0AD:\WebTest\doc\samples\SimpleTest.xml:10: Test failed.=0A=
Exception raised: com.canoo.webtest.engine.StepExecutionException: Unexpect=
ed exception caught: java.i=0A        at com.canoo.webtest.steps.Step.handl=
eUnexpectedException(Step.java:334)=0A        at com.canoo.webtest.steps.re=
quest.Target.protectedGoto(Target.java:115)=0A        at com.canoo.webtest.=
steps.request.Target.gotoTarget(Target.java:153)=0A        at com.canoo.web=
test.steps.request.InvokePage.doExecute(InvokePage.java:37)=0A        at co=
m.canoo.webtest.steps.Step.execute(Step.java:99)=0A        at com.canoo.web=
test.engine.Engine.executeSteps(Engine.java:26)=0A        at com.canoo.webt=
est.ant.TestSpecificationTask.execute(TestSpecificationTask.java:68)=0A    =
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)=
=0A        at org.apache.tools.ant.Task.perform(Task.java:364)=0A        at=
 org.apache.tools.ant.Target.execute(Target.java:301)=0A        at org.apac=
he.tools.ant.Target.performTasks(Target.java:328)=0A        at org.apache.t=
ools.ant.Project.executeTarget(Project.java:1215)=0A        at org.apache.t=
ools.ant.Project.executeTargets(Project.java:1063)=0A        at org.apache.=
tools.ant.Main.runBuild(Main.java:632)=0A        at org.apache.tools.ant.Ma=
in.startAnt(Main.java:183)=0A        at org.apache.tools.ant.launch.Launche=
r.run(Launcher.java:197)=0A        at org.apache.tools.ant.launch.Launcher.=
main(Launcher.java:56)=0A=0A=0ATotal time: 7 seconds=0A....................=
.........................=0AWhat cud be the problem ...=0Aand What server d=
oes this application use ?=0A=0A=0Aand here is my SimpleTest.xml ,=0A=0A<pr=
oject name=3D"SimpleTest" basedir=3D"." default=3D"main">=0A=0A   <taskdef =
file=3D"D:/WebTest/webtestTaskdefs.properties">=0A      <classpath>=0A     =
    <fileset dir=3D"D:/WebTest/" includes=3D"**/lib/*.jar"/>=0A      </clas=
spath>=0A   </taskdef>=0A=0A   <target name=3D"main">=0A      <testSpec nam=
e=3D"myTest">=0A         <config =0A            host=3D"localhost"=0A      =
      port=3D"8080"=0A            protocol=3D"http"=0A            basepath=
=3D"myApp" />=0A         <steps>=0A            <invoke =0A               st=
epid=3D"get Login Page"=0A               url=3D"login" />=0A            <ve=
rifytitle =0A               stepid=3D"we should see the login title"=0A    =
           text=3D"Login Page" />=0A         </steps>=0A      </testSpec>=
=0A   </target>=0A</project>=0A--------------------------=0Aplease tell me =
what's the problem !!:(=0A=0A=0A
--Next_1087804239---0-202.54.124.151-13503--