Test cases for zip code – In this article, we have discussed the zip code field. On some websites, it has been used as a postal code or Pin Code Field. In the Zip code field, we are allowed to enter alpha and numeric characters. However, it depends on the country. We will discuss UI, functional, and negative test cases and Test cases For Zip Code Validation.
UI Test Cases For Zip Code
Sr.No
Testcase_ID
Test Cases
1
UI_01
Verify that the zip code field should be as per specification or not
2
UI_02
Verify that the zip code field title should be as per specification or not
3
UI_03
Verify that placeholder text for the postal code
4
UI_04
Verify if the zip code field is a required field then red “*” should be displayed.
5
UI_05
Verify that design of the postal code
6
UI_06
Verify that width of the postal code field
7
UI_07
Verify that height of the postal code field
Functional Test Cases For Zip Code
Sr.No
Testcase_ID
Test Cases
1
Functional_01
Verify that the postal code field should be clickable
2
Functional_02
Verify that when the user clicks on the postal code field the text cursor should be displayed in the postal code area
3
Functional_03
Verify that the user should be able to enter text in the postal code field
4
Functional_04
Verify that the user is able to enter only the numeric field in the zip code field or not
5
Functional_05
Verify that the user should be able to enter only alphanumeric characters in the postal code field.
6
Functional_06
Verify that the maximum length for the postal code field
7
Functional_07
Verify that the minimum length for the postal code field
8
Functional_08
Verify boundary values for the postal code field
9
Functional_09
Verify that entered values should be properly visible or not
10
Functional_10
Verify that the user is able to paste copied zip code in the postal code field or not
Negative Test Cases For Zip Code
Sr.No
Testcase_ID
Test Cases
1
Negative_01
Verify that the user should not be able to enter alphabet characters in the zip code field.
2
Negative_02
Verify that the user should not be able to enter special characters in the zip code field.
3
Negative_03
Verify that the user should not be able to enter numeric special characters in the zip code field.
4
Negative_04
Verify that the user should not be able to enter alpha special characters in the zip code field.
5
Negative_05
Verify that the user should not be able to allow space in the zip code field.
6
Negative_06
Verify that the user should not be able to paste alpha or special characters in the zip code field.
Test Cases For Zip Code Validation
Sr.No
Testcase_ID
Test Cases
1
Validation_01
Verify that validation should be displayed for the required field.
2
Validation_02
Verify postal code field should have a red “*” mark if it’s required
3
Validation_03
Verify that validation should be displayed when the user enters alphabet characters
4
Validation_04
Verify that validation should be displayed when the user enters special characters
5
Validation_05
Verify that validation should be displayed when the user enters numeric special characters
6
Validation_06
Verify that the user should be able to proceed with a blank field or not
7
Validation_07
Verify that validation for maximum char length
8
Validation_08
Verify that validation for minimum char length
Conclusion
So, as above we have tried to cover maximum test cases for postal code. We mentioned UI, functional, negative, and validation test Scenarios for zip code. If you want to explore more test cases then please visit the links below.