List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Max Lenght of Characters in a textfield

  • Subject: Re: [QF-Test] Max Lenght of Characters in a textfield
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Mon, 27 May 2013 16:48:51 +0200

Hello Gonzalo,

since JTextArea doesn't have a simple maxlength attribute that you can
check at script level, you should implement the check from an end-users
point of view:

If, for example, the maximum length is 20 characters, replay a Text
input node with a text of length 21 and the 'Clear textfield first'
and 'Replay single events' attributes checked, then follow it with a
check that verifies that only the first characters were accepted.

Best regards,

Gonzalo Parra <gonzalo.parra@?.com> writes:

> Hello,
> Im testing a Java application and I would like to know if there is any way to check the maximum
> length allowed by a text field.
> Thanks in advance
> Regards
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH           
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833