Study guide

4.2 Equivalence Partitioning

ISTQB Certified Tester Foundation Level CTFL v4.0

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Fundamentals of Testing

1.1 What Testing Does 1.2 Verification, Validation, and Debugging 1.3 Testing, Quality, and Risk Reduction 1.4 The Seven Testing Principles 1.5 Test Process, Testware, and Traceability 1.6 Tester Skills, Roles, and Independence

2 Chapter 2: Testing Throughout the Software Development Lifecycle

2.1 SDLC Models and Good Testing Practices 2.2 Shift-Left, Test-First, and DevOps Testing 2.3 Test Levels: Component Through Acceptance 2.4 Test Types: Functional, Non-Functional, White-Box, and Change-Related 2.5 Confirmation, Regression, and Maintenance Testing 2.6 Collaboration Across the Lifecycle

3 Chapter 3: Static Testing

3.1 Static Testing Versus Dynamic Testing 3.2 Work Products and Static Analysis 3.3 Review Process and Roles 3.4 Review Types 3.5 Successful Review Practices

4 Chapter 4: Test Analysis and Design

4.1 Technique Selection and Coverage 4.2 Equivalence Partitioning 4.3 Boundary Value Analysis 4.4 Decision Table Testing 4.5 State Transition Testing 4.6 White-Box Coverage 4.7 Experience-Based Testing 4.8 Collaborative Test Design

5 Chapter 5: Managing the Test Activities

5.1 Test Planning, Strategy, Entry Criteria, and Exit Criteria 5.2 Test Estimation and Prioritization 5.3 Risk-Based Testing 5.4 Monitoring, Control, and Reporting 5.5 Configuration Management and Traceability 5.6 Defect Management 5.7 Test Completion and Retrospectives

6 Chapter 6: Test Tools

6.1 Test Tool Classification 6.2 Automation Benefits and Risks 6.3 Selecting and Introducing Tools 6.4 Tool Support Exam Traps

4.2 Equivalence Partitioning

Key Takeaways Explain This Topic AI

Equivalence partitioning (EP) divides input or output data into partitions whose members are expected to be processed the same way.

Test one representative value per partition; covering it covers the whole partition for that criterion.

Partitions are either valid (accepted) or invalid (rejected), and invalid partitions must be tested separately, not combined.

Partitions should be mutually exclusive and together cover the relevant domain.

EP coverage = partitions exercised ÷ total partitions × 100%; it slashes test volume while preserving meaningful behavioural coverage.

Last updated: June 2026

Core Idea

Equivalence partitioning (EP) divides the possible values of a parameter into partitions (also called equivalence classes ) in which every member is expected to be processed in the same way by the test object. The governing assumption is that if one value in a partition reveals a defect, the others probably would too, and if one passes, the others probably would too. Therefore testing one representative value per partition is sufficient to satisfy the criterion for that partition — a massive reduction from exhaustive testing.

Partitions can be derived for inputs, outputs, internal values, time-related values, and interface parameters . They come in two kinds:

Valid partitions contain values the specification says should be accepted and processed.

Invalid partitions contain values that should be rejected, produce an error, or be handled as exceptions.

Good partitions are mutually exclusive (no value belongs to two partitions) and collectively exhaustive for the relevant domain (every value belongs to some partition). A common exam trap is forgetting the invalid partitions — the specification rarely lists them explicitly, but a complete EP analysis always includes them.

A Worked Example

A discount engine reads a customer's age and applies a child rate, a standard rate, or a senior rate:

  • 0–12 → child discount
  • 13–64 → standard rate
  • 65 and above → senior discount

The age field accepts whole numbers from 0 to 120. EP analysis yields these partitions:

  • Partition Kind Representative value
  • 0–12 (child) Valid 7
  • 13–64 (standard) Valid 30
  • 65–120 (senior) Valid 80
  • Below 0 (negative) Invalid -5
  • Above 120 Invalid 130
  • Non-numeric (e.g. "abc") Invalid "abc"

Six partitions, so six test cases give 100% EP coverage. Note that three of these are valid business partitions — EP is not only about valid/invalid acceptance, it is also about distinguishing behavioural classes within the valid range. The standard rate, child rate, and senior rate are processed differently, so each is its own partition even though all three are 'valid' inputs.

Coverage, Combining, and Common Traps

EP coverage is the proportion of partitions exercised by at least one test value: EP coverage % = (partitions exercised

÷ total partitions identified) × 100

Key rules the exam tests:

Test invalid partitions one at a time. If you submit age = -5 and a malformed name in the same test, and it fails, you cannot tell which invalid value caused the rejection. Combine multiple valid partitions freely in one test, but isolate each invalid partition in its own test.

One value per partition is enough for partition coverage — adding a second value from the same partition does not raise EP coverage.

EP is usually paired with boundary value analysis (Section 4.3): EP chooses which partitions to cover, BVA then chooses the values at the edges of the ordered partitions.

Partitions are not always numeric ranges. They can be sets (payment types: card / wallet / bank transfer), roles (admin / editor / viewer), or formats (valid email vs malformed email).

EP is the workhorse of black-box design because it gives a defensible, measurable way to keep the test set small while still touching every distinct behaviour the specification describes.

Partitioning Outputs and Non-Numeric Data

A point the exam often probes: equivalence partitioning is not limited to inputs . You can partition the output domain too, then work backwards to find inputs that produce each output class. Consider a grading function that returns Fail , Pass , Merit , or Distinction . Those four results are output partitions; for full output-EP you must supply inputs that drive the function into each of the four bands. Partitioning outputs is valuable when the same input range maps to several distinct results, because it guarantees you exercise every distinct behaviour rather than just every distinct input range.

EP also handles non-ordered, non-numeric data cleanly, where boundary value analysis cannot help:

  • Data kind Example valid partitions Example invalid partitions
  • Enumerated set card, wallet, bank transfer unsupported method
  • Role/category admin, editor, viewer unknown role
  • Format/pattern well-formed email missing @, missing domain
  • Boolean/flag true, false null / not supplied

For enumerated and role data, each distinct value is typically its own partition because the system processes each differently. For formats, the valid class is 'matches the pattern' and the invalid classes are the distinct ways the pattern can be violated.

Applying EP on the exam

A reliable four-step procedure: (1) identify each parameter and its rules from the specification; (2) define the valid partitions, then the invalid partitions, for each parameter; (3) pick one representative value per partition; (4) build test cases — combining valid partitions freely but isolating each invalid one. Then state coverage as partitions exercised over partitions identified. The most common exam mistakes are forgetting the invalid partitions, treating distinct valid behaviours as a single partition, and combining two invalid values in one test.

Master those and EP questions become quick wins, especially when paired with the BVA values from the next section.