Skip to content
QA Knowledge Hub

Test cases for a registration form

Updated 2026-11-12 · 5 min read

A sign-up form is where bad data enters the system. These 35 cases cover each field, duplicate accounts, password rules, verification and security, with expected results and a CSV download.

Assumes fields for full name, email, mobile number, password, confirm password, a terms checkbox and a "Create account" button, followed by email verification. Remove or add fields to match your product.

How to answer in an interview

Go field by field, then across fields (duplicates, password match), then the flow after submit (verification email), then security. Ask early about the rules: minimum password length, whether the mobile number is mandatory, whether an unverified account can log in.

Field validation

IDCategoryTest caseExpected result
R01FunctionalFill every field with valid data and submitAccount created; confirmation or verification message shown
R02NegativeSubmit with all fields emptyRequired-field messages on every mandatory field
R03NegativeLeave one mandatory field empty at a timeThe matching field shows its own message
R04BoundaryName of 1 character, the minimum, the maximum and one over the maximumLimits enforced with clear messages
R05FunctionalName with spaces, hyphen, apostrophe and unicode (Anne-Marie, D'Souza, प्रिया)Accepted as valid names
R06NegativeName with only digits or symbolsRejected, or accepted per a documented rule
R07NegativeInvalid email formats (a@, a@b, a [email protected], a@@b.com)Format error
R08FunctionalEmail with plus-addressing and subdomains ([email protected])Accepted
R09NegativeMobile number with letters, fewer or more than 10 digitsRejected with a message
R10FunctionalMobile with and without +91 or a leading zeroNormalised or accepted as documented
R11NegativeLeading and trailing spaces in each fieldTrimmed before validation

Password

IDCategoryTest caseExpected result
R12NegativePassword below the minimum lengthRejected with the rule shown
R13NegativePassword missing a required character type (digit, upper-case, symbol)Rejected, and the message says which rule failed
R14NegativeConfirm password does not matchMismatch message
R15FunctionalPassword strength meter updates as you typeMatches the rules
R16NegativeA very common password (Password@123)Rejected if there is a blocklist; otherwise noted as a risk
R17SecurityCheck that the password is not stored or shown in plain text anywhere (network, email, logs)Never shown; the confirmation email does not contain it

Duplicates and flow

IDCategoryTest caseExpected result
R18NegativeRegister with an email that already existsClear message; consider whether it reveals too much about existing accounts
R19NegativeSame email with different upper and lower caseTreated as the same account
R20NegativeRegister with an already used mobile number (if unique)Rejected with a message
R21NegativeDouble click "Create account"Only one account is created
R22FunctionalVerification email arrives within the stated time with a working linkAccount becomes active when the link is opened
R23NegativeOpen the verification link twice, and after it expiresSecond use and expired links show a clear message and a way to resend
R24FunctionalResend verification emailA new link works; the old one is invalid
R25NegativeLog in before verifyingBlocked or limited, per the requirement
R26NegativeUntick the terms checkboxCannot submit, with a message

Security, UI and compatibility

IDCategoryTest caseExpected result
R27SecurityScript and SQL text in every fieldStored or rejected safely; never executed or echoed unencoded
R28SecurityMany registrations from one IP in a short timeRate limiting or captcha
R29SecurityChange field values in the request (disable client checks) and submitServer validates too and rejects bad data
R30UITab order, labels linked to inputs, error text readable by a screen readerAccessible
R31UIPhone-size screen, and the keyboard type for each field (email, number)Correct keyboard; no overlap
R32UIBrowser Back after submit, and refresh after submitNo duplicate account; no re-submission of old data
R33CompatibilityRepeat R01 on Chrome, Firefox, Safari, EdgeSame result
R34FunctionalAutofill from the browser fills all fields correctlyWorks and validates
R35PerformanceRegistration under load (for example a marketing campaign)Stays within the response limit; no duplicates

Downloads

Want a project you can show in interviews?

The portfolio project kit walks you through testing a deliberately buggy app with Selenium or Playwright and API tests, then explaining it. The app itself is free.