AW: [Webtest] How to use setcheckbox correctly?
Aatish Arora
webtest@lists.canoo.com
Wed, 5 Feb 2003 01:12:23 -0800 (PST)
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.Gottofrey@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_aatish@yahoo.com]
> > Gesendet: Mittwoch, 5. Februar 2003 06:29
> > An: webtest@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.Gottofrey@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
> > > _______________________________________________
> > > WebTest mailing list
> > > WebTest@lists.canoo.com
> > > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com