Example
The rule
A ticket system have their valid transitions documented in the following table, where O represents allowed and X represents not allowed.
From \ To | Reported | Open | In Progress | In Review | Delivered | Rejected | Reopen |
---|
Reported | - | O | X | X | X | O | X |
Open | X | - | O | X | X | O | X |
In Progress | X | X | - | O | X | O | X |
In Review | X | O | O | - | O | O | X |
Delivered | X | X | X | X | - | X | O |
Rejected | X | X | X | X | X | - | X |
Reopen | X | X | O | X | X | X | - |
How to apply technique
There is no much secret applying this technique to design test cases.
- Each transition show be be represented by one test case
- There is no transition from one state to itself (diagonal line with dots)
- The number of test cases is always equals to ( (n * n) - n )
For this case we have 7 states (n = 7). So we will have 42 test cases, as follows:
- From Reported to Open (positive)
- From Reported to In Progress (negative)
- From Reported to In Review (negative)
- From Reported to Delivered (negative)
- From Reported to Rejected (positive)
- From Reported to Reopen (negative)
- From Open to Reported (negative)
- From Open to In Progress (positive)
- From Open to In Review (negative)
- From Open to Delivered (negative)
- From Open to Rejected (positive)
- From Open to Reopen (negative)
- From In Progress to Reported (negative)
- From In Progress to Open (negative)
- From In Progress to In Review (positive)
- From In Progress to Delivered (negative)
- From In Progress to Rejected (positive)
- From In Progress to Reopen (negative)
- From In Review to Reported (negative)
- From In Review to Open (positive)
- From In Review to In Progress (positive)
- From In Review to Delivered (positive)
- From In Review to Rejected (positive)
- From In Review to Reopen (negative)
- From Delivered to Reported (negative)
- From Delivered to Open (negative)
- From Delivered to In Progress (negative)
- From Delivered to In Review (negative)
- From Delivered to Rejected (negative)
- From Delivered to Reopen (positive)
- From Rejected to Reported (negative)
- From Rejected to Open (negative)
- From Rejected to In Progress (negative)
- From Rejected to In Review (negative)
- From Rejected to Delivered (negative)
- From Rejected to Reopen (negative)
- From Reopen to Reported (negative)
- From Reopen to Open (negative)
- From Reopen to In Progress (positive)
- From Reopen to In Review (negative)
- From Reopen to Delivered (negative)
- From Reopen to Rejected (negative)