Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Decision Table Based Testing in Software Testing

  • Last Updated : 04 Oct, 2021

What is a Decision Table :

Decision tables are used in various engineering fields to represent complex logical relationships. This testing is a very effective tool in testing the software and its requirements management. The output may be dependent on many input conditions and decision tables give a tabular view of various combinations of input conditions and these conditions are in the form of True(T) and False(F). Also, it provides a set of conditions and its corresponding actions required in the testing.

Parts of Decision Tables :

In software testing, the decision table has 4 parts which are divided into portions and are given below :

  1. Condition Stubs : The conditions are listed in this first upper left part of the decision table that is used to determine a particular action or set of actions.
  2. Action Stubs : All the possible actions are given in the first lower left portion (i.e, below condition stub) of the decision table.
  3. Condition Entries : In the condition entry, the values are inputted in the upper right portion of the decision table. In the condition entries part of the table, there are multiple rows and columns which are known as Rule.
  4. Action Entries :  In the action entry, every entry has some associated action or set of actions in the lower right portion of the decision table and these values are called outputs.

Types of Decision Tables :

The decision tables are categorized into two types and these are given below:

  1. Limited Entry : In the limited entry decision tables, the condition entries are restricted to binary values.
  2. Extended Entry : In the extended entry decision table, the condition entries have more than two values. The decision tables use multiple conditions where a condition may have many possibilities instead of only ‘true’ and ‘false’ are known as extended entry decision tables.

Applicability of Decision Tables :

  • The order of rule evaluation has no effect on the resulting action.
  • The decision tables can be applied easily at the unit level only.
  • Once a rule is satisfied and the action selected, n another rule needs to be examined.
  • The restrictions do not eliminate many applications.

Example of Decision Table Based testing :

Below is the decision table of the program for determining the largest amongst three numbers in which its input is a triple of positive integers (x,y, and z) and values are from the interval [1, 300].

Table 1 : Decision Table of largest amongst three numbers :

ConditionsR1R2R3R4R5R6R7R8R9R10R11R12R13R14
c1: x > = 1?FTTTTTTTTTTTTT
c2: x <= 300? FTTTTTTTTTTTT
c3: y > = 1?  FTTTTTTTTTTT
c4: x <= 300?   FTTTTTTTTTT
c5: z > = 1?    FTTTTTTTTT
c6: z <= 300?     FTTTTTTTT
c7: x>y?      TTTTFFFF
c8: y>z?      TTFFTTFF
c9: z>x?      TFTFTFTF
Rule Count256128643216811111111
a1 : Invalid inputXXXXXX        
a2 : x is largest       X X    
a3 : y is largest          XX  
a4 : z is largest        X   X 
a5 : Impossible      X      X

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!