On Thu, Dec 29, 2005 at 10:26:14PM +0100, Dave Howland (JIRA) wrote:
> 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="//[EMAIL PROTECTED] = '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?
#{propertyname} is a webtest extension, called dynamic property.
standard ant tasks like echo does not expand the #{} construct, they are
only expanded in webtest steps.
Please check the storeXPath docs how to set a standard ant property,
there is a propertyType attribute available. With this ${} will work.
greetings
lothar
>
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://webtest-community.canoo.com/jira/secure/Administrators.jspa
> -
> If you want more information on JIRA, or have a bug to report see:
> http://www.atlassian.com/software/jira
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
--
Lothar M?rkle - [EMAIL PROTECTED]
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest