[Webtest] Re: Someone really attribute value of setcheckbox?

Marc Guillemot webtest@lists.canoo.com
Tue, 13 Jul 2004 19:13:19 +0200


Ji,

I won't remove it. I just wanted to see if it was used and to understand why.

Marc.

Ji Kim wrote:
> Marc,
> 
> Are you removing this attribute on the next build? I had the impression
> that several people including myself wanting to continue using it. (For
> me, it's multiple checkboxes with the same name. I tried using
> setinputfield instead. But it wouldn't let me set the parameter with
> differ rent values multiple times in a form submission)
> 
> Thanks.
> 
> Ji
> 
> -----Original Message-----
> From: webtest-admin@gate2.canoo.com
> [mailto:webtest-admin@gate2.canoo.com] On Behalf Of lisa.crispin@att.net
> Sent: Monday, July 12, 2004 4:56 PM
> To: webtest@gate2.canoo.com
> Subject: Re: [Webtest] Re: Someone really attribute value of
> setcheckbox?
> 
> Hi Marc,
> I tried putting only the checkbox name, not the value:
> 	<setcheckbox stepid="select the check"
> 		name="check#{checkNbr}"/>
> 
> and I got this error:
> 
> Test step clickbutton named "submit the check" failed with message
> "Could not remove parameter from request: check36530"
> 
> I don't know what this means, but I hope you will not remove the 'value'
> parameter!
> 
> thanks,
> Lisa
> 
> 
> 
> 
> 
> -------------- Original message from Marc Guillemot : -------------- 
> 
>>But you have only one checkbox named "check38341". Right? In this case
> 
> 
>>you just want to check this checkbox and you don't need to specify the
> 
> 
>>value.
>>
>>Marc. 
>>
>>Lisa Crispin wrote: 
>>
>>>Hi Marc,
>>>Here's what the code looks like: 
>>>input name="check38341" type="checkbox" class="control" 
>>>value="38341">
>>>
>>>The check number is generated sequentially for each new check, so 
>>>both the
>>
>>checkbox name and value will be different each time I run the tests 
>>that use this type of page.
>>
>>>thanks,
>>>Lisa
>>>
>>>-------------- Original message from Marc Guillemot : --------------
>>>
>>>
>>>>Hi Lisa,
>>>>
>>>>
>>>>
>>>>>One thing we use it for is to select a box that is going to be a 
>>>>>different
>>>>
>>>>value every time, so I have to use storeregex to get the value: 
>>>>
>>>>
>>>>>>>name="check#{checkNbr}" 
>>>>>
>>>>>value="#{checkNbr}" />
>>>>
>>>>what is the original html code for the checkbox? Has the checkbox 
>>>>already "#{checkNbr}" as value?
>>>>
>>>>
>>>>
>>>>>We also have radio buttons with the same name and different values,
> 
> 
>>>>>I don't
>>>>
>>>>know how else to select: 
>>>>
>>>>
>>>>>>name="forgotW
>>>>>
>>>>>hatSelection" checked="true" value="2"/>
>>>>
>>>>in a radio button group the value distinguished one radio button 
>>>
>>>>from one
>>
>>other
>>
>>>>therefore is the value needed. I will add a dedicated setradiobutton
> 
> 
>>>>task.
>>>>
>>>>Marc.