Manual Testing · Test Design

Decision Table Testing

When behaviour depends on combinations of conditions, a decision table makes sure no combination is forgotten.

Beginner 5 min Lesson 10 of 24
Before you start:Boundary Value Analysis
0/24 in Manual Testing
On this page · 5 min · Beginner

Learning objectives#

  • Build a decision table
  • Derive test cases from rules
  • Collapse impossible or irrelevant rules
  • Spot missing requirements

Explanation#

List the conditions (inputs) and actions (outcomes). With n yes/no conditions there are 2ⁿ rules.

Each column is a rule: a combination of condition values and the expected actions.

Remove impossible combinations and merge rules where a condition does not matter (“–”).

Building the table often exposes gaps in requirements — ask about them.

Code example: Instant loan approval#

TextInstant loan approval Illustrative
Conditions                  R1   R2   R3   R4
Salary ≥ ₹25,000?           Y    Y    N    N
Credit score ≥ 700?         Y    N    Y    N
Actions
Approve instantly           X
Send to manual review            X    X
Reject                                     X


Tests: one per rule → 4 test cases
Question raised: what happens if the applicant is under 21? (not in requirement)
Expected output
Four tests cover every combination, and the table revealed a missing age rule.

This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.

Step-by-step explanation#

  1. List conditions and actions from the requirement.
  2. Fill all combinations as rules.
  3. Mark the expected actions for each.
  4. Write one test per rule and query gaps.

Real-world use case#

Insurance premium rules, discount eligibility, access permissions and approval workflows.

Common mistakes#

Testing only the “happy” combination

Bugs hide in rarely used combinations.

Exploding tables

With many conditions, group related ones or use pairwise testing.

Best practices#

  • Use tables for business rules
  • Review the table with the BA
  • Collapse irrelevant conditions
  • Keep one test per rule

Remember this#

Conditions × actions = rules.

n conditions → up to 2ⁿ rules.

One test per rule.

Practice exercise#

Your task: How many rules does a table with 3 yes/no conditions have before collapsing?

Show solution
Text Illustrative
2³ = 8 rules.

Mini quiz#

Decision Table Testing quizMultiple choice Question 1 of 1

Decision tables are best for…

Score so far: 0/0

Want more? Practise all Manual Testing MCQs · Manual Testing interview questions

My notes#

Saved in this browser.

Progress is saved in this browser. Sign in to sync.