1 message in com.canoo.lists.webtestAW: AW: [Webtest] How to use setcheck...
FromSent OnAttachments
sem....@bkw-fmb.ch05 Feb 2003 01:27 
Subject:AW: AW: [Webtest] How to use setcheckbox correctly?
From:sem....@bkw-fmb.ch (sem.@bkw-fmb.ch)
Date:02/05/2003 01:27:26 AM
List:com.canoo.lists.webtest

Hi Aatish,

I think there is a misunderstanding here. The Boolean field 'unique' in my FormBean is the checkbox field. I don't have a text field called 'unique' on the form, only this checkbox.

BTW, I tried to change the type from Boolean to boolean, but it doesn't make any difference.

Regards Robert

-----Ursprüngliche Nachricht----- Von: Aatish Arora [mailto:a_aa@yahoo.com] Gesendet: Mittwoch, 5. Februar 2003 10:12 An: webt@lists.canoo.com Betreff: Re: AW: [Webtest] How to use setcheckbox correctly?

Hi Robert,

I think ur right - ofcourse this is just my idea :"> If you have the same name - 1 for a checkbox and the other for a text field - ur trying to pass in something like : unique=text&unique=on

Does it work when you do these steps and try the test "manually"?

thanks, with regards, Aatish Arora

PS: Mittie is out of town I guess - else your query would be solved right away ;)

--- sem.@bkw-fmb.ch wrote:

Hi,

Here is the snippet from my JSP:

<html:checkbox property="unique"/>

In my form I have a field called 'unique', wich is a Boolean, not boolean. May be this causing my problem?

Regards Robert

-----Ursprüngliche Nachricht----- Von: Aatish Arora [mailto:a_aa@yahoo.com] Gesendet: Mittwoch, 5. Februar 2003 06:29 An: webt@lists.canoo.com Betreff: Re: [Webtest] How to use setcheckbox correctly?

Hi Robert,

Can you send us the HTML code for the checkbox box?

thanks, with regards, Aatish Arora

--- sem.@bkw-fmb.ch wrote:

Hi,

I've some trouble with setcheckbox using a property like this:

<setcheckbox stepid="${test.name} - Set checkbox" name="unique" checked="${unique.value}" />

This works fine as long as unique.value=true, but when it's false I get following error:

Test step clickbutton named "MoveFromYoutilityCurrentNotUnique - Push button continue to page3" failed with message "Could not remove parameter from request: unique"

So I though that I have to preset the checkbox beforehand, leading to following steps:

<setcheckbox stepid="${test.name} - Set checkbox" name="unique" checked="true" />

<setcheckbox stepid="${test.name} - Set checkbox" name="unique" checked="${unique.value}" />

Now, again this works fine, but only when unique.value=false, else I get following error:

Exception raised:

com.meterware.httpunit.FormParameter$UnusedParameterValueException:

Attempted to assign to parameter 'unique' the extraneous value 'on'.

Am'I missing something, or does it means that one cannot use setcheckbox in a generic way?

thanks and regards Robert