[Webtest] [webtest][JIRA] Closed: (WT-249) Dynamic properties not correctly expanded in <retry> (and probably <repeat>)

Marc Guillemot (JIRA) Marc Guillemot (JIRA)" <noreply@canoo.com
Wed, 13 Dec 2006 10:32:32 +0100 (CET)


     [ http://webtest-community.canoo.com/jira/browse/WT-249?page=all ]
     
Marc Guillemot closed WT-249:
-----------------------------

    Fix Version: future versions
     Resolution: Fixed

Fixed in build 1149.

> Dynamic properties not correctly expanded in <retry> (and probably <repeat>)
> ----------------------------------------------------------------------------
>
>          Key: WT-249
>          URL: http://webtest-community.canoo.com/jira/browse/WT-249
>      Project: WebTest
>         Type: Bug

>     Versions: future versions
>     Reporter: Marc Guillemot
>     Assignee: Marc Guillemot
>      Fix For: future versions

>
> Within a retry (and probably a repeat) step, dynamic properties are not correctly set on the tasks. The properties are evaluated and appear correctly in the report BUT it seems that the task instances of the first loop run are evaluated again. 
> Ex:
> <webtest name="repeat and macros last response">
> 	<steps>		
> 		<invoke description="start page" url="/path/to/test/page.html" />
> 		<retry	maxcount="2">
> 			<verifyXPath xpath="(//div)[#{count} + 1]/text()" text="foo 2" description="loop #{count}"/>
> 		</retry>
> 	</steps>
> </webtest>
> Workaround: extract the <retry> body into a macro.
> Ex:
> <macrodef name="repeatBody">
> <sequential>
> 		<verifyXPath xpath="(//div)[#{count} + 1]/text()" text="foo 2" description="loop #{count}"/>
> 	</sequential>
> </macrodef>
> <webtest name="repeat and macros last response">
> 	<steps>		
> 		<invoke description="start page" url="/path/to/test/page.html" />
> 		<retry	maxcount="2">
> 			<retryBody/>
> 		</retry>
> 	</steps>
> </webtest>

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira