Section 1
Why test design?
A sign-up form with a few fields already has millions of possible inputs. Test design techniques split that space into groups and edges, so a handful of well-chosen tests gives you confidence that the rest would pass too.
Black-box techniques
All five on this page work from the requirements — you don't need to read the code.
Section 2
Equivalence partitioning
Split inputs into groups the system should treat the same way, then test one value from each group.
Requirement: Age must be between 18 and 60.
Invalid: below 18
e.g. 10
Expect: error
Valid: 18 to 60
e.g. 35
Expect: accepted
Invalid: above 60
e.g. 70
Expect: error
3 partitions → 3 tests instead of testing every age.
Section 3
Boundary value analysis
Bugs love edges (a < written as <=). Test the values on and just outside each boundary.
valid range
Test 17, 18, 60 and 61. Pair it with equivalence partitioning for full coverage of a range.
Section 4
Decision tables
When the result depends on a combination of conditions, list every combination as a rule — each rule becomes one test.
| Conditions / action | Rule 1 | Rule 2 | Rule 3 | Rule 4 |
|---|---|---|---|---|
| Is a member? | Yes | Yes | No | No |
| Has a coupon? | Yes | No | Yes | No |
| → Discount | 20% | 10% | 10% | 0% |
2 yes/no conditions → 2 × 2 = 4 rules. Three conditions would give 8.
Section 5
State transition testing
Some features behave differently depending on what happened before. Map the states and the events that move between them, then test each move.
- Active↓ wrong passwordwrong →
- 1 wrong attempt↓ wrong passwordwrong →
- 2 wrong attempts↓ wrong passwordwrong →
- Locked
↺ A correct password from 1 or 2 wrong attempts goes back to Active.
Test every arrow — including “correct password after 2 wrong attempts” and “any password once locked”.
Section 6
Error guessing
Use experience of where bugs usually hide. A starter checklist for any input field:
- Empty input / only spaces
- Very long text (1,000+ characters)
- Special characters and emoji: ' " < > 😀
- Leading / trailing spaces in emails
- Double-clicking a submit button
- Browser back after submitting
Check your understanding
5 quick questions
Pick one answer for each · 5 of 5 completes the step
0 of 5 answered · sign in to save your progress