Platform

Solutions

Resources

Platform

Solutions

Resources

Platform

Solutions

Resources

Blog

Decision Table Testing: Guide with Examples, Types, and Best Practices

Virtuoso QA

Published on

Decision-table testing

Table of contents

Every piece of software makes decisions. A login form decides whether to let someone in. A pricing engine decides which discount applies. An insurance system decides whether to approve a policy, send it for review or decline it. The more decisions a system makes, the more combinations of inputs you need to test, and the easier it is to miss one.

Decision table testing is built for exactly this. It lays out the conditions, actions and rules in a table, so you can see every combination and test each one, without guessing or repeating yourself.

In this guide, we’ll cover what decision table testing is, its parts and types, five worked examples, how to build a table step by step, its pros and cons, best practices, and how to turn a table into tests that run automatically.



What Is Decision Table Testing?

Decision table testing is a black box testing technique that shows how combinations of inputs lead to system actions, in a table. Each column is a rule: one combination of conditions, and what the system should do.

It’s useful because business rules usually involve several conditions that affect each other, and the number of combinations grows fast:

Conditions

Values per Condition

Combinations

3

2

8

5

2

32

5

3

243

10

2

1,024


Keeping track of that in your head, or in a list of test cases, leads to missed scenarios and duplicate tests. A decision table lists every combination, gives each one an expected action, and turns each column into a test case.

The result is complete, structured, and traceable test coverage for any system driven by conditional business logic.



The Parts of a Decision Table

Part

What It Is

Example (Loan Approval)

Conditions

The inputs the system checks

Credit score, annual income, employment status

Condition values

The possible values for each condition

Yes or No, or High, Medium or Low

Actions

What the system does

Approve, decline, or refer to an underwriter

Rules

One column for each combination of values, with the actions that follow

Credit score High, income High, employed: approve

Be specific with condition values. “Credit score above 700” can be tested. “Good credit score” can’t.



Types of Decision Tables

Type

Condition Values

Best For

Limited entry

Only Yes or No (or True or False)

Simple rules with on-off conditions

Extended entry

Several values, like age bands or customer tiers

Rules based on categories or ranges

Mixed entry

Some Yes or No conditions, and some with several values

Most real business rules

Tables also come in a few common layouts, like a switch table, where one condition decides the outcome. The worked examples below show each of these.



Decision Table Testing Examples

Example 1: Login (Limited Entry)

Two conditions, each Yes or No, give four rules:


R1

R2

R3

R4

C1: Username is valid

Yes

Yes

No

No

C2: Password is correct

Yes

No

Yes

No

Go to the home page

✔




Show “Invalid email or password”


✔

✔

✔

Rules R2 to R4 all show the same error. That’s on purpose, because a different message for a wrong username would tell attackers which usernames exist.

For the full set of login checks, see our guide to test cases for a login page.

Example 2: Insurance Underwriting (Extended Entry)

Here, age has three bands and claims history has two values, giving six rules:


R1

R2

R3

R4

R5

R6

C1: Age band

18 to 35

18 to 35

36 to 55

36 to 55

56+

56+

C2: Previous claims

None

Yes

None

Yes

None

Yes

Approve at standard premium

✔


✔




Approve at higher premium


✔



✔


Refer to an underwriter




✔



Decline






✔

An applicant aged 56 or over with no claims is approved at a higher premium, while the same age group with previous claims is declined.

Because age is a range, you’d also test the ages on either side of each band edge, like 35 and 36, and 55 and 56.

Example 3: Ecommerce Discounts (Limited Entry)

Three conditions give eight rules. Members spending £100 or more get free delivery, and a valid coupon gives 10% off.


R1

R2

R3

R4

R5

R6

R7

R8

C1: Customer is a member

Yes

Yes

Yes

Yes

No

No

No

No

C2: Basket is £100 or more

Yes

Yes

No

No

Yes

Yes

No

No

C3: Coupon code is valid

Yes

No

Yes

No

Yes

No

Yes

No

Apply 10% discount

✔


✔


✔


✔


Free delivery

✔

✔







Show “Coupon not valid”


✔


✔


✔


✔

Rule R2 is the easy one to miss: a member with a big basket and an invalid coupon should still get free delivery, plus the error message.

Example 4: Delivery Options (Switch Table)

A switch table is used when one condition decides the outcome, like a lookup:

Delivery Region

Delivery Method

Cost

Delivery Time

UK mainland

Standard

£3.99

2 to 3 days

Scottish Highlands and islands

Courier

£7.99

3 to 5 days

EU

International tracked

£12.99

5 to 7 days

Rest of the world

Not available


Show “We don’t deliver here yet”

Each row is one test case. The last row matters as much as the others, because unsupported regions are where checkouts often break.

Example 5: Patient Triage (Multiple Actions per Rule)

In some systems, one rule triggers more than one action. Here, symptom severity and pre-existing conditions decide where a patient goes:


R1

R2

R3

R4

R5

R6

C1: Symptom severity

Critical

Critical

Moderate

Moderate

Low

Low

C2: Pre-existing condition

Yes

No

Yes

No

Yes

No

Admit immediately

✔

✔





Alert a specialist

✔


✔




Book an urgent appointment



✔

✔



Book a standard appointment





✔


Offer a video consultation






✔

A critical patient with a pre-existing condition is admitted and a specialist is alerted. A low-severity patient with no pre-existing condition is offered a video consultation. Every path is written down, so every path can be tested.

This kind of complete, traceable table is common in healthcare, insurance and financial services, where untested paths can become compliance problems.



How to Create a Decision Table: Step by Step

Building a decision table follows a systematic process that converts business logic into testable rules.

Step

What to Do

1. List the conditions

Go through the requirements, user stories and business rules, and write down every input that affects the decision. For a loan system, that might be credit score, debt-to-income ratio, employment check and loan amount

2. Set the values for each condition

Two values for Yes or No conditions, or as many as needed for categories. Make each one testable

3. Work out the number of rules

For Yes or No conditions, it's 2 to the power of the number of conditions. Otherwise, multiply the number of values together. Conditions with 2, 3 and 2 values give 2 × 3 × 2 = 12 rules

4. List the actions

Include good outcomes, like approve, and bad ones, like decline or show an error. Note where one rule triggers several actions

5. Fill in the table

Add every combination, then mark the right actions for each rule

6. Simplify

Where a condition doesn't change the outcome, mark it with a dash (–), meaning "doesn't matter here", and merge the rules

7. Turn rules into test cases

Each column becomes a test case, with its own test data, preconditions and expected result

Want to see step 6 in action? Our guide to decision table vs decision tree shows how dashes shrink a 16-rule claims table to five rules.

From Rules to Test Data

Once the table's done, each rule becomes a row of test data. Here's the underwriting example from above, ready to run as a data-driven test:





The last four rows add the ages on either side of each band edge, which is where bugs tend to hide.



Advantages of Decision Table Testing

Advantage

Why It Matters

Every combination is covered

Nothing gets missed, which matters most in regulated industries where an untested path is a compliance risk

Clear links from rules to tests

Each rule maps to a business requirement and a test case, which makes audits much easier

Complex logic becomes manageable

Hundreds of combinations become one table that technical and business people can both review

Everyone works from the same table

Business analysts, developers and testers all agree on what should happen in every case

Easy to automate

Each rule is a row of test data, so the table drives a data-driven test directly



Limitations of Decision Table Testing

Limitation

What It Means

What to Do

Tables grow fast

Ten Yes or No conditions give 1,024 rules

Simplify with dashes, split large tables up, or use pairwise testing when conditions don't depend on each other much

Ranges don't fit neatly

Prices, ages and times are continuous, not categories

Use equivalence partitioning to turn ranges into groups first, then test the edges with boundary value analysis

Conditions may depend on each other

Some combinations can't happen, like a savings account with an overdraft

Find and remove impossible combinations, and note why

Tables go out of date

When business rules change often, tables need constant updating

Link each table to the rule documents it came from, so changes are easy to spot

When a table gets too big to test every rule, pairwise testing can cut thousands of combinations down to a few dozen tests.

If your conditions are linked by AND, OR and NOT logic, cause-effect graphing can help you map the logic before you build the table.



Best Practices for Decision Table Testing

Practice

Why

Start with the business rules, not the screen

That way, you test how the system should behave, not just how it currently looks

Group ranges before building the table

Use equivalence partitioning so the table stays a manageable size

Always test the edges

If a rule says "income above £50,000", test £49,999, £50,000 and £50,001. Edges are where bugs cluster

Remove impossible combinations

Don't waste test runs on cases that can't happen

Turn the table into test data

Save it as a CSV or data table and run it as a data-driven test, so it's not just a planning document

Keep tables linked to their source

When a rule changes, you'll know which table and which tests need updating



Common Mistakes in Decision Table Testing

Mistake

What Goes Wrong

Vague condition values

"Good credit" can't be tested, so different testers interpret it differently

Forgetting actions for the "no" paths

Error messages and declines get missed, even though they're often where bugs are

Marking a condition as "doesn't matter" too quickly

A condition that looked irrelevant turns out to matter in one case nobody thought of

Skipping boundary tests

The table covers the bands, but not the edges between them

Building the table once and never updating it

The table and the system drift apart, and tests start checking old rules



How to Automate Decision Table Testing with Virtuoso QA

A decision table on its own is a plan. The value comes from turning it into tests that run on every release. Here's how Virtuoso QA helps:

What You Need

How Virtuoso QA Helps

Rules pulled from your documents

Touchstone reads your requirements, policy documents and business rules, and drafts requirements from them, each citing its source. That gives you a starting point for the table that's tied back to where each rule came from. A named person approves every requirement

Rules written as tests

A rule like "if credit score is high and income is high, approve at the low rate" becomes a test journey written in plain English, with no code

One test for every rule

You write the journey once, then load the decision table as test data, like the CSV above. Each row runs as its own test, with its own result

Realistic test data

AI test data generation creates realistic data for each rule, so you don't have to build every customer record by hand

Shared steps

Common steps, like signing in or checking eligibility, are built once and reused across every rule

Tests that survive UI changes

When screens change, Virtuoso QA suggests a fix for your team to approve, so tests keep running

Knowing when rules change

When the rule documents change, Touchstone flags the requirements affected, so you know which rows of the table to update

Clear failures

When a rule fails, you see the data it used, the failing step, screenshots and logs, which helps you tell a real logic bug from a test or data problem

Proof of what was tested

Every run records the rule, the result and who approved the test

Tests can run across 2,000+ browser and OS combinations, and on every release through your CI/CD pipeline.

To see how agents draft tests like these from your own rules, take a look at agentic test generation.

And to keep every rule checked on every release, see how Virtuoso QA handles regression testing.

Decision Table Testing FAQs

How do I create a decision table for testing?

What is the difference between a limited and extended decision table?

How many test cases does a decision table produce?

How does AI improve decision table testing?

How does decision table testing relate to equivalence partitioning and boundary value analysis?

How does Virtuoso QA handle decision table testing for enterprises?

Written by

Virtuoso QA

Guest Author

Written by the Virtuoso QA team or a guest contributor. These pieces draw on platform data, customer outcomes and the team’s work with enterprise QA leaders.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

See what your next release looks like with Virtuoso

Book a walkthrough on your applications and your workflows. Bring a requirement, a user journey, or a brittle Selenium script, and watch the loop run on something you recognise.

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA

Virtuoso QA is establishing the standard of proof for software releases. Its governed QA loop turns business requirements into tests for any browser-based application: AI proposes, a deterministic engine executes, a person approves what matters, and every decision leaves evidence.

Trust Center

AICPA

SOC

WAVE STRONG PERFORMER

@ Copyright 2026 SpotQA, Creators of Virtuoso QA