Test Cases For Zip Code field - Zip Code Validation

 What is a zip code? How to Test zipcode field?
A zip code is a postal code used by the USPS (United State Postal Service). US zip code is 5 numerical (0-9) digits long. First digit of zip code represents the National area, list of the area as per the respective sequence given below.

Us Zip Code format : 
            Sample US zip code   :  93101

9- The first digit in a ZIP code represents a defined group (area )of U.S. states. 
31- The second and third digits represent a region in that group, such as a large city.
01- Fourth and Fifth digits represent the Associate post office or delivery area.

US Zip code Format
AREA-

0 = Connecticut, Massachusetts, Maine, New Hampshire, New Jersey, Puerto Rico, Rhode Island, Vermont, Virgin Islands, Army Post Office Europe, Fleet Post Office Europe

1 = Delaware, New York, Pennsylvania

2 = District of Columbia, Maryland, North Carolina, South Carolina, Virginia, West Virginia

3 = Alabama, Florida, Georgia, Mississippi, Tennessee, Army Post Office Americas, Fleet Post Office Americas

4 = Indiana, Kentucky, Michigan, Ohio

5 = Iowa, Minnesota, Montana, North Dakota, South Dakota, Wisconsin

6 = Illinois, Kansas, Missouri, Nebraska

7 = Arkansas, Louisiana, Oklahoma, Texas

8 = Arizona, Colorado, Idaho, New Mexico, Nevada, Utah, Wyoming

9 = Alaska, American Samoa, California, Guam, Hawaii, Marshall Islands, Federated States of Micronesia, Northern Mariana Islands, Oregon, Palau, Washington, Army Post Office Pacific, Fleet Post Office Pacific


Test Cases For Zipcode field - Validation of zip code field
Here !!! Important Test cases for zip code are given below.
  • First, check that the user is able to type in the zip code field.
  • Verify the zip code field by entering the 5 digits valid code. (34343)
  • Verify the field by entering the zip code less than 5 digits.(3434)
  • Verify the field by entering the zip code more than 5 digits.(343434)
  • Verify the field by entering the 5 digit zero.(00000)
  • Verify the field by entering the blank space.
  • Verify the field by entering the decimal Number.
  • Check that when the user pastes 5 digits valid zip code.
  • Check that when the user pastes more than the 5 digit zip code.
  • Check that when user tries to enter alphabet and special char in zip code field.
  • Check that when user tries to paste the alphabet and special char in the field.
  • Check the validation message when the user enters a zip code of less than 5 digits.
  • Check the validation message when the user enters zip code more than 5 digits.
  • Check the validation message when the user leaves the field blank (in the case when the field is mandatory ) 
  • Check that when a user enters a zip code that does not exist.
  • Check that when the user tries to enter a zip code by putting space between 2 digits of the zip code.
Hope !!! The above Test cases for the US zip code field are helpful for you ...

Team, 
QA acharya

Tags : Test cases of zip code, US zip code Testing, US zip code format , Zipcode validation , Test scenarios for zip code, Zip code test cases, Zipcode sample 

Test Cases for Zip Code 



Admin-Mumbai office

Post a Comment

Previous Post Next Post