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

rk100@gmx.net rk100@gmx.net
Thu, 18 Oct 2007 12:29:44 +0200


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>