[Webtest] ${property} vs #{property}
Paul King
webtest@lists.canoo.com
Sat, 25 Feb 2006 10:13:06 +1000
Michael Knapp wrote:
> 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
Yes, with the caveat that in config you can set a defaultpropertytype
which you can set to "ant" or "antstrict". If you set either of these
then ant becomes the default type and you would have to set the
propertyType explicitly to dynamic in your storeXXX step to use
the #{} notation.
Technical note: The "antstrict" value means WebTest will respect
property immutability whereas "ant" will allow WebTest to override
an ant property (note though that ant's early binding of properties
will apply in either case). If you really need late binding use a
dynamic property. (The config doco explains this a bit further.)
[I added a bit more explanation regarding defaultpropertytype
to the property doco. Should be in the next build.]
Cheers, Paul.