Decision Table Testing
When behaviour depends on combinations of conditions, a decision table makes sure no combination is forgotten.
On this page · 5 min · Beginner
On this page
- Learning objectives
- Explanation
- Code example
- Step by step
- Real-world use
- Common mistakes
- Best practices
- Remember this
- Practice exercise
- Mini quiz
- Related topics
- My notes
- Reading time
- 5 min
- Difficulty
- Beginner
- Updated
- Oct 29, 2026
Related tutorials
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#
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)
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#
- List conditions and actions from the requirement.
- Fill all combinations as rules.
- Mark the expected actions for each.
- Write one test per rule and query gaps.
Real-world use case#
Insurance premium rules, discount eligibility, access permissions and approval workflows.
Common mistakes#
Bugs hide in rarely used combinations.
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
2³ = 8 rules.
Mini quiz#
Decision tables are best for…
Want more? Practise all Manual Testing MCQs · Manual Testing interview questions
My notes#
Saved in this browser.