[Webtest] Problem with SimpleTest.xml

sumathi P webtest@lists.canoo.com
6 Jul 2004 12:12:03 -0000


 This is a multipart mime message


--Next_1089115923---0-202.54.124.153-31191
Content-type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0A&nbsp; Hi ,<BR>=0AThis is my SimpleTest.xml ,<BR>=0A-----------------=
--------------------------------------<BR>=0A&lt;project name=3D&quot;Simpl=
eTest&quot; basedir=3D&quot;.&quot; default=3D&quot;main&quot;&gt;<BR>=0A<B=
R>=0A&nbsp;  &lt;taskdef file=3D&quot;e:/webtest/webtestTaskdefs.properties=
&quot;&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &lt;classpath&gt;<BR>=0A&nbsp; &nbsp;=
 &nbsp; &nbsp;  &lt;fileset dir=3D&quot;e:/webtest/lib&quot; includes=3D&qu=
ot;e:/webtest/lib/*.jar&quot;/&gt;<BR>=0A&nbsp; &nbsp; &nbsp;&nbsp;  &lt;/c=
lasspath&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; host=3D&quot;localhost&quot;<=
BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; port=3D&quot;80&quot;<BR>=
=0A&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protocol=3D&quot;http&quot;<BR=
>=0A&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; basepath=3D&quot;myApp&quot; =
/&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp;  &lt;steps&gt;<BR>=0A&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &lt;invoke <BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp;  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; &nbsp; &nbsp; &nbsp; &nbsp; &lt;verifytitle <BR>=0A&nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  stepid=3D&quot;we should see the log=
in 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;/ste=
ps&gt;<BR>=0A&nbsp; &nbsp; &nbsp; &lt;/testSpec&gt;<BR>=0A&nbsp;  &lt;/targ=
et&gt;<BR>=0A&lt;/project&gt;<BR>=0A---------------------------------------=
----------------<BR>=0AWhen i tried to build that file using ....<BR>=0Aant=
 -d -buildfile SimpleTest.xml ,<BR>=0AI'm getting the following Exception..=
.<BR>=0A-------------------------------------------------------<BR>=0AE:\we=
btest\samples&gt;ant -d -buildfile Test.xml<BR>=0AApache Ant version 1.6.1 =
compiled on February 12 2004<BR>=0ABuildfile: Test.xml<BR>=0AAdding referen=
ce: ant.PropertyHelper<BR>=0ADetected Java version: 1.4 in: D:\j2sdk1.4.2_0=
3\jre<BR>=0ADetected OS: Windows XP<BR>=0AAdding reference: ant.ComponentHe=
lper<BR>=0ASetting ro project property: ant.version -&gt; Apache Ant versio=
n 1.6.1 compiled on February 12 2004<BR>=0ASetting ro project property: ant=
.file -&gt; E:\webtest\samples\Test.xml<BR>=0AAdding reference: ant.project=
Helper<BR>=0AAdding reference: ant.parsing.context<BR>=0AAdding reference: =
ant.targets<BR>=0Aparsing buildfile E:\webtest\samples\Test.xml with URI =
=3D file:///E:/webtest/samples/Test.xml<BR>=0Aresolving systemId: file:///E=
:/webtest/samples/WebTest.dtd<BR>=0ASetting ro project property: ant.projec=
t.name -&gt; Test<BR>=0AAdding reference: Test<BR>=0ASetting ro project pro=
perty: ant.file.Test -&gt; E:\webtest\samples\Test.xml<BR>=0AProject base d=
ir set to: E:\webtest\samples<BR>=0A +Target:<BR>=0A +Target: main<BR>=0ACo=
uld not load a dependent class (com/sun/media/jai/codec/FileSeekableStream)=
 for type image<BR>=0ACould not load a dependent class (com/jcraft/jsch/Use=
rInfo) for type sshexec<BR>=0ACould not load a dependent class (com/jcraft/=
jsch/UserInfo) for type scp<BR>=0ACould not load a dependent class (org/apa=
che/commons/net/SocketClient) for type rexec<BR>=0ACould not load class (or=
g.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion<BR>=0AC=
ould not load a dependent class (com/starbase/starteam/Item) for type stlis=
t<BR>=0ACould not load a dependent class (org/apache/commons/net/SocketClie=
nt) for type telnet<BR>=0ACould not load a dependent class (org/apache/comm=
ons/net/ftp/FTP) for type ftp<BR>=0ACould not load a dependent class (jdepe=
nd/xmlui/JDepend) for type jdepend<BR>=0ACould not load a dependent class (=
junit/framework/TestListener) for type junit<BR>=0ACould not load a depende=
nt class (com/starbase/starteam/Item) for type stcheckin<BR>=0ACould not lo=
ad a dependent class (com/starbase/starteam/Item) for type stcheckout<BR>=
=0Afileset: Setup scanner in dir E:\webtest\lib with patternSet{ includes: =
[e:/webtest/lib/*.jar] exc<BR>=0AFinding class com.canoo.webtest.steps.veri=
fy.VerifyElementText<BR>=0A<BR>=0ABUILD FAILED<BR>=0AE:\webtest\samples\Tes=
t.xml:8: taskdef class com.canoo.webtest.steps.verify.VerifyElementText can=
n<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.taskdefs.Define=
r.addDefinition(Definer.java:460)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.=
apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:281)<BR>=0A&n=
bsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.taskdefs.Definer.execute(=
Definer.java:214)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant=
.UnknownElement.execute(UnknownElement.java:269)<BR>=0A&nbsp; &nbsp; &nbsp;=
 &nbsp; at org.apache.tools.ant.Task.perform(Task.java:364)<BR>=0A&nbsp; &n=
bsp; &nbsp; &nbsp; at org.apache.tools.ant.Target.execute(Target.java:301)<=
BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.helper.ProjectHel=
per2.parse(ProjectHelper2.java:135)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at or=
g.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:89)<BR=
>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Main.runBuild(Main.=
java:617)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Main.st=
artAnt(Main.java:183)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools=
.ant.launch.Launcher.run(Launcher.java:197)<BR>=0A&nbsp; &nbsp; &nbsp; &nbs=
p; at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)<BR>=0ACau=
sed by: java.lang.ClassNotFoundException: com.canoo.webtest.steps.verify.Ve=
rifyElementText<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.A=
ntClassLoader.findClassInComponents(AntClassLoader.java:1150)<BR>=0A&nbsp; =
&nbsp; &nbsp; &nbsp; at org.apache.tools.ant.AntClassLoader.findClass(AntCl=
assLoader.java:1091)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.=
ant.AntClassLoader.loadClass(AntClassLoader.java:961)<BR>=0A&nbsp; &nbsp; &=
nbsp; &nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:235)<BR>=
=0A&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader.loadClassInternal(C=
lassLoader.java:302)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.f=
orName0(Native Method)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class=
.forName(Class.java:219)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.to=
ols.ant.taskdefs.Definer.addDefinition(Definer.java:434)<BR>=0A&nbsp; &nbsp=
; &nbsp; &nbsp; ... 11 more<BR>=0A--- Nested Exception ---<BR>=0Ajava.lang.=
ClassNotFoundException: com.canoo.webtest.steps.verify.VerifyElementText<BR=
>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.AntClassLoader.find=
ClassInComponents(AntClassLoader.java:1150)<BR>=0A&nbsp; &nbsp; &nbsp; &nbs=
p; at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:109=
1)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.AntClassLoader=
.loadClass(AntClassLoader.java:961)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at ja=
va.lang.ClassLoader.loadClass(ClassLoader.java:235)<BR>=0A&nbsp; &nbsp; &nb=
sp; &nbsp; at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)=
<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.forName0(Native Metho=
d)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.forName(Class.java:=
219)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.taskdefs.Def=
iner.addDefinition(Definer.java:434)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at o=
rg.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:281)<BR>=
=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.taskdefs.Definer.exe=
cute(Definer.java:214)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tool=
s.ant.UnknownElement.execute(UnknownElement.java:269)<BR>=0A&nbsp; &nbsp; &=
nbsp; &nbsp; at org.apache.tools.ant.Task.perform(Task.java:364)<BR>=0A&nbs=
p; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Target.execute(Target.java:=
301)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.helper.Proje=
ctHelper2.parse(ProjectHelper2.java:135)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; =
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:8=
9)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Main.runBuild(=
Main.java:617)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.tools.ant.Ma=
in.startAnt(Main.java:183)<BR>=0A&nbsp; &nbsp; &nbsp; &nbsp; at org.apache.=
tools.ant.launch.Launcher.run(Launcher.java:197)<BR>=0A&nbsp; &nbsp; &nbsp;=
 &nbsp; at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)<BR>=
=0ATotal time: 3 seconds<BR>=0A--------------------------------------------=
-----------<BR>=0A<BR>=0Acan any one pls help in this regard !!!<BR>=0AThan=
ks in Advance !=0A</P>=0A=0A=0A<br><br>=0A<A target=3D"_blank" HREF=3D"http=
://clients.rediff.com/signature/track_sig.asp"><IMG SRC=3D"http://ads.redif=
f.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BO=
RDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A
--Next_1089115923---0-202.54.124.153-31191
Content-type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

 =A0Hi ,=0AThis is my SimpleTest.xml ,=0A----------------------------------=
---------------------=0A<project name=3D"SimpleTest" basedir=3D"." default=
=3D"main">=0A=0A   <taskdef file=3D"e:/webtest/webtestTaskdefs.properties">=
=0A      <classpath>=0A         <fileset dir=3D"e:/webtest/lib" includes=3D=
"e:/webtest/lib/*.jar"/>=0A	   </classpath>=0A   </taskdef>=0A=0A   <target=
 name=3D"main">=0A      <testSpec name=3D"myTest">=0A         <config =0A  =
          host=3D"localhost"=0A            port=3D"80"=0A            protoc=
ol=3D"http"=0A            basepath=3D"myApp" />=0A         <steps>=0A      =
      <invoke =0A               stepid=3D"get Login Page"=0A               =
url=3D"login" />=0A            <verifytitle =0A               stepid=3D"we =
should see the login title"=0A               text=3D"Login Page" />=0A     =
    </steps>=0A      </testSpec>=0A   </target>=0A</project>=0A------------=
-------------------------------------------=0AWhen i tried to build that fi=
le using ....=0Aant -d -buildfile SimpleTest.xml ,=0AI'm getting the follow=
ing Exception...=0A-------------------------------------------------------=
=0AE:\webtest\samples>ant -d -buildfile Test.xml=0AApache Ant version 1.6.1=
 compiled on February 12 2004=0ABuildfile: Test.xml=0AAdding reference: ant=
.PropertyHelper=0ADetected Java version: 1.4 in: D:\j2sdk1.4.2_03\jre=0ADet=
ected OS: Windows XP=0AAdding reference: ant.ComponentHelper=0ASetting ro p=
roject property: ant.version -> Apache Ant version 1.6.1 compiled on Februa=
ry 12 2004=0ASetting ro project property: ant.file -> E:\webtest\samples\Te=
st.xml=0AAdding reference: ant.projectHelper=0AAdding reference: ant.parsin=
g.context=0AAdding reference: ant.targets=0Aparsing buildfile E:\webtest\sa=
mples\Test.xml with URI =3D file:///E:/webtest/samples/Test.xml=0Aresolving=
 systemId: file:///E:/webtest/samples/WebTest.dtd=0ASetting ro project prop=
erty: ant.project.name -> Test=0AAdding reference: Test=0ASetting ro projec=
t property: ant.file.Test -> E:\webtest\samples\Test.xml=0AProject base dir=
 set to: E:\webtest\samples=0A +Target:=0A +Target: main=0ACould not load a=
 dependent class (com/sun/media/jai/codec/FileSeekableStream) for type imag=
e=0ACould not load a dependent class (com/jcraft/jsch/UserInfo) for type ss=
hexec=0ACould not load a dependent class (com/jcraft/jsch/UserInfo) for typ=
e scp=0ACould not load a dependent class (org/apache/commons/net/SocketClie=
nt) for type rexec=0ACould not load class (org.apache.tools.ant.tasksdefs.c=
vslib.CvsVersion) for type cvsversion=0ACould not load a dependent class (c=
om/starbase/starteam/Item) for type stlist=0ACould not load a dependent cla=
ss (org/apache/commons/net/SocketClient) for type telnet=0ACould not load a=
 dependent class (org/apache/commons/net/ftp/FTP) for type ftp=0ACould not =
load a dependent class (jdepend/xmlui/JDepend) for type jdepend=0ACould not=
 load a dependent class (junit/framework/TestListener) for type junit=0ACou=
ld not load a dependent class (com/starbase/starteam/Item) for type stcheck=
in=0ACould not load a dependent class (com/starbase/starteam/Item) for type=
 stcheckout=0Afileset: Setup scanner in dir E:\webtest\lib with patternSet{=
 includes: [e:/webtest/lib/*.jar] exc=0AFinding class com.canoo.webtest.ste=
ps.verify.VerifyElementText=0A=0ABUILD FAILED=0AE:\webtest\samples\Test.xml=
:8: taskdef class com.canoo.webtest.steps.verify.VerifyElementText cann=0A =
       at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:=
460)=0A        at org.apache.tools.ant.taskdefs.Definer.loadProperties(Defi=
ner.java:281)=0A        at org.apache.tools.ant.taskdefs.Definer.execute(De=
finer.java:214)=0A        at org.apache.tools.ant.UnknownElement.execute(Un=
knownElement.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.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelpe=
r2.java:135)=0A        at org.apache.tools.ant.ProjectHelper.configureProje=
ct(ProjectHelper.java:89)=0A        at org.apache.tools.ant.Main.runBuild(M=
ain.java:617)=0A        at org.apache.tools.ant.Main.startAnt(Main.java:183=
)=0A        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)=
=0A        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)=
=0ACaused by: java.lang.ClassNotFoundException: com.canoo.webtest.steps.ver=
ify.VerifyElementText=0A        at org.apache.tools.ant.AntClassLoader.find=
ClassInComponents(AntClassLoader.java:1150)=0A        at org.apache.tools.a=
nt.AntClassLoader.findClass(AntClassLoader.java:1091)=0A        at org.apac=
he.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:961)=0A        at=
 java.lang.ClassLoader.loadClass(ClassLoader.java:235)=0A        at java.la=
ng.ClassLoader.loadClassInternal(ClassLoader.java:302)=0A        at java.la=
ng.Class.forName0(Native Method)=0A        at java.lang.Class.forName(Class=
.java:219)=0A        at org.apache.tools.ant.taskdefs.Definer.addDefinition=
(Definer.java:434)=0A        ... 11 more=0A--- Nested Exception ---=0Ajava.=
lang.ClassNotFoundException: com.canoo.webtest.steps.verify.VerifyElementTe=
xt=0A        at org.apache.tools.ant.AntClassLoader.findClassInComponents(A=
ntClassLoader.java:1150)=0A        at org.apache.tools.ant.AntClassLoader.f=
indClass(AntClassLoader.java:1091)=0A        at org.apache.tools.ant.AntCla=
ssLoader.loadClass(AntClassLoader.java:961)=0A        at java.lang.ClassLoa=
der.loadClass(ClassLoader.java:235)=0A        at java.lang.ClassLoader.load=
ClassInternal(ClassLoader.java:302)=0A        at java.lang.Class.forName0(N=
ative Method)=0A        at java.lang.Class.forName(Class.java:219)=0A      =
  at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:434)=
=0A        at org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.=
java:281)=0A        at org.apache.tools.ant.taskdefs.Definer.execute(Define=
r.java:214)=0A        at org.apache.tools.ant.UnknownElement.execute(Unknow=
nElement.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.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.j=
ava:135)=0A        at org.apache.tools.ant.ProjectHelper.configureProject(P=
rojectHelper.java:89)=0A        at org.apache.tools.ant.Main.runBuild(Main.=
java:617)=0A        at org.apache.tools.ant.Main.startAnt(Main.java:183)=0A=
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)=0A  =
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)=0ATota=
l time: 3 seconds=0A-------------------------------------------------------=
=0A=0Acan any one pls help in this regard !!!=0AThanks in Advance !=0A=0A
--Next_1089115923---0-202.54.124.153-31191--