Module 1. Software testing fundamentals · Lesson 4 of 41 · 12 min

Test design: picking the minimum set of checks

Equivalence partitioning, boundary values, decision tables, state transitions, pairwise and error guessing.

Boundary values for an “Age 18–65” fieldvalid class 18–65< 18> 651718196465666 checks instead of a hundred — and this is where bugs live (> instead of ≥)
Boundary values for an “Age 18–65” field. The boundaries and their neighbors: 17, 18, 19 and 64, 65, 66. Red must be rejected, green accepted.

Why test design

You can't check everything. Test design techniques help you pick the smallest set of checks that finds the most defects.

Equivalence partitioning

Values the system treats the same way form a class, and you take one representative from it. An "Age 18–65" field gives three classes: < 18, 18–65, > 65.

Boundary value analysis

Bugs live at the edges. Test the boundary and its neighbors: 17, 18, 19 and 64, 65, 66. Try it on your own fields with the boundary value calculator.

Decision tables

When the result depends on a combination of conditions:

Condition / rule 1 2 3 4
User is logged in Yes Yes No No
Item is in stock Yes No Yes No
Result Purchase "Out of stock" Login Login

Each column is a separate test.

State transitions

For objects with statuses (an order, a bug, an appointment): draw the states and the allowed transitions, test each allowed one and a few forbidden ones (for example, "Canceled → Paid").

Pairwise

For many parameters — a set where every pair of values appears at least once. It cuts hundreds of combinations down to a dozen; the pairwise generator builds the table for you.

Error guessing

Experience tells you where things break: empty fields, spaces, very long strings, special characters, double clicks, slow connections, the browser Back button, two tabs at once.

Key takeaways

  • Equivalence classes cut the number of checks; boundary values catch mistakes at the edges.
  • Decision tables are for combinations of conditions, state transitions for statuses.
  • Pairwise handles many parameters; error guessing uses experience and typical weak spots.

Check yourself

  1. 1. A field accepts 1–100. Which values does three-value analysis give for the lower boundary?

  2. 2. Which technique fits testing order statuses?

  3. 3. How many tests does a decision table with two binary conditions give without reduction?

Practice: Drill: boundary values