[Webtest] properties

Frank Langanke webtest@lists.canoo.com
Thu, 04 May 2006 14:17:55 +0200


Brian Spindler wrote:
> I am using storeRegEx to store a dynamic property, this works successfully however when I try to use the property in an xslt statement it does not evaluate, here is the canoo code:
> 
> <webtest name="extract_build">
> 	&config;
> 	<steps>
> 		&login;
> 		<storeRegEx
> 				description="Extract build number"
> 				text=".*?\(Build (\d+)\).*?"
> 				group="1"
> 				property="buildnum"
> 		/>
> 		<verifyText text="#{buildnum}"/>
> 		<xslt 
> 		in="webtest-results/results_${sfx}.xml" 
> 		out="csv_dumps/${TestSet}!_#{buildnum}.csv"
> 		style="csv_dumps/results_csv.xsl"
> 		force="true"/>
> 	</steps>
> 	
> </webtest>
> 

Hey Brian,

the #{buildnum} is a webtest property which is unknown to the ant(!!) 
<xslt> task. Store the or convert the dynamic property to an static ant 
property.

Frank.