Assessing and improving state-based class testing: a series of experiments
- 22 November 2004
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 30 (11) , 770-783
Abstract
This work describes an empirical investigation of the cost effectiveness of well-known state-based testing techniques for classes or clusters of classes that exhibit a state-dependent behavior. This is practically relevant as many object-oriented methodologies recommend modeling such components with statecharts which can then be used as a basis for testing. Our results, based on a series of three experiments, show that in most cases state-based techniques are not likely to be sufficient by themselves to catch most of the faults present in the code. Though useful, they need to be complemented with black-box, functional testing. We focus here on a particular technique, Category Partition, as this is the most commonly used and referenced black-box, functional testing technique. Two different oracle strategies have been applied for checking the success of test cases. One is a very precise oracle checking the concrete state of objects whereas the other one is based on the notion of state invariant (abstract states). Results show that there is a significant difference between them, both in terms of fault detection and cost. This is therefore an important choice to make that should be driven by the characteristics of the component to be tested, such as its criticality, complexity, and test budget.Keywords
This publication has 33 references indexed in Scilit:
- Assessing and improving state-based class testing: a series of experimentsIEEE Transactions on Software Engineering, 2004
- An empirical study of regression test selection techniquesACM Transactions on Software Engineering and Methodology, 2001
- Statechart testing method for aircraft control systemsSoftware Testing, Verification and Reliability, 2001
- Interface Mutation: an approach for integration testingIEEE Transactions on Software Engineering, 2001
- All-uses vs mutation testing: An experimental comparison of effectivenessJournal of Systems and Software, 1997
- Automatically generating test data from a Boolean specificationIEEE Transactions on Software Engineering, 1994
- An experimental comparison of the effectiveness of branch testing and data flow testingIEEE Transactions on Software Engineering, 1993
- A fortran language system for mutation‐based software testingSoftware: Practice and Experience, 1991
- The cost of data flow testing: an empirical studyIEEE Transactions on Software Engineering, 1990
- The category-partition method for specifying and generating functional testsCommunications of the ACM, 1988