[Webtest] repeat #{count} variable

Dierk Koenig webtest@lists.canoo.com
Tue, 6 Apr 2004 14:17:05 +0200


${driverX1.violX#{count}.cat}
does not work. Ant properties cannot be nested since they are
evaluated on task creation time, not execution time.

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Jeannie Graham
> Sent: Montag, 5. April 2004 20:32
> To: 'webtest@gate2.canoo.com'
> Subject: [Webtest] repeat #{count} variable
>
>
> Hello everyone,
>
> 	I am using the Repeat command and when I use the #{count} variable
> in my value attribute (for setselectfield), it creates the
> correct verbage,
> but seems to change it to text.   Example:
>
> <repeat startindex="1" count="${driverX1.violations}">
> 	<setselectfield
> 		stepid="Enter violations category"
> 		name="policy_driverX1_violX#{count}_cat"
> 		value="${driverX1.violX#{count}.cat}"/>
>
> This results in a Build Failed stating:
>
> BUILD FAILED
> <May not set parameter 'policy_driverX1_violX1_cat' to
> '${driverX1.violX1.cat}'.   Value must be one of: { , A, C, D, E, F, Z, U,
> R, L, X, O, P, B, S, W, T }> "
>
> Which shows that my value attribute is being loaded as actual
> text, and not
> grabbing the value in my property file that matches driverX1.violX1.cat,
> which by-the-way equals "C".
>
> Any ideas?
>
> Thank you,
> Jeannie
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>