Genory
COUNTRY WORKBENCH / PT

Portugal Test Data Generator

Create synthetic Portugal profiles for forms, demonstrations and localization tests.

OUTPUT

Your next test starts here

{ }

Preparing your test data…

Your first record will appear here shortly.
Copy individual values or export the entire result.

Synthetic identities; domains, addresses and numbers may coincide with real values. Do not contact or send payments.

Testing Portugal interfaces

This locale uses pt_PT definitions for names and presentation formats. Test text lengths, input handling, exports and Unicode support. City, region and available postal codes come from the same GeoNames locality. See the generated quality note for postal coverage; street and house number remain synthetic.

COUNTRY-SPECIFIC TEST CASES

Testing Portugal forms

Use a Portugal profile as a starting point for form tests. This guide focuses on four-plus-three postal grouping. Add the deliberate fixture below to make that behavior repeatable.

Generator locale: pt_PT. Suggested application display locale: pt-PT. These are separate settings; this guide does not change the generator’s output.

Address reference for Portugal

Portugal uses seven postcode digits grouped as four digits, a hyphen and three digits. The UPU examples distinguish sub-localities from the final postal locality.

Four-plus-three postal grouping

A hyphen-removal routine intended for telephone numbers can damage a Portuguese postal label. Test that an address formatter restores the intended grouping without merging a sub-locality into the street.

A deliberate regression fixture

Editorial regression fixture — shape and preservation tests only
country: PT
postal_shape: "1234-056"
sub_locality: "Test area"
expected: Keep the final three digits, including their zero, and retain the sub-locality field.

These editorial inputs are for controlled tests. They are not verified addresses, guaranteed unassigned contact details, or automatically generated examples.

  1. 01

    Fixture assertion

    Keep the final three digits, including their zero, and retain the sub-locality field.

  2. 02

    Original text

    Add the hand-written input “São” and compare it after saving, copying and CSV import. It is an editorial string, not promised generator output.

  3. 03

    Locale and coverage

    Test pt-PT display separately from the stored date-only value. Keep the generated locality coverage note with the record; the address reference does not expand Genory’s dataset.

Address reference: UPU addressing guide: Portugal. Reviewed 4 October 2026. Postal presentation rules are not universal rules for storing personal names.

Guides for this task

All guides →