[Webtest] Problem: dynamic property in ANT-subproject (<ant antfile="..."/>)

Paul King Paul King <paulk@asert.com.au>
Thu, 18 Oct 2007 21:18:39 +1000


Which version are you using?

Paul.

rk100@gmx.net wrote:
> Hi,
> I'm in trouble using dynamic properties in a subproject (<ant 
> antfile="..."/>). Ant-props are
> working in the right way, but not the WebTest dynamic-props. (Example 
> included below.)
> Anyone out there knowing a solution?
> 
> Thanks in advance
> Rolf
> 
> -------------------------------
> The code below is working as desired - output:   [echo] Hello
> 
>   ......
>    <target name="test">
>        <webtest name="myTest">
>            <config .../>
>            <steps>
>                <storeProperty property="str" propertyType="dynamic" 
> value="Hello"/>
>                <echo message="#{str}"/>
>            </steps>
>        </webtest>
>    </target>
>   ......
> 
> -------------------------------
> This code instead isn't working correctly - output:   [echo] #{str}
>   ......
>    <target name="test">
>        <webtest name="myTest">
>            <config .../>
>            <steps>
>                <ant antfile="file1.xml"/>
>            </steps>
>        </webtest>
>    </target>
>   ......
> 
> file1.xml:
>  <?xml version="1.0" encoding="utf-8"?>
>  <project name="file1" default="all" basedir=".">
>      <target name="all">
>          <storeProperty property="str" propertyType="dynamic" 
> value="Hello"/>
>          <echo message="#{str}"/>
>      </target>
>  </project>
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
>