Foundation Level study guide
Equivalence Partitioning (EP)
Equivalence Partitioning (EP) is a black-box test technique that divides input or output data into distinct classes (partitions) where all values within a single class are expected to be treated the same way by the software.
Practical example
Testing every possible input is often impractical, although it may be possible for small finite input domains. If a discount applies to ages 18-65, testing ages 20, 21, and 22 alone may give redundant coverage of the same partition. For partition coverage, QA can select at least one representative value from each valid partition (e.g., age 30) and one from each invalid partition (e.g., age 17, age 66) to achieve 100% partition coverage with minimal test cases.
Exam scenario and common trap
Question: A system rejects passwords under 8 characters and over 12 characters. How many partitions exist? The Trap: "Two partitions: Valid and Invalid." The Correct Answer: Three partitions. Invalid (0-7), Valid (8-12), and Invalid (13+). Candidates frequently forget to count the invalid partitions on both sides of a range.
Related syllabus sections cover this topic. Reference sections: 4.2.1. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.