How to use the Decision Table Generator
- 1. List conditionsOne true/false condition per line, up to six.
- 2. List actionsAdd the outcomes the system can take.
- 3. Fill and testMark each action per rule, merge duplicates and write one test per rule.
How the table is built
Each condition can be true (Y) or false (N), so n conditions give 2ⁿ rules. The generator lists them in a standard pattern: the first condition switches every half, the second every quarter, and so on, so you can check the table is complete at a glance.
Worked example (default input): "User is logged in", "Cart total ≥ ₹999" and "Has coupon code" give 2³ = 8 rules, R1 to R8. R1 is Y-Y-Y and R8 is N-N-N. The actions (allow checkout, free delivery, apply coupon) appear as rows with ? in each cell for you to fill in from the requirement.
From table to test cases
- Fill each action cell with X (happens) or – (does not).
- Look for rules where one condition does not change any action; merge them using – (don't care) to shrink the table.
- Check for impossible rules, such as a guest user with saved cards, and mark them.
- Write one test case per remaining rule.
Decision tables shine for business rules such as discounts, eligibility, pricing and permissions, where requirements are often written as paragraphs that hide missing combinations. Filling the ? cells usually raises questions for the product owner, which is a feature, not a problem. More than six conditions gets unwieldy; split the logic. For many parameters with many values, use the pairwise generator instead, and check ranges with the BVA calculator.
Frequently asked questions
Why does the tool stop at six conditions?
Six conditions already make 64 rules. Beyond that, split the rules into smaller tables.
Can it fill in the actions automatically?
No. Actions come from the requirement, and working them out is where the real testing thinking happens.
Is the Decision Table Generator free?
Yes, the Decision Table Generator is free. The first time you generate your first table, you are asked for your name and WhatsApp number once. After that, this and every other Uncodemy tool opens straight away without the form.