.png)
How To Write Test Cases For Zip Code Field?
Hello Folks,
In this tutorial, we will learn how to write Code Field Test Cases? We will also learn about positive test scenarios and Negative test scenarios.
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.
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
- 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.
Team,
0 Comments