A cause-effect graph is a technique used in black-box testing.
In black-box testing, testers are concerned with the inputs and corresponding outputs of a system only. They do not need to know the underlying code.
The cause-effect graph was created by Kaoru Ishikawa and thus, is known as the Ishikawa diagram. It is also known as the ‘fish-bone’ diagram because of the way it is structured. A cause-effect graph shows the relationship between an outcome (effect) and the factors (causes) that lead to it.
The illustration below shows a cause-effect graph:
A cause-effect graph is primarily used to identify factors that lead to an outcome. We can list the reasons for using a cause-effect graph as below:
A cause-effect graph can be created by following the steps below:
A cause-effect graph has the following benefits:
The illustration below gives an example of a cause-effect graph used in a software:
We assume that a database issue has occurred within the software.
The illustration above presents a scenario that shows different factors responsible for database failure in a software. These scenarios include:
Free Resources