October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Equivalence Partitioning in Software Testing: How to Choose Test Cases

Equivalence partitioning groups data expected to receive similar treatment, so testers can select representative cases. Learn how to build partitions, cover invalid values, and add boundary or combination tests where needed.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Equivalence partitioning (EP) is a black-box test-design technique: divide inputs or other relevant data into non-empty groups expected to be treated similarly, then test representative values from every group. Good partitions come from the requirement and expected behavior—not from an assumption that one sample proves every value in its group works.

What equivalence partitioning means

ISO/IEC/IEEE 29119-1:2022 defines an equivalence partition as a class of inputs or outputs expected to be treated similarly by the test item. Equivalence partitioning designs test cases to exercise those partitions using representative members. The ISTQB Certified Tester Foundation Level Syllabus v4.0.1 presents EP as a black-box technique for deriving test cases.

As an Amazon Associate I earn from qualifying purchases.

A partition is a reasoned hypothesis about behavior, grounded in a specification, interface contract, or other test basis. A single test exercises a representative; it does not establish that every member behaves identically. ISTQB cautions that understanding how a test object treats different values can be complicated, so partitioning requires care.

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

How to build useful partitions

  1. Start with the test basis. Identify the requirement, contract, or expected behavior, then list the data and conditions that affect it.
  2. Group by expected treatment. Put values together only when the test object is expected to handle them similarly. Partitions may describe inputs, outputs, configuration items, internal values, time-related values, or interface parameters. They can be continuous or discrete, ordered or unordered, finite or infinite.
  3. Check the partition structure. Each partition must be non-empty, and the partitions should not overlap. Make sure the groups represent the relevant possibilities in the requirement rather than leaving unexplained gaps.
  4. Identify valid and invalid groups. A valid partition contains values that should be accepted or processed under the applicable interpretation; an invalid partition contains values expected to be rejected, ignored, or left without defined processing. State the interpretation: specifications and teams may define validity differently.
  5. Choose representatives and expected results. Select at least one value from each partition and record the expected result for that test. Include invalid partitions, not only accepted values.
  6. Review assumptions and risk. Revisit a group if the specification implies different outcomes within it, or if risk suggests that one representative is inadequate. Refine the partitions before treating coverage as meaningful.

Worked example: a specified numeric range

Suppose a requirement says a field accepts whole numbers from 18 through 65, inclusive, and rejects numbers outside that range with a validation error. That hypothetical requirement creates three partitions:

Partition Example representative Expected result
Below range: values less than 18 (invalid) 17 Reject with a validation error
In range: values from 18 through 65, inclusive (valid) 40 Accept or process the value
Above range: values greater than 65 (invalid) 66 Reject with a validation error

The values and expected results here follow the example requirement; they are not universal rules for numeric fields. If the actual contract accepts decimals, treats blank input specially, or uses a different error response, those behaviors need partitions or additional tests of their own.

What partition coverage tells you

EP 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%

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 value or every combination of values was tested, and it does not prove the software is defect-free. Coverage is only as complete as the partitions identified from the test basis.

Multiple parameters: each-choice coverage

For a feature with multiple parameters, track partitions for each parameter separately. Each-choice coverage means every partition in each parameter’s set appears in at least one test. It does not require every cross-parameter combination. For example, testing each color partition and each size partition independently may leave some color-size pairs untested. Where interactions matter, add combination-oriented tests rather than treating EP alone as combination coverage.

When to add boundary value analysis or decision tables

Choose the technique to match the requirement and the coverage question. EP targets representative behavior groups; boundary value analysis targets edges of ordered partitions; decision table testing targets combinations of conditions and the outcomes those combinations produce. These are complementary techniques, not a universal ranking.

Boundary value analysis

For the inclusive 18–65 example, boundary value analysis adds tests around 18 and 65, where mistakes in comparisons or limits are likely to matter. ISTQB describes two-value BVA as testing a boundary and its closest neighbor across the adjacent partition; three-value BVA tests the boundary and both neighbors. BVA focuses on partition boundaries—it does not replace identifying the partitions first.

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

Decision tables

Use a decision table when outcomes depend on combinations of conditions. EP can help identify behavior groups for individual conditions or values, but it does not by itself ensure that the combinations producing different outcomes have been exercised.

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

Or skip the browser setup

Equivalence partitioning is a software test-design method, not a screenshot-API task. If a testing workflow also needs website captures, ScreenshotNeo is a website screenshot API and MCP server for developers. Its one-call screenshot request is:

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

See the ScreenshotNeo API documentation for request options. It removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.