Name-12345
Mobile no.-abcdefghij
Email Id-dsdfs2gmail.com
Age-1000
Anyone can be shocked after seeing this kind of data in there data base. This kind of data can corrupt the data base or sometimes application may crash due to this kind of data. If we don’t want do face this situation in that case we have to do proper field validation testing. “Textbox” is mostly used field in all website applications . We should be very careful while doing field validation testing of “Text box”.
Common Textboxes:
Below are the some common text boxes which are mostly used in web based Applications:
Name:
-Only some special characters should be allowed like apostrophe
-Only numerals should not be allowed in Name field
-There should be a character limit in Name field
Mobile No:
-only 10 digits are allowed as mobile no . There should be char limit in this field
-In india mobile no starts with 9,8,7
Email:
-Text in email format "xyz@abc.com" and "xyz@yahoo.co.in" should be accepted
-There should be a char limit in this field
Age:
-This should be numeric field.(Sometimes based on requirements it could be alphanumeric)
-Only max 3 digits should be allowed in Age field
-There should be max age value
Amount:
-There should be a char limit in this field
-only 2 digit should be allowed after decimal(or sometimes based on requirements)
-verify for -ve and +ve values based on requirements for some values like selling price of any item cannot be negative
-Different countries have different notations for numbers. -Enter the max value allowed in the field(ie-'999999' if 5 digit allowed or "9999999999" if 10 digit allowed)
Below are the general field validation test cases for “Textbox” field:
-Verify the required field behaviour
-Enter special characters and verify the behaviour after saving the detail
-Enter char in caps and verify the details after saving the details
-Verify the max character length of the field
-Enter spaces and do not enter anything and verify the behaviour after saving the detail
-Enter space and then some characters and verify the behaviour after saving the detail
-Enter some words with spaces and verify the behaviour after saving the detail
-Enter alphanumeric characters and verify the behaviour after saving the details
-Enter alphanumeric characters with special characters and verify the details after saving the details
-Copy some text (more than char limit) from different document and paste in this field and verify the behaviour while saving the details and after saving the details
-Copy some text (less than char limit) from different document and paste in this field and verify the behaviour while saving the details and after saving the details
-Enter text after pressing enter button in between the text and save the details and verify the behaviour
No comments:
Post a Comment