Monday, March 9, 2009

How to test a Text Box

Listed below are the scenarios to test a text box in an application,

1) Check with the requirement whether it will accept numeric and special characters

2) Enter” HTML tag” and click save button
If it displays the entered texts means there is no defect.
If it converts the HTML tags and displays the message only means there is a defect

3) Enter “Java Script” and click save button
If it displays the entered texts means there is no defect.
If it converts the Script and displays the message only means there is a defect

4) Copy and paste a “Embed code” for a video from You Tube and click save button
If it displays the entered texts means there is no defect.
If it displays the video for that code means it is defect

5) Enter “Profile layout codes” and click save button
Ex : take code from http://www.pimpmyarea.com/getcode.php?style=archivos_css/movies2.css
If it displays the entered texts means there is no defect.
If it changes the design of the page means it is defect

6) Test With Boundary value conditions for the given character limitation
Ex: If it accepts 1 to 10 characters
Then Test with 0, 1,2,9,10,11
It will not accept 0 and 11 characters, if it accepts then there is an defect

7) Test by entering “Spaces” in the prefix and suffix of the entered character
It has to trim the spaces and have to display the texts properly

8) Test by entering “single quotes and double quotes”
It will result in Database error

9) Enter a text within Double quotes and click save button
Ex: “Testing”
Sometimes it will not show the entered text in the text box

10) Copy and Paste long texts from word or notepad
Ex: If the characters are limited between 1 to 10, then it will not allow to type text more than 10 characters, Some times copy texts from word document which have 15 characters and paste it in the text box, it will allow.

5 comments: