[Webtest] Losing properties from ant to webtest

Daniel Suter Daniel Suter <suter_daniel@hotmail.com>
Thu, 9 Aug 2012 15:03:24 +0200


--_cbf5fca5-6734-4d15-b327-78c3e5b1d0c7_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable





Hi

We're using Webtest R_1812. We're losing properties from ant to webtest.=20
After googling some time=2C I found that this issue might be related to the=
 ant version. It should work with ant 1.71 but it does not. I tried also wi=
th 1.84

An example:

<project name=3D"project name" basedir=3D"." default=3D"defaultTask">
...
    <target name=3D"defaultTask">
        <echo message=3D"property: ${invoke.url}" />
        <webtest name=3D"Test something">

            <steps>
                <echo message=3D"property 2: ${invoke.url}" />
 ...              =20
(some tests)
                ...
            </steps>   =20
        </webtest>
    </target>

...


The first echo will print the property content successfully.
The second echo prints the property name itself=2C which means=2C it's not =
set anymore.
So we're losing the property content from ant to webtest as it seems.

Thanks in advance for your help.

 		 	   		  =

--_cbf5fca5-6734-4d15-b327-78c3e5b1d0c7_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
</head>
<body class=3D'hmmessage'><div dir=3D'ltr'>


<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
<div dir=3D"ltr">Hi<br><br>We're using Webtest R_1812. We're losing propert=
ies from ant to webtest. <br>After googling some time=2C I found that this =
issue might be related to the ant version. It should work with ant 1.71 but=
 it does not. I tried also with 1.84<br><br>An example:<br><br>&lt=3Bprojec=
t name=3D"project name" basedir=3D"." default=3D"defaultTask"&gt=3B<br>...<=
br>&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Btarget name=3D"defaultTask"&gt=3B<br>&nbs=
p=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &lt=3Becho message=3D"propert=
y: ${invoke.url}" /&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=
=3B &lt=3Bwebtest name=3D"Test something"&gt=3B<br><br>&nbsp=3B&nbsp=3B&nbs=
p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B=
steps&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&n=
bsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &lt=3Becho message=3D"property 2: $=
{invoke.url}" /&gt=3B<br> ... &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B <br>(some tests=
)<br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B ...<br>&nbsp=3B&nbsp=3B=
&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &l=
t=3B/steps&gt=3B&nbsp=3B&nbsp=3B&nbsp=3B <br>&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=
=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/webtest&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=
=3B &lt=3B/target&gt=3B<br><br>...<br><br><br>The first echo will print the=
 property content successfully.<br>The second echo prints the property name=
 itself=2C which means=2C it's not set anymore.<br>So we're losing the prop=
erty content from ant to webtest as it seems.<br><br>Thanks in advance for =
your help.<br></div>
 		 	   		  </div></body>
</html>=

--_cbf5fca5-6734-4d15-b327-78c3e5b1d0c7_--