Luke, welcome to WebTest.
You should have a look at http://webtest.canoo.com/webtest/manual/samples.html and at http://webtest.canoo.com/webtest/manual/install.html The problem here is that you import webtext.xml but don't respect the structure it has to bring its facilities. Cheers, Marc. -- Blog: http://mguillem.wordpress.com Luke Shannon wrote: > I am just starting with WebTest and would like to add it to an > application I am working on. I would like to add a simple test to > start. > > I have added this my existing build.xml file: > <property name="webtest.home" location="/usr/local/tools/webtest" /> > <import file="${webtest.home}/webtest.xml"/> > > <target name="webtools-test"> > <webtest name="google test"> > <steps> > <invoke url="http://google.com"/> > <verifyTitle text="Google"/> > <setInputField name="q" value="Groovy"/> > <clickButton name="btnG"/> > <verifyXPath xpath="//[EMAIL > PROTECTED]'http://groovy.codehaus.org/']" /> > </steps> > </webtest> > </target> > > I get this error: > webtools-test: > build.xml:18: Problem: failed to create task or type webtest > Cause: The name is undefined. > Action: Check the spelling. > Action: Check that any custom tasks/types have been declared. > Action: Check that any <presetdef>/<macrodef> declarations have taken place. > BUILD FAILED (total time: 0 seconds) > > Any tips on what I can do to get this simple test working? > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

