#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
🧩 FREE · CSV DOWNLOAD

Decision Table Generator: Every Rule Combination, No Gaps

Turn business conditions into a complete Y/N table so no combination is missed.

  • 🔢 All 2ⁿ rules
  • 🎯 Conditions and actions
  • 📥 CSV for Excel

How to use the Decision Table Generator

  1. 1. List conditionsOne true/false condition per line, up to six.
  2. 2. List actionsAdd the outcomes the system can take.
  3. 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

  1. Fill each action cell with X (happens) or – (does not).
  2. Look for rules where one condition does not change any action; merge them using – (don't care) to shrink the table.
  3. Check for impossible rules, such as a guest user with saved cards, and mark them.
  4. 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.

More free tools

See all free tools