Decision tables to test cases
Turn a decision table into tests: each rule column becomes one test. Learn to collapse a table with dashes, check it for gaps and overlaps, and keep the tests tied to the rules.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: A vending machine. A vending machine has three things to check. These are how much money is in, which button is pressed, and whether the item is in stock. Every mix of these is one thing to try. Put in enough money, press a button, and the item is there: the item drops. Put in too little money: nothing drops. A tester who wants to be sure tries each mix once.
A is a grid that lists the conditions of a rule and the action that follows each mix of answers. One mix of answers to all the conditions is a . A column of the grid that holds one combination and its action is a rule column. A dash in the grid is a don't-care entry. It means that the answer to that condition does not change the outcome.
Nina, the of Daily List who decides what the team builds, has a rule for paid reminders. Sam has already put it in a decision table. Tom, the tester, now needs tests. The simple idea is that each becomes one test.
The picture has a limit. A machine has a few buttons. A real table can have many conditions, so the number of tests must be kept in check.
PLAIN WORDS · 1 in this section
- vending
- selling goods from a machine
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The picture helps a newcomer remember that every mix of answers is one thing to try, and that a table lists the mixes so none is missed.
- Check gaps and overlaps
- Collapse with dashes
- One test per column
- Pick values for dashes
- Trace tests to rules
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| Each mix of coin and button | A condition combination |
| One row in the machine's rule sheet | A rule column |
| A button that does not matter when the machine is empty | A don't-care entry |
| Trying each mix once | One test for each rule column |
| The sheet saying what should drop | The expected result from the table |
WHERE THIS PICTURE STOPS
- A machine has a few buttons, but a real table can have many conditions.
- A machine's result is physical, but a rule's result must be read from the table.
- A machine has no gaps if it was built well, but a table written by people can have gaps.
HOOK
One rule, one test; a dash still needs a real value.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
Usually a with four rule columns gives four tests. Count the columns, then give every dash a real value before Tom runs each test.
| In the trick | What it stands for |
|---|---|
| count the columns | one test for each rule column |
| real value for the dash | a don't-care entry is replaced |
A dash may split a column into several, so the count of tests can grow once real values are chosen.
TELL A FRIEND
Each of a becomes at least one test. A dash means the answer does not matter, but the tester still picks a real value.
OFTEN MIXED UP WITH Business rules and decision tables. That topic teaches how to write a rule as a . This topic uses the finished table to design the tests.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Official requirement
Decision Model and Notation1.6, formal/25-12-02 ↗ — Object Management Group · DMN 1.6 formal/25-12-02, §§6,8.2.11–8.2.12: dependency versus execution, multiple outputs, hit policy/completeness and no-match handling. Public normative PDF opened/read2026-11-06; catalogue/PDF release-date metadata differs.
Primary public document opened and the cited material read on2026-11-06. Original educational paraphrase; no source figure copied. §§6,8.2,8.2.11–8.2.12: dependencies, tables, hit policies and completeness. Catalogue reportsSeptember 2026; PDF cover leaves Release Date as tbd. Pin version/document identity; do not infer engine support. Additional actual §4.3/5.1 read 7 November 2026: decision requirements/logic and boxed expressions beyond tables. Fresh PDF SHA256995743c39d3efee13375d837f3ddff815b72bba0534343a7c9186fb0298c00d0; catalogue date and cover tbd distinction preserved. No figure copied.
- Market practice
CPRE Requirements Modeling syllabus 3.1.1,30 July 2024 ↗ — International Requirements Engineering Board · Requirements Modeling syllabus 3.1.1,30 July 2024, §§1–5 including4.8: purposeful views, information structures, functional/behavioural modelling, decomposition and scenarios; public PDF opened/read2026-11-06.
Primary public document opened and the cited material read on2026-11-06. Original educational paraphrase; no source figure copied. §§1–5: model purpose, information structures, functions, behaviour, decomposition and scenarios. Educational objectives, not mandatory product artefacts.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, Sam, Nina and Tom are invented. The reminder rule and its table are invented teaching numbers and words. Real tables have more conditions, and teams choose extra tests by risk. Source versions and access limits are stated in the accompanying citations. These are invented educational examples, not official templates or universal obligations.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
Decision table hit policy, Camunda 8.8 ↗ — Camunda · Opened 21 October 2026: Camunda 8.8 DMN hit-policy guide; Unique forbids multiple matches, Any requires equal outputs, First selects the first match, and Collect may return multiple outputs.
Primary vendor documentation opened and read. Examples below are invented; behaviour is scoped to the named engine/version.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.