Decision table testing is a software testing technique used to test system behaviour for different input combinations. This is a systematic approach where the different input combinations and their corresponding system behaviour (Output) are captured in a tabular form. That is why it is also called as a Cause-Effect table where Cause and effects are captured for better test coverage.
How to make Decision Table for Login Screen
Let’s create a decision table for a login screen
Email- ************.com
Login- XYZ
Password-########
The condition is simple if the user provides correct username and password the user will be redirected to the homepage. If any of the input is wrong, an error message will be displayed.
ConditionsCase 1Case 2Case 3Case 4UsernameFTFTPasswordFFTTOutputEEEH
Notations:
Interpretations:
While converting this to test case, we can create 2 scenarios:
And one from the below scenarios:
When the system behaviour is different for different input and not same for a range of inputs, both equivalent partitioning, and boundary value analysis won’t help, but decision table can be used.
This table will help to make effective combinations and can ensure a better coverage for testing. Any complex business conditions can be easily turned into decision tables.
In a case we are going for 100% coverage typically when the input combinations are low, this technique can ensure the coverage.