[Webtest] need help installing release 1.6
Lothar Märkle
webtest@lists.canoo.com
Thu, 28 Apr 2005 17:30:13 +0200
hi,
my reply got queued for approval, because I used another mail...
so in short I suggested you should check webtestTaskdefs.properties if
there is a 'verifytitle' instead of a 'verifyTitle' defined.
lothar
On Thu, Apr 28, 2005 at 12:55:39PM +0000, andy johnson wrote:
> Hi Lothar,
>
> thanks for your reply..
> I included httpunit-1.6.jar (copied it from D:\canoo\lib\base to
> D:\canoo\lib).
>
> When I did this I got the following error:
> D:\canoo\doc\samples\mytest.xml:3: taskdef A class needed by class com.canoo
> webtest.extension.GroovyStep cannot be found:
> org/codehaus/groovy/control/Compi
> ationFailedException
>
> ...so I proceeded to copy all the jars in D:\canoo\lib\optional to
> D:\canoo\lib.
> I then got the following error:
>
>
> BUILD FAILED
> D:\canoo\doc\samples\mytest.xml:27: Could not create task or type of type
> rifyTitle.
>
> 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 'verifyTitle'.
> 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 the JAR file and/or libraries
> implementing the functionality were not found at the time you
> yourself built your installation of Ant from the Ant sources.
> Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
> task and make sure it contains more than merely a META-INF/MANIFEST.MF.
> If all it contains is the manifest, then rebuild Ant with the needed
> libraries present in ${ant.home}/lib/optional/ , or alternatively,
> download a pre-built 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>.
> - You are attempting to use a task defined using
> <presetdef> or <macrodef> but have spelt wrong or not
> defined it at the point of use
>
> 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.
>
>
>
> The test I am trying to run (mytest.xml) is:
> <project name="mytest" basedir="." default="main">
>
> <taskdef file="d:/canoo/webtestTaskdefs.properties">
> <classpath>
> <fileset dir="d:/canoo">
> <include name="**/lib/*.jar"/>
> </fileset>
> </classpath>
> </taskdef>
>
> <target name="main">
> <testSpec name="mytest">
> <config
> host="www.sun.com"
> port="80"
> protocol="http"
> basepath="" />
> <steps>
> <invoke
> stepid="get Login Page"
> url="products" />
> <verifyTitle
> stepid="we should see the login title"
> text="any.." />
> </steps>
> </testSpec>
> </target>
> </project>
>
>
>
> I'm sure im missing something simple here -
> I have followed install instructions and have not modified anything else-
> (again, i am using webtest 1.6, and ant 1.6.2..)
> any ideas??
>
> thanks in advance,
> andy
>
>
> >From: Lothar M?rkle <lothar.maerkle@netpioneer.de>
> >Reply-To: webtest@lists.canoo.com
> >To: webtest@lists.canoo.com
> >Subject: Re: [Webtest] need help installing release 1.6
> >Date: Thu, 28 Apr 2005 08:12:31 +0200
> >
> >> i get the following error:
> >> c:\canoo\doc\samples>ant -buildfile mytest.xml
> >> Buildfile: mytest.xml
> >>
> >> BUILD FAILED
> >> c:\canoo\doc\samples\mytest.xml:3: taskdef A class
> >> needed by class
> >> com.canoo.
> >> webtest.extension.ExportProperty cannot be found:
> >> com/meterware/httpunit/parsing
> >> /HTMLParserListener
> >>
> >> Do i need other jars?
> >> if so what are they and where do i put them?
> >
> >did you include the httpunit jar in the WEBTEST_HOME/lib/base
> >directory in the classpath of the taskdef?
> >
> >hth
> > lothar
> >_______________________________________________
> >WebTest mailing list
> >WebTest@lists.canoo.com
> >http://lists.canoo.com/mailman/listinfo/webtest
>
> _________________________________________________________________
> Millions of quality singles are online now - click to meet them!
> http://match.msn.ie
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
--
Lothar Märkle - lothar.maerkle@netpioneer.de
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30