[Webtest] repeat #{count} variable

Jeannie Graham webtest@lists.canoo.com
Tue, 6 Apr 2004 11:32:25 -0700

Darn!   And I was so excited that the Repeat command would solve my problem.
So now, I really, really, really need an IF statement.   

I have all these pages where objects appear dynamically, based on earlier
inputs and I thought the Repeat command would set me free, but alas, I am
stuck again.

And there is code available for an IF statement in the archives, but I
cannot access it.   Is there any way you can grab that code in the email
titled, "Enhancements to WebTest" by stephen peterson, dated Mar, 4, 2003?
I already tried your .b64 trick (see email I sent yesterday- "patches still
a garbled mess".

Thanks for any help on this,


-----Original Message-----
From: Dierk Koenig [mailto:dierk.koenig@canoo.com]
Sent: Tuesday, April 06, 2004 5:17 AM
To: webtest@lists.canoo.com
Subject: RE: [Webtest] repeat #{count} variable

does not work. Ant properties cannot be nested since they are
evaluated on task creation time, not execution time.


> -----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:
> <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

WebTest mailing list