close
The Wayback Machine - https://web.archive.org/web/20240927003330/https://www.geeksforgeeks.org/decision-table-based-testing-in-software-testing/
Open In App

Decision Table Based Testing in Software Testing

Last Updated : 04 Oct, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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 :

BERJAYA

  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 :

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

Previous Article
Next Article

Similar Reads

The Make-Buy Decision or Decision Table - Software Engineering
A decision table is a brief visual representation for specifying which actions to perform depending on given conditions. This article focuses on discussing decision tables in detail. What is a Decision Table?A decision table is a good way to settle different combination inputs with their corresponding outputs and is also called a cause-effect table
3 min read
Difference between Decision Table and Decision Tree
1. Decision Table: Decision Table is just a tabular representation of all conditions and actions. Decision Table are always used whenever the processing logic is very complicated and involves multiple conditions. The main components used for the formation of the Data Table are Conditions Stubs, Action Stubs, and rules. Types of decision tables: Ext
3 min read
Web Based Testing - Software Testing
Web testing is a software testing technique to test web applications or websites for finding errors and bugs. A web application must be tested properly before it goes to the end-users. Also, testing a web application does not only mean finding common bugs or errors but also testing the quality-related risks associated with the application. Software
7 min read
Model Based Testing in Software Testing
Prerequisites: software-testing Model-based testing is nothing but a simple testing technique in which we get different test cases that are described by the model. In this type, the test cases are generated via both online and offline test case models. Table of Content Significance of Model-Based TestingTypes of Model-Based TestingAdvantages of Mod
5 min read
Principles of software testing - Software Testing
Software testing is an important aspect of software development, ensuring that applications function correctly and meet user expectations. In this article, we will go into the principles of software testing, exploring key concepts and methodologies to enhance product quality. From test planning to execution and analysis, understanding these princip
10 min read
Decision Tree in Software Engineering
A Decision Tree offers a graphic read of the processing logic concerned in a higher cognitive process and therefore the corresponding actions are taken. The perimeters of a choice tree represent conditions and therefore the leaf nodes represent the actions to be performed looking at the result of testing the condition. For example, consider Library
2 min read
PEN Testing in Software Testing
Pen testing, a series of activities taken out in order to identify the various potential vulnerabilities present in the system which any attack can use to exploit the organization. It enables the organization to modify its security strategies and plans after knowing the currently present vulnerabilities and improper system configurations. This pape
3 min read
Basis Path Testing in Software Testing
Prerequisite - Path Testing Basis Path Testing is a white-box testing technique based on the control structure of a program or a module. Using this structure, a control flow graph is prepared and the various possible paths present in the graph are executed as a part of testing. Therefore, by definition, Basis path testing is a technique of selectin
5 min read
What is Code Driven Testing in Software Testing?
Prerequisite - TDD (Test Driven Testing) Code Driven Testing is a software development approach in which it uses testing frameworks that allows the execution of unit tests to determine whether various sections of the code are acting accordingly as expected under various conditions. That is, in Code Driven Testing test cases are developed to specify
2 min read
Difference between Error Seeding and Mutation Testing in Software Testing
1. Error Seeding :Error seeding can be defined as a process of adding errors to the program code that can be used for evaluating the number of remaining errors after the system software test part. The process works by adding the errors to the program code that one can try to find & estimate the number of real errors in the code base with the he
3 min read
Response Testing in Software Testing
Software applications are developed to provide some specific service to the customers. When an end-user uses a software product/application between the software and the user, a request-response interaction takes place. This request-response interaction is one method of communication between users and systems or multiple systems in a network. When o
8 min read
Random Testing in Software Testing
Random testing is software testing in which the system is tested with the help of generating random and independent inputs and test cases. Random testing is also named monkey testing. It is a black box assessment outline technique in which the tests are being chosen randomly and the results are being compared by some software identification to chec
4 min read
Overview of Conversion Testing in Software Testing
Conversion Testing :Every software development process follows the Software Development Life Cycle (SDLC) for developing and delivering a good quality software product. In the testing phase of software development, different types of software testing are performed to check different check parameters or test cases. Where in each software data is an
6 min read
Data Integrity Testing in Software Testing
Every software development process follows the Software Development Life Cycle (SDLC) for the development and delivery of a good quality software product. In the testing phase of software development, different types of software testing are performed to check different check parameters or test cases. Where in each software data is an important part
5 min read
Incremental Testing in Software Testing
Incremental Testing :Like development, testing is also a phase of SDLC (Software Development Life Cycle). Different tests are performed at different stages of the development cycle. Incremental testing is one of the testing approaches that is commonly used in the software field during the testing phase of integration testing which is performed afte
3 min read
Internationalization Testing in Software Testing
Prerequisite: Software Testing Software testing is an important part of the software development life cycle. There are different types of software testing are performed during the development of a software product/service. Software testing ensures that our developed software product/service is bug-free and delivers fulfilling the desired requiremen
4 min read
Types of Regression Testing in Software Testing
Regression Testing :Regression testing is done to ensure that enhancements or defect fixes made to the software work properly and do not affect the existing functionality. It is generally done during the maintenance phase of SDLC. Regression Testing is the process of testing the modified parts of the code and the parts that might get affected due t
4 min read
Post Deployment Testing in Software Testing
Post-deployment testing is a type of testing in which the software is tested after it is deployed to production. This testing may help us find those problems that were not detected before its deployment in the production and despite all the planning and testing carried out before the final deployment, obtaining user opinion is important for the imp
3 min read
Challenges in Manual Testing - Software Testing
Manual testing is a type of software testing technique that is used to document tests, produce test guides based on data queries, provide temporary structures to help run tests, and measure the results of the tests. Manual testing is considered to be costly and time-consuming. In manual testing, a tester carries out tests on the software by followi
4 min read
Factors controlling the Performance Testing - Software Testing
Prerequisite: Performance Testing | Software Testing Performance Testing is conducted to discover the response time, throughput, etc., and also to execute its required functions by doing a comparison with different versions of the same product or different competitive products. It is a type of software testing that ensures that software application
3 min read
Testing Documentation - Software Testing
Testing documents are prepared at different stages. These documents are discussed as follows. 1. Before Testing: Since testing begins with the generation of the test cases. The following documents are required for reference – SRS document - Functional Requirements document. Test Policy document - It means the product must be tested far before relea
2 min read
API Testing - Software testing
API testing, or application programming interface testing, is a type of software testing that focuses on the testing of individual API methods and the interactions between different APIs. This type of testing is typically performed at the integration level, after unit testing is completed, and before user interface testing begins. It is used to val
7 min read
Mutation Testing - Software Testing
Mutation Testing is a type of Software Testing that is performed to design new software tests and also evaluate the quality of already existing software tests. Mutation testing is related to modification a program in small ways. It focuses to help the tester develop effective tests or locate weaknesses in the test data used for the program.  Histor
3 min read
Sanity Testing Vs Smoke Testing - Software Engineering
Smoke Testing is a type of testing that is done to ensure that the acute functionalities of the program are working fine. It is also known as a subset of acceptance testing, and it is used to test all over the function of the system/product. On the other hand. Sanity Testing is done to check the bugs have been fixed after the build. And it is also
5 min read
Stability Testing - Software Testing
Stability Testing is a type of Software Testing to check the quality and behavior of the software in different environmental parameters. It is defined as the ability of the product to continue to function over time without failure.  It is a Non-functional Testing technique that focuses to stress the software component to the maximum. Stability test
3 min read
Scalability Testing - Software Testing
Scalability Testing is a type of non-functional testing in which the performance of a software application, system, network or process is tested in terms of its capability to scale up or scale down the number of user request load or other such performance attributes. It can be carried out at a hardware, software or database level. Scalability Testi
6 min read
Scenario Testing - Software Testing
Scenario testing helps testers to know how the software will exactly work when end user will use it. As the scenario testing tests the business process flow of the software so it helps in figure out a lot of defects which cannot be found with the help of other testing. Scenario testing is carried out by creating test scenarios which copy the end us
4 min read
Dynamic Testing - Software Testing
Dynamic testing is a type of software testing that involves executing the software and evaluating its behavior during runtime. It is also known as functional testing, as it focuses on testing the software's functionality and how it behaves under different inputs and conditions. In this article, we'll learn about its objectives, levels, processes, a
6 min read
Portability Testing - Software Testing
Software testing that assesses a program's ability to function properly in many environments without requiring major changes is known as portability testing. The goal is to guarantee that the program may be transferred or ported to different platforms, operating systems, browsers, and configurations and remains functional, flexible, and compatible.
5 min read
Sandwich Testing - Software Testing
Sandwich Testing combines the bottom-up and top-down approaches, so it uses the advantage of both the bottom-up and top-down approaches. Initially, it uses the stubs and drivers where stubs simulate the behavior of a missing component. It is also known as Hybrid Integration Testing. Purpose of Sandwich TestingEntire Coverage: Sandwich testing tests
3 min read
Article Tags :