Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-sv6ng Total loading time: 0 Render date: 2024-08-07T06:30:41.088Z Has data issue: false hasContentIssue false

Appendix M - State Transition Example

Published online by Cambridge University Press:  03 May 2011

John Watkins
Affiliation:
IBM Software Group, UK
Simon Mills
Affiliation:
Ingenuity System Testing Services Ltd., UK
Get access

Summary

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).

Type
Chapter
Information
Testing IT
An Off-the-Shelf Software Testing Process
, pp. 272 - 273
Publisher: Cambridge University Press
Print publication year: 2010

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org 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.

Available formats
×

Save book 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 Dropbox.

Available formats
×

Save book to Google Drive

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.

Available formats
×