Form validation
Address Form Validation Test Data
Address forms fail in small places: required fields, clipped long values, unsupported characters, wrong ZIP shapes, mismatched city/state pairs, and phone-number parsing.
This page focuses on validation fixtures that help QA teams test address forms without relying on production data or hand-written placeholder values.
What this adds beyond a basic address generator
Positive validation cases
Use valid-looking synthetic records that should pass your form rules.
- Required fields populated
- City/state/ZIP aligned
- Phone formatted
- Email syntactically valid
Negative validation cases
Pair generated good records with controlled invalid mutations.
- Empty ZIP
- Wrong state for ZIP
- Letters in ZIP
- Overlong street field
Consistency checks competitors usually skip
GenAddr keeps the fields in the same generated record aligned instead of mixing unrelated values.
- City and state stay together.
- ZIP code belongs to the selected city.
- Phone number uses a region-appropriate US format.
- Generated values are clearly marked as synthetic test data.
Example fields
- Positive case
- San Diego, CA 92126
- Mismatch case
- San Diego, NY 92126
- Format case
- ZIP+4 optional
Example validation cases
[
{ "field": "postalCode", "value": "92126", "expected": "valid" },
{ "field": "postalCode", "value": "92A26", "expected": "invalid" },
{ "field": "state", "value": "NY", "postalCode": "92126", "expected": "mismatch" }
]Responsible use
- All generated data is synthetic and does not describe a real person, household, or account.
- Do not use it for fraud.
- Do not use it for identity verification.
- Do not use it for payment verification.
- Do not use it to impersonate real people.
- Use it only for testing, QA, demos, development, and education.
Frequently asked questions
What fields should address validation tests cover?
Cover street, city, state or region, postal code, country, phone, required fields, max lengths, and import/export formats.
Can I use the generated records in automated tests?
Yes. Use JSON or CSV output as fixtures for unit tests, integration tests, end-to-end tests, and staging data.
Why not use random strings?
Random strings miss location consistency. Address validation tests are stronger when city, state, ZIP, and phone format are aligned.