US Fake Phone Numbers for Form Testing

Use a fictional United States phone fixture for QA. Compare the original display value with international notation and test phone validation.

Test fixture

Input:          +1 (512) 555-0142
International:  +15125550142

Phone format

The US uses country calling code +1 and a ten-digit national number. It shares +1 with Canada and other numbering plan regions. A fixture can include punctuation such as parentheses and hyphens to exercise a form mask. In an API fixture that expects international notation, store the plus sign and digits as a string.

The example is in the NANPA range 555-0100 through 555-0199 reserved for fictional use. Use it in screenshots or mock contact lists. To test delivery through an external provider, use designated test destinations or stub the send operation and assert only the payload.

Form and import tests

Set the address country to US and paste the number with its country calling code already present. Check that the UI does not add a second +1. Then enter the same digits in national format and compare the normalized value. Configure the local parser to reject a missing area code when the product requires a complete number.

In a bulk CSV test, check that an import preserves the plus sign and that it does not treat the phone as a numeric expression. Export and re-import the same record to detect drift. For deduplication tests, use a version with spaces and one without spaces and check how the product handles two presentations of the same value.

Fixture assertions

For SMS or voice OTP, keep an extension in a separate fixture field if the model supports office numbers. Test rejection in a mobile-only input and test display in a CRM view separately. This separates phone formatting, which can be checked locally, from capabilities defined by a communication service.

The code below strips the punctuation used by this example and compares the exact text used in the request. Add a case with non-digit characters in unexpected positions and another with a different supported region. This simple fixture assertion covers the known input. For general phone input, use a maintained numbering library and pass the selected region.

JavaScript test example

const raw = "+1 (512) 555-0142";
const normalized = raw.replace(/[ ()-]/g, "");
if (normalized !== "+15125550142") {
  throw new Error("Unexpected normalized phone fixture");
}

Related generators