6 - State Table Based Testing
6 - State Table Based Testing
BASED TESTING
Ready Running
Interrupt,T3 I/O or event
I/O or event wait, T4
completion, T5 Waiting
Ready Running
Interrupt,T3 I/O or event
I/O or event wait, T4
completion, T5 Waiting
• The box at the intersection of a row and a column specifies the next state
(transition) and the outputs, if any.
4. State Table-Based Testing
After reviewing the basics, we can start
functional testing with state tables.
Steps:
1. Identify the states
The number of states in a state graph is the
number of states we choose to recognize or
model.
Finding the number of states
Solution
Entry
Rule 1 Rule 2 Rule 3
Condition C1: Working hours > 48 I F T
Stub C2: Holidays or Sundays T F F
A1: Normal Salary X
Action Stub A2: 1.25 of salary X
A3: 2.00 of salary X
Decision Table
Expanding the Immaterial Cases in
Decision Table
These conditions means that the value of
a particular condition in the specific rule
does not make a difference whether it is
TRUE or FALSE.
Sometimes expanding the decision table
to spell out don’t-care conditions can
reveal hidden problems.
Example - 1
Entry (Decision table)
Rule 1 Rule 2 Rule 3
C1: Working hours > 48 I F T
Condition Stub
C2: Holidays or Sundays T F F
A1: Normal Salary X
Action Stub A2: 1.25 of salary X
A3: 2.00 of salary X
31