German Fake Address Generator for Testing
Use a synthetic Germany address fixture for form and import tests. Check the German postcode layout and local address fields.
Preview
ExampleMusterstraße 12a
Test fixture
{
"street": "Musterstraße",
"houseNumber": "12a",
"city": "Berlin",
"postalCode": "10115",
"country": "DE"
}Address format
A typical German address puts the street name ahead of the house number. Use separate storage for Straße and Hausnummer if your product collects them independently. The fixture includes a suffix on the number to illustrate values such as 12a. Test that this suffix survives checkout, export and receipt rendering.
Postal codes are five digits. Store them as strings and include one beginning with zero in an import regression case. When displaying the address, place the postal code before the city. Compare German and English UI formatting with a city or street name containing an umlaut or ß.
Form and import tests
Test a product that parses a street and house number from one input with a street name containing more than one word. Enter the same fixture using separate fields and compare the stored payload. Avoid a split on the first space. A separate test should verify how the product handles a missing house number when it is required.
The example asserts the shape of the postal code together with an alphanumeric house number. It focuses on the local data model. Add a dedicated case for Berlin versus another city and verify that switching shipping country resets the state or region input only when needed.
Fixture assertions
Try entering the address with a hardware keyboard and with a mobile device’s autofill. Check that the house number field uses a keyboard that can enter a letter suffix. If an address import accepts CSV, round trip the Unicode street name and compare it to the original using the expected normalization rules.
The test street is synthetic, and the city is present to show the layout. Use the data for QA and interface screenshots. If a carrier test checks whether a delivery point exists, isolate that assertion in a controlled provider sandbox so the local checks stay repeatable.
JavaScript test example
const fixture = {
"street": "Musterstraße",
"houseNumber": "12a",
"city": "Berlin",
"postalCode": "10115",
"country": "DE"
};
const postcode = fixture.postalCode;
if (!/^\d{5}$/.test(postcode) || !(/^\d+[a-z]$/i.test(fixture.houseNumber))) {
throw new Error("Address fixture failed");
}