Indian Fake Phone Numbers for Validation Tests
Use a fictional India phone fixture for QA. Compare the original display value with international notation and test phone validation.
Test fixture
Input: +91 00000 00000
International: +910000000000Phone format
This Indian example uses the +91 country calling code and a deliberately invalid subscriber value. Use it to populate negative validation tests and format demonstrations. Keep it visibly tied to a test fixture and block calls and messages from the test runner.
A domestic mobile input commonly expects ten digits. The product may accept input already prefixed with +91 or allow the user to pick the country before entering digits. Exercise both entry paths and verify the form does not add +91 twice. Treat checkable shape and acceptance as separate expectations.
Form and import tests
Test rejection of the zero placeholder below after stripping spaces. Check that the field preserves its value when it gets an error, so the user can correct the input. If the application validates on blur, compare behavior with validation on submission using a prefilled fixture.
For a positive phone verification path, use a provider-supplied sandbox number. Simulate the OTP success, retry timeout and too-many-attempts branches with a stubbed response or provider test configuration. If the user changes the number while waiting for a code, ensure the UI rejects late responses for the older value.
Fixture assertions
If contacts arrive through a CSV import, verify that whitespace between digit groups does not create multiple columns and that the plus sign is preserved. Run the same record through the profile editor and confirm that re-saving does not round-trip the phone number as a numeric value.
The JavaScript assertion confirms normalization for this exact placeholder. It then checks that the all-zero subscriber digits are recognized as an invalid test value. Add cases with a missing digit and unexpected punctuation to see whether your error messages distinguish the failure. Use a maintained regional parser for broader coverage.
Capture the rejected case with an explicit validation error code in the expected result. That lets the same fixture exercise translated error messages without binding the test to one language.
JavaScript test example
const raw = "+91 00000 00000";
const normalized = raw.replace(/ /g, "");
if (normalized !== "+910000000000") {
throw new Error("Unexpected normalized phone fixture");
}
if (!normalized.endsWith('0000000000')) throw new Error('Expected invalid subscriber digits');