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

Paul King webtest@lists.canoo.com
Fri, 24 Feb 2006 10:57:22 +1000


${} 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
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
>