RE: Centipede Usage issues
"Manocha, Nikunj" <[email protected]>
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <C34B80A4EF89E24491CBE1E50D047C64293DA6@sghdqms03.global.ad.sabre.com> |
Hi All,
Thanks to everyone. I got it working finally.
I had to install the junit.jar file in the ant home library file as this is an optional task. I am anew user and so missed this in the fine print of installation.
Thanx to all for the help. I am making a lot of progress and learning a lot about centipede and actually starting to like it.
Regards,
Nikunj
HI All,
Thanx Adam for your help with the centipede directory structure. It helped and we are
making progress.
I have another issue though and sorry to keep bothering you again. This one pertains more
to Ant usage than Centipede. I started trying to run the ant task using centipede but then
realised that the target won't run even as a simple ant task. It isn't able to find some
files or something and I have checked that all jars are available not only in the ant
installation but also in the project's library files. Here is the output is get while I run
this Junit task .
wmb@cabo /usr/local/metrics/ipan/vobs/dotRes/bin>ant test
Buildfile: build.xml
init:
test:
BUILD FAILED
file:/usr/local/metrics/ipan/vobs/dotRes/bin/build.xml:203: taskdef class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found
Total time: 1 second
---------------------------------------------------
My ant target test is defined as
<target depends="init" name="test">
<taskdef classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpathref="res.classpath" name="junit"/> <taskdef
classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator"
name="junitreport"/>
<property name="res.testlog" value="${res.build}/testlog"/>
<mkdir dir="${res.testlog}"/>
<junit fork="yes" maxmemory="256m">
<jvmarg value="-DRES_HOME=${res.home}"/>
<classpath>
<path refid="res.classpath"/>
<!-- ant classes -->
<pathelement path="${res.lib}/ant.jar"/>
<pathelement path="${res.lib}/optional.jar"/>
<!-- Oracle JDBC driver -->
<pathelement path="${res.lib}/classes111_816.zip"/>
<!-- .Res binaries -->
<pathelement path="${res.build}/lib/base.jar"/>
<pathelement path="${res.build}/lib/ibe.jar"/>
<pathelement path="${res.build}/lib/appfwk.jar"/>
<pathelement path="${res.build}/lib/application.jar"/>
<pathelement path="${res.build}/lib/configurator.jar"/>
<pathelement path="${res.build}/lib/faremessenger.jar"/>
<pathelement path="${res.build}/lib/testtools.jar"/>
<pathelement path="${res.build}/lib/conmigration.jar"/>
<pathelement path="${res.build}/lib/siteadmin.jar"/>
<!-- Property files -->
<pathelement path="${res.home}/etc/Sabre/Properties"/>
<pathelement path="${java.class.path}"/>
</classpath>
<formatter type="xml"/>
<batchtest fork="yes" todir="${res.testlog}">
<fileset dir="${res.classes}">
<include name="**/AllTests.class"/>
</fileset>
</batchtest>
</junit>
<junitreport todir="${res.testlog}">
<fileset dir="${res.testlog}">
<include name="TEST-*.xml"/>
</fileset>
</junitreport>
</target>
--------------------------------------------------------------------------------
I have also defined the following classpath
<path id="res.classpath">
....
....
<!-- JUnit testing framework -->
<pathelement path="${res.lib}/optional.jar"/>
<pathelement path="${res.lib}/junit.jar"/>
...
>
What am i doing wrong?? I would appreciate your help as i get fast responses from here and
was hoping someone could guide me to tackle the probelm.
Thanx for all your help and time.
Regards,
Nikunj
From: Nick Chalko <nick@ch...>
Re: Centipede usage issues
2003-06-25 09:53
Have you tried using the "standard" junit.antlib we provide?
<importantlib name="standard"/>
then to "ant test"
From: Adam Jack <ajack@Tr...>
RE: Centipede usage issues
2003-06-25 10:25
Nick, I suspect that Nikunj is on centipede beta5, and your advice here is
CVS HEAD.
Nikunj, perhaps let us know your ant and centipede versions/environment to
ensure we answer to your needs.
regards
Adam
-----Original Message-----
From: krysalis-users-admin@li...
[mailto:krysalis-users-admin@li...]On Behalf Of Nick
Chalko
Sent: Wednesday, June 25, 2003 10:53 AM
To: krysalis-users@li...
Subject: Re: Centipede usage issues
Have you tried using the "standard" junit.antlib we provide?
<importantlib name="standard"/>
then to "ant test"
From: Nick Chalko <nick@ch...>
Re: Centipede usage issues
2003-06-25 10:33
Adam Jack wrote:
>Nick, I suspect that Nikunj is on centipede beta5, and your advice here is
>CVS HEAD.
>
>
I that case have you tried
<importcent name="junit" />
Then doing a "cent test"
>Nikunj, perhaps let us know your ant and centipede versions/environment to
>ensure we answer to your needs.
>
>regards
>
>Adam
>-----Original Message-----
>From: krysalis-users-admin@li...
>[mailto:krysalis-users-admin@li...]On Behalf Of Nick
>Chalko
>Sent: Wednesday, June 25, 2003 10:53 AM
>To: krysalis-users@li...
>Subject: Re: Centipede usage issues
>
>
>Have you tried using the "standard" junit.antlib we provide?
>
><importantlib name="standard"/>
>
>then to "ant test"
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: INetU
>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
>_______________________________________________
>krysalis-users mailing list
>krysalis-users@li...
>https://lists.sourceforge.net/lists/listinfo/krysalis-users
>
>
--
Nick Chalko Show me the code.
Centipede
Ant + autodownloadable build plugins + needed jars autodownload.
http://krysalis.org/centipede
---------------------------------------------------------------------
From: Adam Jack <ajack@Tr...>
RE: Centipede usage issues
2003-06-25 10:16
Nikunj
This one pertains more to Ant usage than Centipede.[...]Here is the
output is get while I run this Junit task .
BUILD FAILED
file:/usr/local/metrics/ipan/vobs/dotRes/bin/build.xml:203: taskdef
class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be
found
Which ant do you have? In "older" ant (like you have, I suspect) you need to
download the ant optional tasks separately. This is in the optional jar. You
have that?
Run ant with -debug and see if it tells you what files in the classpath it
can not find.
regards
Adam
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php