Test cases for name field

How To Write Sample Test Cases For Name Field

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.NoTestcase_IDTest Cases
1UI_01Verify that the name field design should be have as per the customer’s specification
2UI_02Verify that the layout of the name field should be as per the customer’s specification.
3UI_03Verify if the name field is a mandatory field then red “*” should be displayed.
4UI_04Verify that placeholder text should be shown properly or not for the name field.
5UI_05Verify that design of the name field is as per executed or not
6UI_06Verify that width of the name field
7UI_07Verify that height of the name field

Functional Testing – Test Cases for Name Field

Sr.NoTestcase_IDTest Cases
1Functional_01Verify that when the user clicks on the name field, the text cursor should be visible in the name field.
2Functional_02Verify that the user is able to click on the name field or not
3Functional_03Verify that the user is able to type in the name field or not
4Functional_04Verify that the user should be allowed to enter only alphabet characters in the name field.
5Functional_05Verify that the user is able to copy text from the name field.
6Functional_06Verify that the user is able to remove text from the name field
7Functional_07Verify the maximum length of characters in the name field.
8Functional_08Verify the minimum length of characters in the name field.
9Functional_09Verify that length with boundary values in the name field
10Functional_10Verify that the user should be able to leave a blank name field or not
11Functional_11Verify that entered values should be properly visible or not

Test cases for name field
Test cases for name field

Negative Test Cases for Name Field:

Sr.NoTestcase_IDTest Cases
1Negative_01Verify that the user should not be able to enter numeric characters in the name field.
2Negative_02Verify that the user should not be able to enter special characters in the name field.
3Negative_03Verify that the user should not be able to enter numeric special characters in the name field.
4Negative_04Verify that the user should not be able to allow space in the name field.
5Negative_05Verify that the user should not be able to paste numeric or special characters in the name field.

Test Cases for Name Field Validation:

Sr.NoTestcase_IDTest Cases
1Validation_01Verify that it should display a validation error message for the required field.
2Validation_02Verify if the name field is mandatory then a red “*” mark should be displayed.
3Validation_03Verify that the validation error message should be displayed when the user enters numeric characters in the name field.
4Validation_04Verify that validation error messages should be displayed when a user enters special characters in the name field.
5Validation_05Verify that the validation error message should be displayed when the user enters numeric special characters in the name field.
6Validation_06Verify that the user should be able to proceed with a blank field or not
7Validation_07Verify that the validation error message should be displayed if the user entered the maximum or upper limit of characters
8Validation_08Verify 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.

1. Test cases for Drop down list

2. Test cases for Email Field

3.Test cases for Name Field

Scroll to Top