[ http://webtest-community.canoo.com/jira/browse/WT-132?page=all ]
Marc Guillemot closed WT-132:
-----------------------------
Fix Version: future versions
Resolution: Fixed
#{} properties can't be expanded in non WebTest tasks in WebTest versions up to
2.1. Changes introduced for WT-232 already allow such expansion.
Versions: 2.0
Reporter: Dave Howland
Assignee: Marc Guillemot
Fix For: future versions
I'm trying to use properties set by webtest a step (specifically storeXPath, but
this behavior may exist elsewhere) in a regular ant task. For example:
<storeXPath xpath="//img[@id = 'MyImage']/@src" property="ImageURI"/>
<antWrapper>
<echo message="#{ImageURI}"/>
<echo message="${ImageURI}"/>
</antWrapper>
Results in:
[echo] #{ImageURI}
[echo] ${ImageURI}
I've verified that my ImageURI property does contain the text I'd expect after
the storeXPath. Any ideas? Am I doing something wrong here?