Professional Documents
Culture Documents
Week 9 Decision Table Based Testing 08012023 085427pm 1 13052024 120042pm
Week 9 Decision Table Based Testing 08012023 085427pm 1 13052024 120042pm
Step 1: Creating the first column of the table by understanding the requirements.
We will create the first column of the table by taking a look at what we need to test. For this
example, consider an example of an ATM Transaction. Following would be its conditions and
actions:
Condition
Action
Condition
Action
Condition
The withdrawal amount is less than or equal T F T F
to the bank balance
Credit granted – T – F
Action
Withdrawal Request Accepted
HOW TO CREATE A DECISION TABLE FOR
TESTING?
Now that the table is made reduced and its actions are determined, we can
write test cases for the table. For full coverage of business rules, we should write at
least one test case for each column.
For example:
Test Case for R1 : Balance = 1000, Withdrawal Request = 1000. Result: Withdrawal
Request Accepted
Test Case for R2 : Balance = 1000, Withdrawal Request = 500. Credit Granted: Yes,
Result: Withdrawal Request Accepted
Test Case for R3 : Balance = 1000, Withdrawal Request = 1500. Credit Granted: No,
Result: Withdrawal Request Denied
EXAMPLE 2
A company’s employees are paid bonuses if they work more than a year in the
company and achieve individually agreed targets.
Try to list out all the conditions and actions mentioned in the requirements. Hopefully,
you would have listed out the conditions as listed below.
Conditions:
Employment for more than 1 year?
Agreed target?
Achieved target?
Actions / Outcome :
Bonus payment?
ADVANTAGES
Decision Table Testing is easy to interpret, and hence these are used for development and
business.
A Decision Table Testing helps in making effective combinations, and once made, it can
provide better coverage for testing.
It is fairly easy to turn business conditions into decision tables, even if the conditions are
complex in nature.
If the testing team is looking for 100% coverage and the number of input combinations is low,
Decision Table Testing is one of the most efficient ways of getting the job done.
Decision Testing works where boundary value analysis and equivalent partitioning do not, i.e.,
When the system behavior is different for different inputs.
REFERENCES
https://www.guru99.com/decision-table-testing.html
https://www.educba.com/decision-table-testing/
http://www.softwaretestinglessons.com/decision-table-testing-example/