Manual Testing · Test Design Techniques

Decision Tables and State Transitions

Lesson 9 of 12 · 9 min read

Decision tables

Use a decision table when the result depends on a combination of conditions. List every combination and the expected outcome.

Rule: free shipping if the order is over $50 or the customer is a member.

Order > $50MemberFree shipping?
YesYesYes
YesNoYes
NoYesYes
NoNoNo

Each row becomes one test case. With 3 conditions you get 8 rows, which is still easy to cover.

State transition testing

Use it when the system moves between states, such as an order: Created → Paid → Shipped → Delivered, with Cancelled possible before shipping.

  • Test every valid transition (Paid → Shipped).
  • Test invalid transitions too (Delivered → Paid should be impossible).
  • A classic example: after 3 wrong passwords the account goes to a Locked state.
Practice: the practice login page locks for 30 seconds after 3 failed tries. Draw its states and test each transition.
All 12 lessons in Manual Testing
  1. What Is Software Testing?
  2. QA vs QC vs Testing
  3. The Software Testing Life Cycle (STLC)
  4. Levels of Testing
  5. Functional vs Non-functional Testing
  6. Smoke, Sanity and Regression Testing
  7. Writing Good Test Cases
  8. Equivalence Partitioning and Boundary Value Analysis
  9. Decision Tables and State Transitions
  10. The Bug Life Cycle
  11. Writing a Great Bug Report
  12. Severity vs Priority, and Your Final Practice