What Is Equivalence Partitioning?
Equivalence partitioning is a test design technique that divides input data into groups (partitions) where all values within a partition are expected to be treated the same way by the system.
Free to start · 7-day trial on paid plans
In Depth
The core insight is that if the system handles one value in a partition correctly, it should handle all values in that partition correctly. This lets you reduce thousands of potential test inputs to a manageable number by selecting one representative from each partition. For a field that accepts ages 18-65, the partitions are: invalid low (0-17), valid (18-65), and invalid high (66+). Testing one value from each partition (e.g., 10, 30, 70) covers the logic without redundancy.
Equivalence partitioning applies to any input type, not just numbers. For a country dropdown, valid partitions might include countries with special tax rules, countries with embargoed shipping, and standard countries. For file uploads, partitions could be valid file types, invalid file types, oversized files, and empty files.
The technique is most powerful when combined with boundary value analysis. Equivalence partitioning identifies the groups; BVA zooms in on the transitions between them. Together, they provide structured, efficient coverage that is easy to justify to stakeholders.
Why Interviewers Ask About This
Interviewers test your ability to design efficient test suites. Equivalence partitioning shows you can think systematically about reducing test cases without sacrificing coverage.
Example Scenario
An API endpoint accepts a quantity parameter from 1 to 999. Partitions: invalid (0 and below), valid (1-999), and invalid (1000 and above). Instead of testing all 999 valid values, you test one from each partition (e.g., -1, 500, 1500) plus boundary values (0, 1, 999, 1000), yielding just seven test cases with full logical coverage.
Interview Tip
Sketch out the partitions visually on a whiteboard if possible. Interviewers appreciate seeing the thought process behind partition identification, especially for non-numeric inputs.
Related Terms
Explore related glossary terms to deepen your understanding.
Related Resources
Dive deeper with these related interview prep pages.
Ready to Ace Your QA Interview?
Practice explaining equivalence partitioning and other key concepts with our AI interviewer.
Join 1,200+ QA engineers already practicing with AssertHired.
Start Your Free QA InterviewFree to start · 7-day trial on paid plans