Published online by Cambridge University Press: 03 May 2011
Introduction
This appendix contains an example illustrating the testing technique of state transition analysis described in Chapter 3, which the test analyst can use to select specimen data for use in testing the application under test (AUT). State transition analysis is also termed state transition testing.
The Testing Problem
This example describes part of the specification for the software controlling the operation of a water pump:
The pump can be in one of three states: isolated, ready, or running. The pump cannot start (i.e., move to the running state) if it is isolated
Opening the water valve will move the pump from the isolated into the ready state. Closing the water valve when the pump is ready will return it to the isolated state
Pressing a start button when the pump is in the ready state will start the pump and move it into the running state. Pressing a stop button when the pump is running will stop the pump and move it into the ready state.
Analyzing the Testing Requirements
To support the process of analyzing the previous requirement, the test analyst draws a state transition diagram to graphically show the states, their transitions, and the events (see Figure M1).
To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.