[Webtest] setInputField: Why can I add more then maxlength characters
Robert Bodziony
Robert Bodziony" <robert.bodziony@gmail.com
Thu, 10 Jan 2008 10:57:08 +0100
------=_Part_5543_23320222.1199959028695
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hi
i just thinking to that default behaviour of setInputField will same like
was :)
but with option like that "...checkmax="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>:
>
>
> 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 in
> > 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 with
> >> 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 text
> >> with 41 characters out of this edit field. Thats my problem.
> >>
> >> Do you understand?
> >>
> >>
> >> --
> >> Willi Kuhnis
> >> wkuehnis@gmail.com <mailto:wkuehnis@gmail.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
>
------=_Part_5543_23320222.1199959028695
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hi <br><br>i just thinking to that default behaviour of setInputField will same like was :) <br><br>but with option like that "...checkmax="true""<br> will be checking and not allowing to store more charcters then is allowed to inputField
<br> and of course its end with not reading from field more characters there is allowed by maxlength ...<br><br> Regards,<br> Robert<br><br><br><div><span class="gmail_quote">2008/1/10, Stephen de Vries <<a href="mailto:stephen@twisteddelight.org">
stephen@twisteddelight.org</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Marc,<br><br>For performing security tests on a web app, being able to pass any
<br>number of characters to an input field is quite essential. So it<br>would be great if you could keep this behaviour, even if it's not the<br>default.<br><br>2c,<br>Stephen<br><br>On Jan 10, 2008, at 9:14 AM, Marc Guillemot wrote:
<br><br>> Hi Willi,<br>><br>> do you mean that WebTest shouldn't care of this but HtmlUnit should<br>> do?<br>><br>> In fact it makes sense to have the possibility to set values will<br>> length<br>
>> maxlength: because you can simply remove the maxlength check in a<br>> normal browser it makes sense to be able to test how your webapp<br>> reacts<br>> when maxlength isn't respected. This may be handled in WebTest or in
<br>> HtmlUnit, it doesn't matter.<br>><br>> Cheers,<br>> Marc.<br>> --<br>> Blog: <a href="http://mguillem.wordpress.com">http://mguillem.wordpress.com</a><br>><br>><br>> Willi Kuhnis wrote:
<br>>> Hi Marc,<br>>><br>>> thanks for your feedback.<br>>> you says, maybe it would make sense, when setInputField could<br>>> (optionally) respect the maxlength.<br>>><br>>> But I still dont understand:
<br>>> I think, setInputField must not handle this -> the webpage (and in<br>>> the<br>>> webpage the used edit field ) should handle this.<br>>> After I entered a string with the length of 41 in a edit field with
<br>>> maxlength of 40, I am not able to read or see a text in this edit<br>>> field<br>>> with more<br>>> than 40 characters. So I dont understand, how Webtest can read a text<br>>> with 41 characters out of this edit field. Thats my problem.
<br>>><br>>> Do you understand?<br>>><br>>><br>>> --<br>>> Willi Kuhnis<br>>> <a href="mailto:wkuehnis@gmail.com">wkuehnis@gmail.com</a> <mailto:<a href="mailto:wkuehnis@gmail.com">
wkuehnis@gmail.com</a>><br>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>><br>> _______________________________________________<br>> WebTest mailing list<br>> <a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com
</a><br>> <a href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a><br><br>_______________________________________________<br>WebTest mailing list<br><a href="mailto:WebTest@lists.canoo.com">
WebTest@lists.canoo.com</a><br><a href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a><br></blockquote></div><br>
------=_Part_5543_23320222.1199959028695--