Test Cases For Zip Code field

.
Sample Test Cases For Zip Code 

Hello Folks, 

In this tutorial, we will learn how to write Zip Code Test Cases? We will also learn about positive test scenarios and Negative test scenarios.


What is a zip code? How to Test the zipcode field Validation?
A zip code is a postal code used by the USPS (United States Postal Service). US zip code is 5 numerical (0-9) digits long. The first digit of the zip code represents the National area, and the list of the area as per the respective sequence is 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- The 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 field validation 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 a space between 2 digits of the zip code.

Hope !!! The above zip code validation test cases are helpful for you ...

Team, 
QA acharya

Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com

Test Cases for Zip Code 

Post a Comment

0 Comments