Decision table also known as cause effect
table it is one of the black box test design techniques
what are that black box design techniques?
Black Box Testing is a software testing method in
which the internal structure/ design/ implementation of the item being tested
is NOT known to the tester. The black box is designed techniques are widely used as a best
practice in the industry. Black box techniques are used to pick the test cases
in a systematic manner by using these techniques we could save lots of testing
time and get the good coverage.
Decision Table Test Case Design Technique:
This test technique is appropriate for functionalities where it has the logical relationships between the inputs (if-else logic). In Decision table technique, we are working with a combination of inputs. To identify the test cases with decision table, we have conditions and actions. We take conditions as inputs and actions as outputs.
As an example, for that lets practice on a small test case which is Login Screen
Let’s identify the conditions our inputs:
The user will type in the correct username and password, the user will be logged in successfully
If any of the input is wrong, an
error message will be displayed.
Now let’s divide our condition in to
true, false, error, and home screen
- T for true – Correct username/password
- F for false– Wrong username/password
- E for error– Error message is displayed
- H for home– Home screen is displayed
That leads us to the cases we are going to create:
- Case 1 – Username and password both were wrong. The user is shown
an error message. - Case 2 – Username was correct, but the password was wrong. The user
is shown an error message. - Case 3 – Username was wrong, but the password was correct. The user
is shown an error message. - Case 4 – Username and password both were correct, and the user
navigated to homepage
Now let’s try to put all of this
into one decision table
conditions | Rule1 | Rule2 | Rule3 | Rule4 |
Username | F | T | F | T |
password | F | F | T | T |
Output | E | E | E | H |
And this is the way to create a decision table
Advantage of decision table technique:
- every complicated business can be converted easily into a
test scenarios & test cases using this technique. - The first iteration is used as input table for next
tables. - Once you get the idea of how the test works it become simple
to understand and anyone can use this method. - It gives a full coverage of test cases which help to
reduce the rework.
Works Cited
From the blog CS@Worcester – Shams's Bits and Bytes by Shsms Al Farees and used with permission of the author. All other rights reserved by the author.