Professional Documents
Culture Documents
TMAP State Transition Testing Template - v1.1
TMAP State Transition Testing Template - v1.1
Test case design for State Transition Testing The result of creating tes
They will need to be wor
execution. This means de
Test situations and test cases 0-switch coverage data to use and (very imp
Start state Transition End state case.
You could use the Test Ca
TS1
TS2
TS3
Test cases 0-switch cove
(note: the test cases are in the columns to the right)
TC1
TS1
To show or hide the test situations for each test case "extend" the TS2
grouped lines by clicking the - or + sign in the left margin of the sheet) TS3
TC2
TS1
TS2
TS3
TC3
TS1
TS2
TS3
(insert extra lines when more test situations exist, calculate the number of test situation on the calculation she
(copy extra lines when more test situations exist, calculate the number of test situations on the calculation she
The result of creating test cases with this sheet are "Logical Test Cases".
They will need to be worked out into "Physical Test Cases" for the test
execution. This means determining the exact actions to take, the exact
data to use and (very important) the expected outcomes for every test
case.
You could use the Test Case & Test Log Template of TMAP for this.
Test cases 0-switch coverage - a test case consists of one or more test situations
State Transition State Transition State Transition State Transition State Transition State Transition State Transition State
Test cases 1-switch coverage - a test case consists of one or more test situations
State Transition State Transition State Transition State Transition State Transition State Transition State Transition State
Test case design for State Transition Testing - Electric door EXAMPLE
(insert extra lines when more test situations exist, calculate the number of test situation on the calculation she
(Note: for this example we did not work out the shortest examples, these are just the test situations. It is also possible to h
(copy extra lines when more test situations exist, calculate the number of test situations on the calculation she
Test cases 0-switch coverage - a test case consists of one or more test situations
State Transition State Transition State Transition State Transition State Transition State Transition State Transition State
S1 T1 S2 T2 S2 T3 S1
S1 T1 S2
S2 T2 S2 To show the test situations for each test case "extend" the grouped lines by clicking the + sign in th
S2 T3 S1
Test cases 1-switch coverage - a test case consists of one or more test situations
State Transition State Transition State Transition State Transition State Transition State Transition State Transition State
S1 T1 S2 T2 S2 T2 S2 T3 S1 T1 S2 T3 S1
S1 T1 S2 T2 S2
S1 T1 S2 T3 S1
S2 T2 S2 T2 S2
S2 T2 S2 T3 S1
S2 T3 S1 T1 S2
ons. It is also possible to have several "medium length" test cases that combine a few test situations)
States (names/ID's):
Incoming transitions:
Outgoing transitions:
Multiplied per state (calculated): 0 0 0 0 0 0
Number of test situations: 0 (this is calculated by multiplying the number of incoming and outgoing transition
(for 1-switch coverage)
Number of test situations: 0 (this is equal to the number of transitions, here calculated as the number of outg
(for 0-switch coverage)
- 1-switch coverage © Sogeti 2021
0 0 0 0
ming and outgoing transitions per state, and adding the totals)
Number of test situations: 3 (this is equal to the number of transitions, here calculated as the number of outgoing
(for 0-switch coverage) (this only is the number of valid transitions, see the page on state tables for the inval
1-switch coverage © Sogeti 2022
Events
States
Note: See the State Table Example for guidance on how to use this table.
© Sogeti 2021
TMAP - state transition testing - State table (valid & invalid transitions)
Example State Transition Table for electric door.
Events
Push open-button Sensor detects person
States