Text field used in the website for entering the information in single line or multiline information such as name, address, and city. The main purpose of the text field/text box test cases is that allows the user to enter text into the text box.
In this article, we have tried to cover maximum test cases for text field. We included UI, functional, Text Field Validation, and negative test cases for text field.
UI Test cases For Text Field
Sr.No | Testcase_ID | Test Cases |
1 | UI_01 | Verify that the text field design is as expected or not. |
2 | UI_02 | Verify that the layout of the text field is as expected or not. |
3 | UI_03 | Verify if the text field is a mandatory field then red “*” should be displayed. |
4 | UI_04 | Verify that placeholder text should be shown properly or not |
Functional Test cases For Text Field
Sr.No | Testcase_ID | Test Cases |
1 | Functional_01 | Verify that the user should be able to click on the text field |
2 | Functional_02 | Verify that if the user clicks on the text field area then the text cursor should be visible or not |
3 | Functional_03 | Verify that should be able to type in the text field area |
4 | Functional_04 | Verify that the user should be able to enter alphabetical, numerical, and special characters or not |
5 | Functional_05 | Verify that the user should be able to copy text from the text field. |
6 | Functional_06 | Verify that the user should be able to paste text in the text field. |
7 | Functional_07 | Verify that the user should be able to remove the text from the text field |
8 | Functional_08 | Verify the maximum limit of characters in the text box. |
9 | Functional_09 | Verify the minimum limit of characters in the text box. |
10 | Functional_10 | Verify that boundary values of the text box. |
11 | Functional_11 | Verify that the user is able to leave a blank text field or not |
12 | Functional_12 | Verify that entered values should be properly displayed or not |
Negative Test cases For Text Field
Sr.No | Testcase_ID | Test Cases |
1 | Negative_01 | Verify that the text field should be protected by SQL injection attacks |
2 | Negative_02 | Verify that the user should not be able to enter HTML code |
3 | Negative_03 | Verify that the user should not be able to enter JavaScript code |
Test cases For Text Field Validation
Sr.No | Testcase_ID | Test Cases |
1 | Validation_01 | Verify that text field should be thrown validation message if it required field |
2 | Validation_02 | Verify if the text field is mandatory then a red “*” mark should be displayed. |
3 | Validation_03 | Verify that the validation error message color should be red or not |
4 | Validation_04 | Verify that the user should be able to proceed with a blank field or not |
5 | Validation_05 | Verify that the user should get a validation error message if entered maximum or upper limit of characters |
6 | Validation_06 | Verify the time duration of the validation error message for the text field. |
Conclusion :
As above mentioned, We covered maximum test cases for text box and it will be helpful to software testers to test the text box and also get an idea about how to testing .If you want to explore more sample example of test cases then please visit the links below.
Thank you, Readers….!!!