[Webtest] Re: Add a custom Step

Kai Mütz Kai Mütz"
Mon, 28 Jul 2008 14:42:18 +0200


------=_Part_10269_20920539.1217248938441
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Any suggestions?

2008/7/24 Kai M=FCtz <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=3D"wt.defineTasks.init" description=3D"customized classpath"=
>
>      <antcall target=3D"wt.webtest.wt.defineTasks.init" inheritRefs=3D"tr=
ue"/>
>      <path id=3D"wt.defineTasks.classpath.customAppend">
>        <pathelement location=3D"../classes"/>
>      </path>
>    </target>
>
>    <import file=3D"${webtest.home}/webtest.xml"
>        description=3D"Import all functionalities for a full build"/>
>
>    <property name=3D"wt.testInWork" value=3D"tests/allTests.xml"/>
>
> Which yields to the following warning:
> Warning: Reference wt.defineTasks.classpath.customPrepend has not been se=
t
> 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 not found.
>
> Can anybody help?
>
> Cheers, Kai
>
>

------=_Part_10269_20920539.1217248938441
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div dir=3D"ltr">Any suggestions?<br><br><div class=3D"gmail_quote">2008/7/=
24 Kai M=FCtz <span dir=3D"ltr">&lt;<a href=3D"mailto:kmuetz@googlemail.com=
">kmuetz@googlemail.com</a>&gt;</span><br><blockquote class=3D"gmail_quote"=
 style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.=
8ex; padding-left: 1ex;">
Hi.<br>
<br>
How can I add a custom step? I have tried sonething I have found in tne<br>
mailing list:<br>
<br>
build.xml:<br>
<br>
&lt;target name=3D&quot;wt.defineTasks.init&quot; description=3D&quot;custo=
mized classpath&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;antcall target=3D&quot;wt.webtest.wt.defineTasks.i=
nit&quot; inheritRefs=3D&quot;true&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;path id=3D&quot;wt.defineTasks.classpath.customApp=
end&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement location=3D&quot;../classes&quo=
t;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/path&gt;<br>
 &nbsp; &nbsp;&lt;/target&gt;<br>
<br>
 &nbsp; &nbsp;&lt;import file=3D&quot;${webtest.home}/webtest.xml&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;description=3D&quot;Import all functionalities =
for a full build&quot;/&gt;<br>
<br>
 &nbsp; &nbsp;&lt;property name=3D&quot;wt.testInWork&quot; value=3D&quot;t=
ests/allTests.xml&quot;/&gt;<br>
<br>
Which yields to the following warning:<br>
Warning: Reference wt.defineTasks.classpath.customPrepend has not been set<=
br>
at runtime, but was found during<br>
build file parsing, attempting to resolve. Future versions of Ant may<br>
support<br>
&nbsp;referencing ids defined in non-executed targets.<br>
Warning: Reference wt.defineTasks.classpath.webtest has not been set at<br>
runtime, but was found during<br>
build file parsing, attempting to resolve. Future versions of Ant may<br>
support<br>
&nbsp;referencing ids defined in non-executed targets.<br>
<br>
I have ignored this warning bacause everything works fine. But where do I<b=
r>
have to add my &lt;taskdef/&gt;? Anywhere I have tried I&#39;ve got the fol=
lowing<br>
error:<br>
Reference <a href=3D"http://wt.defineTasks.classpath.id" target=3D"_blank">=
wt.defineTasks.classpath.id</a> not found.<br>
<br>
Can anybody help?<br>
<br>
Cheers, Kai<br>
<br>
</blockquote></div><br></div>

------=_Part_10269_20920539.1217248938441--