[Webtest] setInputField: Why can I add more then maxlength characters

Stephen de Vries Stephen de Vries <stephen@twisteddelight.org>
Thu, 10 Jan 2008 10:16:03 +0100


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