[Webtest] repeat #{count} variable
Jeannie Graham
webtest@lists.canoo.com
Mon, 5 Apr 2004 11:31:40 -0700
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