Skip to main content Accessibility help
×
Hostname: page-component-5c6d5d7d68-wbk2r Total loading time: 0 Render date: 2024-08-16T22:14:43.407Z Has data issue: false hasContentIssue false

M - State Transition Example

Published online by Cambridge University Press:  06 September 2009

John Watkins
Affiliation:
IBM Software Group, California
Get access

Summary

Introduction

This appendix contains a worked 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) as part of the test design process.

The Testing Problem

This example describes part of the specification for the software controlling the operation of a water pump:

  1. ▲ The pump can be in one of three states: Isolated, Ready, or Running. The pump cannot start (that is, move to the Running state) if it is Isolated

  2. ▲ 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

  3. ▲ 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 above requirement, the Test Analyst draws a State Transition diagram to show graphically the states, their transitions, and the events causing those transitions (see Figure M.1).

Type
Chapter
Information
Testing IT
An Off-the-Shelf Software Testing Process
, pp. 259 - 260
Publisher: Cambridge University Press
Print publication year: 2001

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.

  • State Transition Example
  • John Watkins, IBM Software Group, California
  • Book: Testing IT
  • Online publication: 06 September 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511547041.035
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.

  • State Transition Example
  • John Watkins, IBM Software Group, California
  • Book: Testing IT
  • Online publication: 06 September 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511547041.035
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.

  • State Transition Example
  • John Watkins, IBM Software Group, California
  • Book: Testing IT
  • Online publication: 06 September 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511547041.035
Available formats
×