[Webtest] Re: Add a custom Step

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Wed, 13 Aug 2008 15:14:27 +0200


Hi Kai,

there is no tutorial about extending webtest with custom steps :-(

Is your custom step written in Java (personally I always do it in Groovy
directly within the project)?

Where did you put your <taskdef/>?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Kai Mütz wrote:
> Is there any tutorial about extending webtest with custom steps?
> 
> 2008/7/28 Kai Mütz <kmuetz@googlemail.com <mailto:kmuetz@googlemail.com>>
> 
>     Any suggestions?
> 
>     2008/7/24 Kai Mütz <kmuetz@googlemail.com
>     <mailto:kmuetz@googlemail.com>>
> 
>         Hi.
> 
>         How can I add a custom step? I have tried sonething I have found
>         in tne
>         mailing list:
> 
>         build.xml:
> 
>         <target name="wt.defineTasks.init" description="customized
>         classpath">
>              <antcall target="wt.webtest.wt.defineTasks.init"
>         inheritRefs="true"/>
>              <path id="wt.defineTasks.classpath.customAppend">
>                <pathelement location="../classes"/>
>              </path>
>            </target>
> 
>            <import file="${webtest.home}/webtest.xml"
>                description="Import all functionalities for a full build"/>
> 
>            <property name="wt.testInWork" value="tests/allTests.xml"/>
> 
>         Which yields to the following warning:
>         Warning: Reference wt.defineTasks.classpath.customPrepend has
>         not been set
>         at runtime, but was found during
>         build file parsing, attempting to resolve. Future versions of
>         Ant may
>         support
>          referencing ids defined in non-executed targets.
>         Warning: Reference wt.defineTasks.classpath.webtest has not been
>         set at
>         runtime, but was found during
>         build file parsing, attempting to resolve. Future versions of
>         Ant may
>         support
>          referencing ids defined in non-executed targets.
> 
>         I have ignored this warning bacause everything works fine. But
>         where do I
>         have to add my <taskdef/>? Anywhere I have tried I've got the
>         following
>         error:
>         Reference wt.defineTasks.classpath.id
>         <http://wt.defineTasks.classpath.id> not found.
> 
>         Can anybody help?
> 
>         Cheers, Kai
> 
> 
>