HTH,
Matt
On Dec 18, 2003, at 6:52 PM, PUTHENVILA P Johnson wrote:
Hi I am new to Ant ,JUnit,and cactus.
I am assigned to run automated testing from wsad. I know I am asking silly
questions . Please help me. I am using WSAD5 , when I tried to excute the
<junit> command from Ant from my worksapce in WSAD , it throwing an error
[junit] BUILD FAILED: file:C:/Documents and Settings/PJohnson/My
Documents/IBM/wsappdev51/workspace/baselineUnitTests/au/com/qtech/ baseline/unittests/BaselineJunitAntScript.xml:10:
Could not create task or type of type: junit.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'junit'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and optional.jar is absent Fix: look for optional.jar in ANT_HOME/lib, download if needed - The task was not built into optional.jar as dependent libraries were not found at build time. Fix: look in the JAR to verify, then rebuild with the needed libraries, or download a release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using <taskdef>.
Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
I checked my classpath, it got ant.jar. optional.jar which is having JUnit
classes in it.
Have you give some idea.
Please help.
Regards Johnson Qtech Business Systems Pty Ltd Level 1, 16 Edmondstone St, Newmarket QLD 4051 t : 07 3356 4377 | f : 07 3356 5927 e :[EMAIL PROTECTED] | p : page us here for tech support Visit our new website www.qtech.com.au Check out our new Q - Specials by clicking here
Disclaimer
This transmission is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged information. Any
review, retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by person or entities other than
the intended recipient is prohibited. If you have received this e-mail in
error, kindly notify the sender and please delete this message and any
attachments or copies from your system. We use virus scanning software but
do not warrant that this e-mail and any attachments are virus free.
Regards Johnson Qtech Business Systems Pty Ltd Level 1, 16 Edmondstone St, Newmarket QLD 4051 t : 07 3356 4377 | f : 07 3356 5927 e :[EMAIL PROTECTED] | p : page us here for tech support Visit our new website www.qtech.com.au Check out our new Q - Specials by clicking here
Disclaimer
This transmission is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged information. Any
review, retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by person or entities other than
the intended recipient is prohibited. If you have received this e-mail in
error, kindly notify the sender and please delete this message and any
attachments or copies from your system. We use virus scanning software but
do not warrant that this e-mail and any attachments are virus free.
smime.p7s
Description: S/MIME cryptographic signature
