Decision Table Testing: Guide, Examples, and Template (2026)
Decision Table Testing explained: definition, when to use, step-by-step construction with a worked shipping-cost example, rule collapsing, and interview-ready patterns for QA engineers.

Last updated: July 17, 2026 · 10 min read · By Avinash Kamble, reviewed by Priyanka G.
Decision Table Testing is the black-box technique that turns tangled if/else logic into a provably complete test suite. When output depends on combinations of conditions — a shipping calculator, a pricing engine, a permissions matrix — a decision table forces you to enumerate every rule and pick a representative test per rule. This guide gives you the definition, the 5-step construction method, a worked shipping-cost example, rule-collapse patterns, and the interview answers to nail decision-table questions.
Use alongside BVA, equivalence partitioning, and the black box testing complete guide.
Key takeaways
- Decision tables shine when output depends on 2+ conditions combined.
- Total rules = 2ⁿ for n binary conditions. Collapse redundant ones.
- One test per rule = 100% rule coverage.
- ISTQB Foundation topic — appears in nearly every mid-level QA interview.
1. What is Decision Table Testing?
Decision Table Testing (also called Cause-Effect Table Testing) is a black-box technique for systematically testing the behaviour of software that depends on combinations of input conditions. Each column of the table is a rule; each row is either a condition or an action. The table lists every combination, forcing you to derive one test per rule.
The technique originates in Larry Constantine's structured design work in the 1970s and is codified in the ISTQB Foundation syllabus.
2. When to use decision tables
- Output depends on 2 or more conditions combined (permissions, pricing, routing).
- Requirements contain phrases like “if X and Y but not Z”.
- You have caught combination bugs in production before.
- Regulators or auditors need documented rule coverage.
For single-condition rules, equivalence partitioning is usually enough. Do not over-engineer.
3. 5-step construction method
- List all input conditions (rows near the top).
- List all possible actions/outputs (rows near the bottom).
- Enumerate every combination as columns (rules). For n binary conditions, 2ⁿ columns.
- Fill in T/F for each condition per rule, and mark which actions fire.
- Collapse impossible or redundant rules; derive one test case per remaining rule.
4. Worked example: shipping-cost calculator
Rules: shipping is free if the order is over $50 or the customer is a Prime member. Otherwise, shipping is $5.99. Domestic vs international is a third condition (international always costs $15 extra).
+-----------------------------------------------------------------------+
| DECISION TABLE: SHIPPING COST |
+-----------------------------------------------------------------------+
| Conditions | R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 |
+-------------------------+----+----+----+----+----+----+----+---------+
| Order > $50 | T | T | T | T | F | F | F | F |
| Prime member | T | T | F | F | T | T | F | F |
| International | T | F | T | F | T | F | T | F |
+-------------------------+----+----+----+----+----+----+----+---------+
| Actions |
+-------------------------+----+----+----+----+----+----+----+---------+
| Base shipping = free | X | X | X | X | X | X | | |
| Base shipping = $5.99 | | | | | | | X | X |
| + International $15 | X | | X | | X | | X | |
+-----------------------------------------------------------------------+Eight rules → eight tests. Every combination is covered explicitly, and the developer's implementation can be reviewed row by row against the table. This is the level of rigour that makes decision tables audit-friendly.
5. Collapsing rules with don't-care conditions
Some rules produce the same actions regardless of one condition. Mark that condition with a dash (–) and collapse:
If “order > $50 AND Prime” both grant free shipping, then when “order > $50” is true, Prime doesn't matter. Rules R1+R3 collapse to one rule with Prime = –. Halves your test count without losing coverage.
6. Automating a decision table
const rules = [
{ over50: true, prime: true, intl: true, cost: 15 },
{ over50: true, prime: true, intl: false, cost: 0 },
{ over50: false, prime: false, intl: true, cost: 20.99 },
{ over50: false, prime: false, intl: false, cost: 5.99 },
// ...remaining rules
];
for (const r of rules) {
test(`shipping ${JSON.stringify(r)}`, async ({ request }) => {
const res = await request.post('/api/quote', { data: r });
const body = await res.json();
expect(body.shipping).toBeCloseTo(r.cost);
});
}Data-driven test frameworks like Playwright and REST-Assured love decision tables — they collapse into a single loop. Level up on the REST-Assured tutorial and the API testing Q&A hub.
7. Decision tables in interviews
Almost guaranteed in mid-level (3+ years) QA interviews. Common prompt: “Draw a decision table for a discount rule that gives 10% off for members, 5% for orders over $100, and stacks both.”. Rehearse the whole flow — enumerate, fill T/F, collapse, one test per rule — on the AI Mock Interview. Deep prep on the 3-year experience Q&A hub.
8. Your 24-hour action step
Find one rule-heavy feature in your product (pricing, permissions, notifications). Build the decision table in 30 minutes. Compare it against the developer's implementation. You will find at least one uncovered combination — that is a bug caught before production. Benchmark comp on the QA Salary Guide and audit your resume with the ATS Resume Reviewer.
Frequently asked questions
1.What is decision table testing?
2.When should I use a decision table?
3.How many rules does a decision table have?
4.What is the difference between a decision table and a truth table?
5.Do modern QA teams still use decision tables in 2026?
Practice these questions
Run a live QA mock interview tailored to this topic and get per-skill scoring in minutes.
Was this article helpful?
Keep building your QA edge
Pillar guidesContinue reading

What Is Software Testing? The Complete 2026 Guide for QA Engineers
16 min read
Types of Software Testing — Functional vs Non-Functional (25+ Types Explained, 2026)
18 min read
Software Testing Life Cycle (STLC) — 6 Phases with Entry & Exit Criteria (2026 Guide)
14 min readJoin the QA Community
Connect with fellow testers, share job leads, and get career advice.
Stop Reinventing the Wheel. Upgrade Your QA Arsenal.
Take your testing skills from beginner to Lead Engineer. Supercharge your daily workflow with our premium digital resources.
- Ready-to-use testing strategy templates
- Advanced API & UI automation guides
- ⏱️ Save 10+ hours a week on test planning