[Webtest] newbie question - getting Canoo working
Janno Kusman
webtest@lists.canoo.com
Tue, 27 Jan 2004 10:13:58 +0200
This is a multi-part message in MIME format.
--------------030603060909080602060605
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Looking at your error message, I would guess that your ANT isn't
configured properly. Refer to
http://ant.apache.org/manual/install.html#installing. I have also
attached simple ant script to test ANT. To run it - use command 'ant
-buildfile ant_test.xml' which should print 'Ant is working' and BUILD
SUCCESFUL
Also I would use ANT 1.5.2.
You don't have to copy any jar files. Just define jar locations in your
ANT script (this is not needed for installTest):
<property name="webtest.home" value="path_to_WebTest_home"/>
<taskdef file="${webtest.home}/webtestTaskdefs.properties">
<classpath>
<fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
</classpath>
</taskdef>
and it shoud work.
Janno
lisa.crispin@att.net wrote:
>This is my third attempt in the past several months to use Canoo. I
>apologize for my sporadic postings. I can never get it to work. Maybe the
>third time is the charm.
>
>I learned in the past that I must put every jar file for and and webtest into
>my classpath and I have done this. I have installed ant 1.6.0. (Is this
>bad? I saw a posting about a problem with ant 1.6.0 but no response to it.
>I copied the ant.jar from $WEBTESTHOME/lib over to $ANT_HOME/lib).
>
>I'm getting this error:
>$ ant -buildfile installTest.xml
>java.lang.InstantiationException: org.apache.tools.ant.Main
> at java.lang.Class.newInstance0(Class.java:293)
> at java.lang.Class.newInstance(Class.java:261)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:214)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>
>Needless to say, I'm not a Java programmer so this means nothing to me.
>Please help.
>
>Is there ANY documentation on how to install Canoo and get it running, other
>than what is on the main Canoo Webtest site? It is certainly not enough for
>people like myself. Is it the case that if I can't guess how to install it,
>I shouldn't try to use it? I hope not. Or am I just missing some obvious
>simple documentation somewhere? This would be nice.
>thanks,
>Lisa
>_______________________________________________
>WebTest mailing list
>WebTest@lists.canoo.com
>http://lists.canoo.com/mailman/listinfo/webtest
>
>
--------------030603060909080602060605
Content-Type: text/xml;
name="ant_test.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ant_test.xml"
<project name="ant_test" basedir="." default="main">
<target name="main">
<echo message="Ant is working"/>
</target>
</project>
--------------030603060909080602060605--