Test cases for Name Field: In this article, we have tried to cover test scenarios for name field. Name field is mostly used on the Registration page, Contact us page, and Landing pages. So we have covered UI, functional, and negative test cases for name field.
UI Testing – Test Cases for Name Field
Sr.No
Testcase_ID
Test Cases
1
UI_01
Verify that the name field design should be have as per the customer’s specification
2
UI_02
Verify that the layout of the name field should be as per the customer’s specification.
3
UI_03
Verify if the name field is a mandatory field then red “*” should be displayed.
4
UI_04
Verify that placeholder text should be shown properly or not for the name field.
5
UI_05
Verify that design of the name field is as per executed or not
6
UI_06
Verify that width of the name field
7
UI_07
Verify that height of the name field
Functional Testing – Test Cases for Name Field
Sr.No
Testcase_ID
Test Cases
1
Functional_01
Verify that when the user clicks on the name field, the text cursor should be visible in the name field.
2
Functional_02
Verify that the user is able to click on the name field or not
3
Functional_03
Verify that the user is able to type in the name field or not
4
Functional_04
Verify that the user should be allowed to enter only alphabet characters in the name field.
5
Functional_05
Verify that the user is able to copy text from the name field.
6
Functional_06
Verify that the user is able to remove text from the name field
7
Functional_07
Verify the maximum length of characters in the name field.
8
Functional_08
Verify the minimum length of characters in the name field.
9
Functional_09
Verify that length with boundary values in the name field
10
Functional_10
Verify that the user should be able to leave a blank name field or not
11
Functional_11
Verify that entered values should be properly visible or not
Negative Test Cases for Name Field:
Sr.No
Testcase_ID
Test Cases
1
Negative_01
Verify that the user should not be able to enter numeric characters in the name field.
2
Negative_02
Verify that the user should not be able to enter special characters in the name field.
3
Negative_03
Verify that the user should not be able to enter numeric special characters in the name field.
4
Negative_04
Verify that the user should not be able to allow space in the name field.
5
Negative_05
Verify that the user should not be able to paste numeric or special characters in the name field.
Test Cases for Name Field Validation:
Sr.No
Testcase_ID
Test Cases
1
Validation_01
Verify that it should display a validation error message for the required field.
2
Validation_02
Verify if the name field is mandatory then a red “*” mark should be displayed.
3
Validation_03
Verify that the validation error message should be displayed when the user enters numeric characters in the name field.
4
Validation_04
Verify that validation error messages should be displayed when a user enters special characters in the name field.
5
Validation_05
Verify that the validation error message should be displayed when the user enters numeric special characters in the name field.
6
Validation_06
Verify that the user should be able to proceed with a blank field or not
7
Validation_07
Verify that the validation error message should be displayed if the user entered the maximum or upper limit of characters
8
Validation_08
Verify that the validation error message should be displayed if the user entered a minimum or lower limit of characters
Conclusion:
So as above, test cases for name field will help to test the name field and also get an idea about how to test name field. If you want to explore more test cases then please visit the link below.