Equivalence Partitioning and Boundary Value Analysis
You cannot test every possible input. These two techniques help you pick the few inputs most likely to find bugs.
Equivalence partitioning
Split inputs into groups (partitions) that the system should treat the same way, then test one value from each group.
Rule: "Age must be 18 to 60." Partitions:
- Invalid: below 18 (test 10)
- Valid: 18 to 60 (test 35)
- Invalid: above 60 (test 75)
- Invalid: not a number (test "abc"), empty
Boundary value analysis
Bugs love the edges, because developers mix up > and >=. Test the values on and just around each boundary.
For 18 to 60, test: 17, 18, 19 and 59, 60, 61.
A classic bug: the code checks age > 18 instead of age >= 18, so an 18-year-old is wrongly rejected. Only a boundary test finds it.
Tool: use the free boundary value calculator to generate these values for any range. Then try the sign-up bug hunt: one of its bugs is exactly this.
All 12 lessons in Manual Testing
- What Is Software Testing?
- QA vs QC vs Testing
- The Software Testing Life Cycle (STLC)
- Levels of Testing
- Functional vs Non-functional Testing
- Smoke, Sanity and Regression Testing
- Writing Good Test Cases
- Equivalence Partitioning and Boundary Value Analysis
- Decision Tables and State Transitions
- The Bug Life Cycle
- Writing a Great Bug Report
- Severity vs Priority, and Your Final Practice