2011년 6월 24일 금요일

Text Box

Valid Test case for Text Box

enable or disable functionality in order to verify whether we can enter the data

  • It should Editable
  • It should have Text Name
  • Physical properties on page (location height width length)
  • It maximum length should be checked
  • Place of Text Box on the screen (x y coordinates)
  • Allighment of text box with other objects
  • Cursor focus in text box
  • Data type acceptance checking
  • Lenght of data (min and max)
  • back ground color
  • Mouse hover functionality
  • Data type(s) that it accepts
    • Check it accepts alphabets
    • Check it accepts specialcharacters
    • Check it accepts numbers
  • Data Type(s) that it accepts
  • Check for maximum criteria
  • Check for Entervalidation
  • Editability

 

 

Range(1-10)

Name_1,Name_2,Name_3 Create Good

Name_1xxx, Name_2xxx After Create Not Good—>Validation
Name_1 Exist New Name_2 Edit Name_1  Not Good –>Validation

 

1234567890 Input Good

12345678900 Not Good –>Validation

^V + (repeat 200) Not Good –>Validation

 

아래는 http://truetesting.wordpress.com/2007/08/13/how-to-test-a-text-box/에서 가져온 자료이다.

 

Requirements:
1) I have a simple text box of certain size,maximum length.
2) A button which on click will save the data entered in the text box into the database.
3) For each record inserted into the database a new unique id is generated.

How will you get the page:
1) Type the URL in the browser
2) Press Enter key present on the keyboard.
3) You will be able to see the Text box,button on the page.

OK,now we start our test ideas:
My Text box can accept all types of data like alphabets,numeric,special characters,Null,space etc.

Checking the default values:
1)Check the default values of the button,text box,which should be enabled and text of the text box should be null.

Checking the NULL condition:
2)Click on the save button.
If the requirement mentions that: you can save a record with null value then the above case is correct,else the above is bug

Checking the Space condition:
3)
i) Press space bar present on the keyboard for sometime so that an empty space gets inserted into the text box
ii) Click the button

If record saving with space as a valid value then it is not an issue else it is an bug.

4)
i) Copy some empty space somewhere say I copied from a notepad and paste in the text box.
ii) Click the button

If record saving with space as a valid value then it is not an issue else it is an bug.

Checking the Boundary value condition:
5)
i) Enter data in the text box less than the minimum value
ii)Click on Save button

An Error Message should be seen.Else it is a bug.

6)
i) Enter data in the text box equal to the minimum value
ii)Click on Save button

Should get saved.Else it is a bug.

7)
i) Enter data in the text box greater the maximum value
ii)Click on Save button

An Error Message should be seen.Else it is a bug.

8)
i) Enter data in the text box equal to the maximum value
ii)Click on Save button

Should get saved.Else it is a bug.

9)
i) Enter space in the text box equal to the maximum value of the database.
ii)Maximum+1 value equals some valid character
iii)Click on Save button

Should give an error message if space is not a valid value.Else it is a bug.

10) Above can tried even with the copy and paste operation.

Field should accept only alphabets.
11)
i)Enter Alphabetic text
2)Click on the button
Should get saved else it is a bug

12)
i)Paste Alphabetic text
2)Click on the button
Should get saved else it is a bug

13)
i)Enter/Paste Numeric Value/Special characters/Html Tags/Single quotes/Double quotes
2)Click on the button
Should get an error,else it is a bug

Numeric:Rational Numbers,Decimals,Integers,Complex Numbers
Special Characters:!@#$%^&*(),[ALT+124] etc
HTML Tags: Starting Angle Bracket HTML Ending Angle Bracket
Single Quotes: ‘
Double Quoted:”

Checking Trim Functionality
14)
i)Enter Space followed by name
ii)Click on the button
Data has to be trimmed and should get saved else it is a bug

14)
i)Enter Space prefixed to name
ii)Click on the button
Data has to be trimmed and should get saved else it is a bug

15)ENTER VALUE WITH SINGLE QUOTE AND ‘&’ AND VALUES LIKE ~!@#$%^&*()_
These are some of the test ideas I can see when I want to test single text box.

In summary depending upon your requirements and other fields inter linkage, a number of test ideas can be generated.

Before I say a complete bye bye for this post, I have here the MSDN SITE where you can find all the possible properties of text box which will defintely add some more ingredients to your testing.

If you feel I have left out any test ideas in testing the text box,please suggest/comment me.

For further improvement suggestions,please mail me :pavanturlapati@gmail.com

댓글 없음:

댓글 쓰기