Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Equivalence partitioning (EP) is a black-box test-design technique: divide inputs or other relevant values into groups expected to be treated similarly, then test representative members of each group. It helps reduce a large input space to a manageable set of tests, but it does not prove that every value in a group behaves identically.

What equivalence partitioning means

An equivalence partition is a class of inputs or outputs expected to be treated similarly by the test item. Equivalence partitioning designs tests to exercise those classes with representative members. That terminology comes from ISO/IEC/IEEE 29119-1:2022; the ISTQB Certified Tester Foundation Level Syllabus v4.0.1 presents EP as a black-box test-design technique.

The central assumption is practical, not a guarantee: if several values are expected to follow the same behavior path, a representative value can provide evidence about that group. The grouping must come from the requirement, interface contract, or other test basis. ISTQB cautions that understanding how a test object treats different values can be complicated, so partitions should be chosen carefully.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to identify partitions and choose test cases

  1. Start from the test basis. Read the requirement, interface contract, or expected behavior. Identify the data and conditions that can affect the behavior being tested.
  2. Group values by expected treatment. Create a separate partition whenever the expected outcome or processing changes. Partitions may describe inputs, outputs, configuration, internal values, time-related values, or interface parameters. They can be ordered or unordered, continuous or discrete, and finite or infinite.
  3. Check the partition structure. Each partition must be non-empty, and partitions should not overlap. If a value could belong to two groups, refine the definitions so each value has a clear assignment.
  4. Mark valid and invalid groups. A valid partition contains values expected to be accepted or processed under the applicable interpretation. An invalid partition contains values expected to be rejected, ignored, or not have defined processing. Make the interpretation explicit: specifications and teams do not always use “valid” and “invalid” in the same way.
  5. Choose a representative for every partition. Select an actual value or condition within each group, and write down the expected result. Include invalid partitions rather than testing only normal inputs.
  6. Review assumptions and risk. Ask what evidence supports treating the members alike. If different formats, states, sources, or interactions might change behavior, split the group or add tests aimed at those risks.

Example: an explicitly bounded field

Suppose a hypothetical requirement says an integer field accepts every whole number from 10 through 50, inclusive, and rejects values outside that range with a validation error. That specification gives three input partitions:

Partition Example representative Expected result
Below the accepted range: integers less than 10 9 Reject with the specified validation error
Accepted range: integers from 10 through 50, inclusive 30 Accept and process
Above the accepted range: integers greater than 50 51 Reject with the specified validation error

The values and outcomes here follow the hypothetical requirement; a real test must use its own stated boundaries, data types, and error behavior. If the field also accepts decimals, blank values, or non-numeric text, those may need distinct partitions if the requirement assigns them different handling.

How partition coverage works

Equivalence partitioning coverage is the number of identified partitions exercised by at least one test case divided by the total number of identified partitions, expressed as a percentage:

EP coverage = (identified partitions exercised ÷ total identified partitions) × 100%

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Under the ISTQB criterion, 100% EP coverage means every identified partition, including invalid partitions, has been exercised at least once. It does not mean every possible input was tested, that every combination of inputs was covered, or that the software is defect-free. Coverage is only as complete as the partition model: an omitted or incorrectly broad partition can make a high percentage misleading.

Multiple parameters: what EP coverage does and does not show

For a test item with multiple parameters, identify and track the partitions for each parameter. Each-choice coverage exercises every partition from each set at least once. It does not ensure that every combination of partitions has been tested.

For example, a form might accept a valid or invalid account type and a valid or invalid date. Testing each of those four partitions somewhere does not necessarily test all four account-type/date combinations. If interactions between parameters can affect outcomes, add combination-oriented tests. Decision table testing is useful when combinations of conditions produce different outcomes; it makes those condition-and-result combinations explicit.

Also popular on Amazon

When to add boundary value analysis

EP selects representatives from groups; boundary value analysis (BVA) targets edges between ordered partitions. For the inclusive 10–50 example, the edges at 10 and 50 deserve focused tests because a comparison error can misclassify values at or immediately beside a limit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Two-value BVA: exercise a boundary and its closest neighbor across the adjacent partition.
  • Three-value BVA: exercise the boundary and its closest neighbor on each side.

For integer limits 10 and 50, three-value testing can use 9, 10, and 11 at the lower edge, then 49, 50, and 51 at the upper edge. Use the variant required by the coverage objective and adapt “closest neighbor” to the data type: for a continuous value, the relevant neighbor depends on the precision and increments supported. BVA complements EP; first define the ordered partitions, then target their edges.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choosing between EP, BVA, and decision tables

Technique Best fit Coverage question
Equivalence partitioning Values or conditions expected to receive similar treatment Has each identified behavior group been exercised?
Boundary value analysis Ordered partitions with meaningful edges Have the boundaries and nearby values been exercised?
Decision table testing Combinations of conditions that lead to distinct outcomes Have the relevant condition combinations and outcomes been tested?

These techniques answer different coverage questions; none is universally superior. Apply the one that matches the structure of the requirement, and combine them when the behavior calls for both representative groups and edge or interaction tests.

Common mistakes to avoid

  • Assuming one sample proves the whole group. A representative is evidence under a grouping assumption, not proof. Revisit the partition if observed or specified behavior differs within it.
  • Leaving out invalid partitions. Rejection paths, ignored values, and undefined processing may be important parts of the contract. State what the system should do and test it.
  • Making partitions overlap or leaving gaps. Define boundaries and category membership so every relevant value is assigned unambiguously.
  • Calling each-choice coverage combination coverage. Each partition set is exercised, but interactions across sets can remain untested.
  • Reporting 100% as a quality verdict. It is a measure against the identified partitions, not evidence that all possible values or defects have been covered.

Or skip the browser setup

Equivalence partitioning is a software test-design method, so it does not require a screenshot tool. If your test workflow also needs webpage evidence, ScreenshotNeo is a website screenshot API and MCP server for developers. Its one-call API can return an image or PDF:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

See the ScreenshotNeo API documentation for request options. Before capture, it can accept cookie/consent banners and remove known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. An MCP server provides screenshot tools for AI agents. The free plan includes 1,000 screenshots per month with no card required; paid plans start at $5 for 3,000 shots.

Sign up free for ScreenshotNeo.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 28, 2026 4:31 pm GMT.