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

Dierk Koenig webtest@lists.canoo.com
Fri, 24 Feb 2006 22:11:39 +0100


yes.

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Michael Knapp
> Sent: Freitag, 24. Februar 2006 20:44
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] ${property} vs #{property}
> 
> 
> Does that mean that anytime you use one of the 
> 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 
> 
> -----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.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest