[Webtest] ${property} vs #{property}

Michael Knapp webtest@lists.canoo.com
Fri, 24 Feb 2006 11:44:23 -0800


Does that mean that anytime you use one of the=20
store(xPath|Regex|etc) steps, you must refer to that stored property
with the #{} notation? (unless you set the property type to ant, in
which case you can use the ${} notation)?
thanks=20

-----Original Message-----

${} 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.