[Webtest] ${property} vs #{property}
Paul King
webtest@lists.canoo.com
Fri, 24 Feb 2006 11:06:55 +1000
Forgot to mention. You can happily swap between them
using <storeProperty .../> by setting the propertyType
attribute to the appropriate value.
Paul.
Paul King wrote:
>
> ${} properties are normal ant properties. Given Ant's philosophy
> of a declarative build process, these are normally immutable.
> I.e. once you set a property its value normally can't be changed.
> Ant property values are typically determined at the start of an
> ant target. They are available to both ant tasks and webtest steps.
>
> #{} properties are only available (currently) to webtest steps.
> They are dynamic - you can use the same property and set it to
> different things throughout your tests. #{} properties support
> very simple expressions and there is support for accessing
> scripting variables under special circumstances. Property values
> are determined at the moment of use.
>
> Cheers, Paul.
>
> Michael Knapp wrote:
>> Can someone explain the difference in usage between ${property} vs
>> #{property} ?
>> I couldn't find a reference in Ant documentation to the #{} form.
>> I have had an occasion where #{} worked, but ${} didn't, but I couldn't
>> find a pattern to the behavior.
>>
>> Thanks,
>> Mike