I’ll post some tips about testing during the time I learn. So if you have any comments or tips to add, feel free to comment!

Here a 10 values I submit to test a textfield:

  1. An empty value ()
  2. Zero (0)
  3. A string made of whitespace (   )
  4. String containing spaces (foo bar)
  5. Name containing special chars (♥♠♣♦)
  6. Chars with accents ( ä, ö, ü / Ä, Ö, Ü, ß, Ñ, Á, Â, Ã, À, Ç, É, Ê, Í, Ó, Ô, Õ, Ú, Ü, œ, æ, à, â, ç, é, è, ê, ë, î, ï, ô, û, ù, ü, ÿ)
  7. ‘Foreign’ chars(新 闻 – भारत)
  8. A string length between 0 and 255 chars
  9. A string length bigger than 255 chars
  10. A string length bigger than 99999 chars

Have more general test for texfield in mind?

Ahmet

  5 Responses to “Testing a Textfield in 10 points”

  1. Hi Ahmet,
    It’s nice to know that you’re well at Micro$oft.

    For your tests, I have the 11th :
    A String which is a number ;)

  2. Very correct Fab :)
    Thanks!

  3. Yea, some dev folks overlook the fact that you can put this in the text fields:

    HI

    Does some interesting things when you do.

  4. SEE

    OK – was putting body text brackets for html in front of and behind the HI.

  5. Very good point, inseting HTML or injecting SQL can be interesting tests to pass, depending of the context.

    Thanks for highlighting this.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>