Form testing checklist: what to type into a form
A form that works with "test" and "test@test.com" can still break on real people. Use this list as a starting set, and tick it off per form.
Names
- A long surname and a long given name (40+ characters).
- An apostrophe or hyphen: O'Brien, Smith-Jones.
- Accents and non-Latin letters: José, Zoë, Łukasz, 山田.
- A single-word name, and a name with a space at the end.
Email
- A plus tag:
name+test@example.com. - Uppercase letters, and a subdomain.
- A missing @, a missing dot, and two @ signs, which should be refused.
Use the reserved example.com domain for test mail so a stray send reaches nobody.
Phone and address
- International format with a plus sign, spaces and dashes.
- Too few and too many digits.
- Address line two empty, a very long street name, a postcode with a leading zero.
Dates and numbers
- 29 February in a leap year and in a non-leap year.
- Today, yesterday and a date far in the future.
- Zero, a negative number, a decimal with a comma and with a point.
Text areas
- Empty, one character, and 5,000 characters.
- Line breaks, emoji and angle brackets such as
<b>, to check output escaping.
Behaviour
- Submit twice quickly, to catch duplicate records.
- Press Back after submitting, then submit again.
- Leave each required field empty one at a time.
Typing all of this by hand is slow. Fake Form Filler – Test Data Autofill fills a whole form with realistic fake values in one click, and leaves payment and identity fields empty, so you can spend the time on the edge cases above. See the help page and the guide on filling forms with fake test data.