[Webtest] setInputField: Why can I add more then maxlength
characters
Soula, William
Soula, William" <wsoula@pointserve.com
Fri, 25 Jan 2008 15:30:19 -0600
Has this issue been addressed? I would like to verify that a textfield on=
ly accepts a certain number of characters.
William Soula
QA Analyst
Pointserve, Inc.
110 Wild Basin Road
Suite 300
Austin, Texas 78746
O: 512.617.5311
F: 512.617.0466
-----Original Message-----
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
On Behalf Of Marc Guillemot
Sent: Thursday, January 10, 2008 4:34 AM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] setInputField: Why can I add more then maxlength cha=
racters
where I'm unsure is whether "checkmax" default value should be true or fals=
e.
On one side a default value of "true" would be more natural. On the other s=
ide, it may break existing tests. Nevertheles in this case this is perhaps =
not a real problem because normal current usage of setInputField is surely =
with value with the correct length...
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com
Robert Bodziony wrote:
> hi
>
> i just thinking to that default behaviour of setInputField will same
> like was :)
>
> but with option like that "...checkmax=3D"true""
> will be checking and not allowing to store more charcters then is
> allowed to inputField
> and of course its end with not reading from field more characters
> there is allowed by maxlength ...
>
> Regards,
> Robert
>
>
> 2008/1/10, Stephen de Vries < stephen@twisteddelight.org
> <mailto:stephen@twisteddelight.org>>:
>
>
> Hi Marc,
>
> For performing security tests on a web app, being able to pass any
> number of characters to an input field is quite essential. So it
> would be great if you could keep this behaviour, even if it's not the
> default.
>
> 2c,
> Stephen
>
> On Jan 10, 2008, at 9:14 AM, Marc Guillemot wrote:
>
> > Hi Willi,
> >
> > do you mean that WebTest shouldn't care of this but HtmlUnit should
> > do?
> >
> > In fact it makes sense to have the possibility to set values will
> > length
> >> maxlength: because you can simply remove the maxlength check in a
> > normal browser it makes sense to be able to test how your webapp
> > reacts
> > when maxlength isn't respected. This may be handled in WebTest or i=
n
> > HtmlUnit, it doesn't matter.
> >
> > Cheers,
> > Marc.
> > --
> > Blog: http://mguillem.wordpress.com
> >
> >
> > Willi Kuhnis wrote:
> >> Hi Marc,
> >>
> >> thanks for your feedback.
> >> you says, maybe it would make sense, when setInputField could
> >> (optionally) respect the maxlength.
> >>
> >> But I still dont understand:
> >> I think, setInputField must not handle this -> the webpage (and in
> >> the
> >> webpage the used edit field ) should handle this.
> >> After I entered a string with the length of 41 in a edit field wit=
h
> >> maxlength of 40, I am not able to read or see a text in this edit
> >> field
> >> with more
> >> than 40 characters. So I dont understand, how Webtest can read a t=
ext
> >> with 41 characters out of this edit field. Thats my problem.
> >>
> >> Do you understand?
> >>
> >>
> >> --
> >> Willi Kuhnis
> >> wkuehnis@gmail.com <mailto:wkuehnis@gmail.com> <mailto:
> wkuehnis@gmail.com <mailto:wkuehnis@gmail.com>>
> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com <mailto:WebTest@lists.canoo.com>
> > http://lists.canoo.com/mailman/listinfo/webtest
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com <mailto: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