Has this issue been addressed?  I would like to verify that a textfield only 
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Thursday, January 10, 2008 4:34 AM
To: [email protected]
Subject: Re: [Webtest] setInputField: Why can I add more then maxlength 
characters

where I'm unsure is whether "checkmax" default value should be true or false.
On one side a default value of "true" would be more natural. On the other side, 
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="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 < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>:
>
>
>     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
>     >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:
>     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     >
>     > _______________________________________________
>     > WebTest mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://lists.canoo.com/mailman/listinfo/webtest
>
>     _______________________________________________
>     WebTest mailing list
>     [email protected] <mailto:[email protected]>
>     http://lists.canoo.com/mailman/listinfo/webtest
>
>

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to