Test Cases For Zip Code field

.
Zip Code Test Case

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 Code Field Validation?
A zip code is a postal code used by the USPS (United States Postal Service). A 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 areas, 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 the 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 a 5-digit valid code. (34343)
  • Verify the field by entering a zip code with fewer than 5 digits. (3434)
  • Verify the field by entering a zip code with 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 5-digit valid zip code.
  • Check that when the user pastes more than a 5-digit zip code.
  • Check that when the user tries to enter an alphabet and a special character in the zip code field.
  • Check that when the user tries to paste the alphabet and special characters into the field.
  • Check the validation message when the user enters a zip code of fewer than 5 digits.
  • Check the validation message when the user enters a zip code with 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