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

rk100@gmx.net rk100@gmx.net
Mon, 22 Oct 2007 15:19:36 +0200


Today, I upgraded to WebTest build 1624, but it is still not working.
My versions:   WebTest build 1624  /  ANT 1.7.0  /  Java SUN 1.5.0_11

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>
>>
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>