Book contents
- Frontmatter
- Contents
- Foreword to the Second Edition by Geoff Thompson
- Foreword to the First Edition by Maurice Rosenburgh
- Acknowledgments
- 1 Introduction
- PART 1 THE TRADITIONAL TESTING PROCESS
- PART 2 THE TESTING PROCESS IN THE REAL WORLD: ILLUSTRATIVE CASE STUDIES
- PART 3 THE APPENDICES
- Appendix A Terms of Reference for Testing Staff
- Appendix B Testing Guides
- Appendix C Test Plan Document Template
- Appendix D Test Specification Document Template
- Appendix E Test Script Template
- Appendix F Test Result Record Form Template
- Appendix G Test Log Template
- Appendix H Test Certificate Template
- Appendix I Reuse Pack Checklist
- Appendix J Test Summary Report Template
- Appendix K Equivalence Partition Example
- Appendix L Boundary Value Analysis Example
- Appendix M State Transition Example
- Appendix N Pairwise Testing Example
- Appendix O Automated Testing Tool Selection Criteria
- Appendix P Usability Testing Overview
- Appendix Q Testing Process Health Check
- Appendix R The Testing of Object-Oriented Software
- Appendix S Pragmatic Test Process Adoption – a Real-World Example
- References
- Glossary
- Index
Appendix M - State Transition Example
Published online by Cambridge University Press: 03 May 2011
- Frontmatter
- Contents
- Foreword to the Second Edition by Geoff Thompson
- Foreword to the First Edition by Maurice Rosenburgh
- Acknowledgments
- 1 Introduction
- PART 1 THE TRADITIONAL TESTING PROCESS
- PART 2 THE TESTING PROCESS IN THE REAL WORLD: ILLUSTRATIVE CASE STUDIES
- PART 3 THE APPENDICES
- Appendix A Terms of Reference for Testing Staff
- Appendix B Testing Guides
- Appendix C Test Plan Document Template
- Appendix D Test Specification Document Template
- Appendix E Test Script Template
- Appendix F Test Result Record Form Template
- Appendix G Test Log Template
- Appendix H Test Certificate Template
- Appendix I Reuse Pack Checklist
- Appendix J Test Summary Report Template
- Appendix K Equivalence Partition Example
- Appendix L Boundary Value Analysis Example
- Appendix M State Transition Example
- Appendix N Pairwise Testing Example
- Appendix O Automated Testing Tool Selection Criteria
- Appendix P Usability Testing Overview
- Appendix Q Testing Process Health Check
- Appendix R The Testing of Object-Oriented Software
- Appendix S Pragmatic Test Process Adoption – a Real-World Example
- References
- Glossary
- Index
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 ITAn Off-the-Shelf Software Testing Process, pp. 272 - 273Publisher: Cambridge University PressPrint publication year: 2010