when setting up the property, user propertyType="ant".
Like the example below.
<target>
<webtest>
<storeXPath xpath="......" propertyType="ant" property="VALUE"/>
<addvariable profile="my_private_data" name="myProperty"
value="${VALUE}"/>
</webtest>
</target>
<target>
<webtest>
<echo message="${myProperty}" />
</webtest>
</target>
Hope this helps.
Regards,
Srini
On Wed, Sep 8, 2010 at 6:50 AM, Matthias Rieber <[email protected]>wrote:
> Hi,
>
> I've a webtest task that calls another webtest task and I need to pass
> some properties to the other task, like:
>
> <webtest>
> <steps>
> .
> <repeat>
> ...
> <!-- setting myProperty to something -->
> ...
> <antcall target="foobar" inheritAll="true"/>
> </repeat>
> </steps>
> </webtest>
>
> and foobar looks like:
>
> <target name="foobar">
>
> <echo message="${myProperty}" /> <!-- Works! -->
> <webtest>
> <echo message="${myProperty}" /> <!-- Doesn't work! -->
> <steps>
> <echo message="${myProperty}" /> <!-- Doesn't work! -->
> </steps>
> </webtest>
> </target>
>
>
> Is there a possibility to pass properties to the other webtask? I also
> tried to set the property explicit, but this doesn't work as well.
>
>
> Regards,
> Matthias
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>