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

rk100@gmx.net rk100@gmx.net
Thu, 18 Oct 2007 14:05:00 +0200


Hi Paul,

I'm using  a) WebTest  build R_1551  and b) Ant 1.7.0

Rolf

Paul King wrote:
>
> 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>
>>