[Webtest] Specifiying begin count in <repeat>

Healey, Thomas webtest@lists.canoo.com
Fri, 28 Feb 2003 15:51:52 -0500


An additional comment:
If someone could point me to the specific place in the repeatstep.java
or in the wrapper or the interface I will gladly do the work of making
the change and testing it.
And a correction:
<repeat init=3D"1" count=3D"${maxSelectItems}" countername=3D"itemId">
	<setselectfield=20
		stepId=3D"Select one of the multiselect values"
		name=3D"item"
		value=3DitemID"
		multislect=3D"true"
	/>=09
</repeat>

Tom Healey
Darden Information Systems
HealeyT@darden.virginia.edu
434.924.0562



-----Original Message-----
From: Healey, Thomas=20
Sent: Friday, February 28, 2003 2:59 PM
To: '	webtest@lists.canoo.com'
Subject: Specifiying begin count in <repeat>


Currently you can only specify the end count of a repeat loop and the
begin count is 0. I would like to be able to specify the begin count so
that I can start my loops at 0 or 1 or 2 which ever I deem appropriate
for the test. My most immediate need is to be able to loop over
multiselect boxes selecting every item in the box. The problem is that
there is no zero value in the my lists so that the tests will always
fail. If I could start at 1 then at least I could design a test that
will pass. Any thoughts?

I would like to see the tag look like this:
<repeat init=3D"1" count=3D"${maxSelectItems}" countername=3D"itemId">
	<setselectfield=20
		stepId=3D"Select one of the multiselect values"
		name=3D"item"
		value=3DitemID"
	/>=09
</repeat>
<clickbutton=20
    label =3D "submit"
    stepid=3D"Click the Submit button"
/>
Tom Healey