[Webtest] Question about testing a select in webtest

Healey, Thomas webtest@lists.canoo.com
Fri, 28 Feb 2003 16:42:33 -0500


I have a form on a web page that has 3 drop down boxes that contain a
list of countries in each.
The lists are exactly the same in all dropdowns.
The name for the dropdown box in each is the same, in this case it is
countryID. I have tried specifying one country and posting the form,
tried selecting all three dropdowns as a multiselect and in both cases I
get:

exception=3D"com.meterware.httpunit.FormParameter$UnusedParameterValueExc=
e
ption" message=3D"Attempted to assign to parameter 'countryId' the
extraneous value
'117'."><![CDATA[com.meterware.httpunit.FormParameter$UnusedParameterVal
ueException: Attempted to assign to parameter 'countryId' the extraneous
value '117'


The HTML is=20
<select name=3D"countryId" class=3D"formlist"><option value=3D"">Please =
Select
</option> followed by a list of countries

The webtest scripts look like this:
<setselectfield=20
    stepId=3D"Filling in eligibilities with ${DataTypeTest} data"
    name=3D"countryId"
    value=3D"117"
    multiselect=3D"true"
/>
<setselectfield=20
    stepId=3D"Filling in field with ${DataTypeTest} data"
    name=3D"countryId"
    value=3D"6"
    multiselect=3D"true"
/>
<setselectfield=20
    stepId=3D"Filling in field  with ${DataTypeTest} data"
    name=3D"countryId"
    value=3D"17"
    multiselect=3D"true"
/>

I am able to use multiselects and regular select in other cases fine and
am baffled by this.

Thanks in Advance:

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