Decision Table Based Testing in Software Testing
source link: https://www.geeksforgeeks.org/decision-table-based-testing-in-software-testing/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Decision Table Based Testing in Software Testing
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 :
- 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.
- Action Stubs : All the possible actions are given in the first lower left portion (i.e, below condition stub) of the decision table.
- 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.
- 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:
- Limited Entry : In the limited entry decision tables, the condition entries are restricted to binary values.
- 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 :
Conditions | R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | R11 | R12 | R13 | R14 |
c1: x > = 1? | F | T | T | T | T | T | T | T | T | T | T | T | T | T |
c2: x <= 300? | F | T | T | T | T | T | T | T | T | T | T | T | T | |
c3: y > = 1? | F | T | T | T | T | T | T | T | T | T | T | T | ||
c4: x <= 300? | F | T | T | T | T | T | T | T | T | T | T | |||
c5: z > = 1? | F | T | T | T | T | T | T | T | T | T | ||||
c6: z <= 300? | F | T | T | T | T | T | T | T | T | |||||
c7: x>y? | T | T | T | T | F | F | F | F | ||||||
c8: y>z? | T | T | F | F | T | T | F | F | ||||||
c9: z>x? | T | F | T | F | T | F | T | F | ||||||
Rule Count | 256 | 128 | 64 | 32 | 16 | 8 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
a1 : Invalid input | X | X | X | X | X | X | ||||||||
a2 : x is largest | X | X | ||||||||||||
a3 : y is largest | X | X | ||||||||||||
a4 : z is largest | X | X | ||||||||||||
a5 : Impossible | X | X |
Master Software Testing and Automation in an efficient and time-bound manner by mentors with real-time industry experience. Join our Software Automation Course and embark on an exciting journey, mastering the skill set with ease!
What We Offer:
- Comprehensive Software Automation program
- Expert Guidance for Efficient Learning
- Hands-on Experience with Real-world Projects
- Proven Track Record with 10,000+ Successful Geeks
Recommend
-
94
The technology industry was dealt a major setback when the Federal Circuit recently decided in Oracle v. Google that Google’s use of Java “declaring code” was not a fair use. ...
-
43
News FSFE welcomes CDU decision to make Free Software mandatory on:
-
7
InfoQ Homepage
-
8
Want better decision-making? You need role-based analytics - but providers are coming up short
-
7
Update a table based on the result of a join in MySQL advertisements I understand the syntax here: UPDATE table SET column1 = e...
-
5
AI-Based Software Testing: The Future of Test Automation The success of digital technologies, and by their extension, businesses, is underpinned by the optimal performance of the software systems that form the core of operations in th...
-
4
In Ruby / Rails, how do I create a column in a table based on the value of two other columns in the same table? advertisements ...
-
4
Removing Duplicate Rows (Based on Values from Multiple Columns) From SQL Table ...
-
9
How to Eliminate Duplicate Values Based on Only One Column of the Table in SQL? ...
-
3
Decision Table Patterns Skip to Content Decision tables are easy, simple, and powerful. You c...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK