52 Software teSting interview QueStionS
(B) Can you explain hoW the state transition
diagrams Can Be helpful during testing?
Before we understand how state transition diagrams can be useful in testing,
let’s understand what exactly a state and transition. The result of a previous
input is called a state and transitions are actions which cause the state to
change from one state to another.
The following figure shows a typical state transition diagram. The arrows
signify the transition and the oval shapes signify the states. The first transition
in the diagram is the issue of the check that it is ready to be deposited. The
second transition is the check is deposited of which we can have two states:
either the check cleared or it bounced.
Figure 54 Sample state transition diagram
Now that we are clear about state and transition, how does it help us in
testing? By using states and transitions we can identify test cases. So we can
identify test cases either using states or transitions. But if we use only one entity,
i.e., either state or transition, it is very possible that we can miss some scenarios.
In order to get the maximum benefit we should use the combination of state
and transition. The following figure shows that if we only use state or transition
in isolation it’s possible that we will have partial testing. But the combination
of state and transition can give us better test coverage for an application.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.39.133