Test Design
Test design techniques: equivalence classes, boundary values, decision tables.
Questions and explanations
Find an explanation for each question here. To test yourself, take the quiz above first.
What is equivalence partitioning?
Equivalence partitioning divides input data into equivalence classes, assuming the system handles all values within a class the same way — this reduces the number of test cases without losing coverage.
What is boundary value analysis used for?
Errors most often occur at the boundaries of value ranges (e.g., 0, 1, 99, 100 for a valid range of 1–100), so these values are prioritized for testing.
Mini task: the Age field accepts integer values from 18 to 65 inclusive. Which set best checks the range boundaries?
Boundary value analysis checks the boundary itself, the nearest valid value, and the nearest invalid value on both sides: 17, 18, 19 and 64, 65, 66.
Mini task: a discount applies to order totals from €50 to €200 inclusive. How many equivalence classes should be identified for the order total?
For an input range, identify one valid class and two invalid ones: below the minimum, within the range, and above the maximum. One representative value from each class is sufficient.
Mini task: an account is locked after 3 consecutive failed sign-in attempts. Which scenario most accurately checks the transition to the Locked state?
State-transition testing checks the state before the boundary, the transition event, and the result after it: after the third failure the account is locked, and the next attempt must be rejected.
Mini task: a password must contain from 8 to 20 characters. Which value is a negative test immediately at the lower boundary?
7 is the closest invalid value before the lower boundary of 8. Values 8 and 9 are valid: the boundary itself and the value just inside the allowed range.
What does state transition testing verify?
For example, a successful payment can move an order from New to Paid. The opposite case matters too: trying to ship an unpaid order must not move it to Shipped.
What is error guessing?
Error guessing does not rely on a formal technique — the tester uses experience, knowledge of common mistakes, and intuition to find defects that are hard to predict with other methods.
How does a checklist differ from a test case?
A checklist is a short list of items to verify, without described steps or input data. A test case details the steps, data, preconditions, and expected result.
Mini-task: an order moves through states "New → Paid → Shipped → Delivered", and backward transitions are forbidden. Which test case verifies an invalid transition?
State transition testing must also verify invalid transitions — here, trying to move the order back from the final "Delivered" state to "New", which the system should reject.