Australian Fake Phone Numbers for QA Testing
Use a fictional Australia phone fixture for QA. Compare the original display value with international notation and test phone validation.
Test fixture
Input: 0491 570 006
International: +61491570006Phone format
Australia’s country calling code is +61. The sample is a mobile number listed by ACMA for use in fiction. In domestic form this example begins with 04. When converted to international form the initial zero is removed and +61 is prefixed. Keep both representations as text.
Use the domestic example in an address book and a checkout form to compare their formatting. On a page with a country selector, paste the international value after selecting Australia and verify that the form does not add +61 twice. Add a short input and confirm that validation points to the phone field.
Form and import tests
In an account profile test, save the formatted value, reload the page and re-open the editor. Check that the normalized string sent by the browser after a second save matches the first. Include a layout test with a visible country prefix and a number copied from a shipment contact card.
If the product accepts landlines as well as mobile numbers, use separate fixtures to check the contact model. For a required SMS field, simulate the provider’s delivered and undeliverable states in a sandbox. Do not depend on the listed fictional number to receive messages or calls.
Fixture assertions
A CSV export may contain a plus sign in the first character of the phone column. In your spreadsheet import test, configure it as text and keep a snapshot of the input record. If a worksheet strips leading zeros from the national representation, it should be visible when the fixture is loaded.
The example code converts the domestic test value and asserts the exact international string. Broaden your product tests with country switching and a deliberate invalid country code. Keep the normalization test deterministic and validate any outward request in an integration where real deliveries are disabled.
For a contact list snapshot, include the national format and the same number with the international prefix. A visual diff can then catch grouping changes while a separate assertion protects the stored value.
JavaScript test example
const raw = "0491 570 006";
const normalized = raw.replace(/ /g, "").replace(/^0/, "+61");
if (normalized !== "+61491570006") {
throw new Error("Unexpected normalized phone fixture");
}