Skip to the page

Test design and strategy · core

Test design: classes, boundaries and decision tables

A tester does not write random cases. They split inputs into equivalence classes, test the edges of each class, and use a decision table when several conditions combine.

The notes

What you must know

  • Equivalence class: a group of inputs the system should treat the same way. One value from each class is enough in principle.
  • Boundary values: bugs sit at the edges because developers write < instead of <=. Test the last valid value and the first invalid value on each side (for example 9,999 and 10,000).
  • A rule with a step (a multiple of 1,000) adds a class: in range but not a multiple is invalid.
  • Input format cases: blank, 0, negative, decimals, leading zeros, spaces, letters, very long numbers, pasted text, and Indian and international commas (1,00,000 and 100,000).
  • Decision table: list the conditions (Y or N) and the result of each combination. Four conditions give 16 combinations; if any N means rejection, the reduced table is one success row plus one row for each condition broken alone.
  • Boundaries are not only for numbers: dates, text length and list size have them too.
  • The page check is only a convenience. The API must enforce the same rules, so run the same table against the API.
  • For a vague thing such as a lift or a login page, ask first (capacity, type, users), then group tests: functional, safety, boundary, performance, usability, and odd or negative cases.

The red pen

Common traps: mistake → fix

  • Mistake: Twenty random valid values give good coverage

    Fix: they all sit in one class and test one thing.

  • Mistake: Boundary testing is only for numbers

    Fix: dates, lengths and list sizes have boundaries too.

  • Mistake: If the page blocks a bad value, the rule is tested

    Fix: the API must reject it too, and a script can skip the page.

Easy to hard

Questions interviewers ask, easy to hard

  1. What is an equivalence class? Give an example.
  2. A field accepts amounts from 10,000 to 5,00,000 in steps of 1,000. Which values do you test?
  3. Build a decision table for a coupon that needs a first order, a cart of at least 199 rupees and an unexpired date.
  4. How would you test a lift? What do you ask before you write a single case?
  5. How do you run the same boundary table against both the page and the API?

Practise

Practise with these questions

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview