[Webtest] ${property} vs #{property}
Denis N. Antonioli
webtest@lists.canoo.com
Fri, 24 Feb 2006 11:53:04 +0100
On 24 f=E9vr. 06, at 02:06, Paul King wrote:
>
> 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 =20
>>> couldn't
>>> find a pattern to the behavior.
>>>
Very good explanation! I've added it to the manual.
Best
dna
--=20
A computer is like an Old Testament god, with a lot of rules and no =20
mercy!