Automated Behavioral Regression Testing
Authors:
- Wei JinWJWei Jin
- Alessandro OrsoAOAlessandro Orso
- Tao XieTXTao Xie
- 1 January 2010
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 21594848,p. 137-146
Abstract
When a program is modified during software evolution, developers typically run the new version of the program against its existing test suite to validate that the changes made on the program did not introduce unintended side effects (i.e., regression faults). This kind of regression testing can be effective in identifying some regression faults, but it is limited by the quality of the existing test suite. Due to the cost of testing, developers build test suites by finding acceptable tradeoffs between cost and thoroughness of the tests. As a result, these test suites tend to exercise only a small subset of the program's functionality and may be inadequate for testing the changes in a program. To address this issue, we propose a novel approach called Behavioral Regression Testing (BERT). Given two versions of a program, BERT identifies behavioral differences between the two versions through dynamical analysis, in three steps. First, it generates a large number of test inputs that focus on the changed parts of the code. Second, it runs the generated test inputs on the old and new versions of the code and identifies differences in the tests' behavior. Third, it analyzes the identified differences and presents them to the developers. By focusing on a subset of the code and leveraging differential behavior, BERT can provide developers with more (and more detailed) information than traditional regression testing techniques. To evaluate BERT, we implemented it as a plug-in for Eclipse, a popular Integrated Development Environment, and used the plug-in to perform a preliminary study on two programs. The results of our study are promising, in that BERT was able to identify true regression faults in the programs.Keywords
This publication has 17 references indexed in Scilit:
- Guided path exploration for regression test generation2009
- Test-Suite Augmentation for Evolving Software2008
- Carving differential unit test cases from system test cases2006
- Isolating relevant component interactions with JINSI2006
- Augmenting Automatically Generated Unit-Test Suites with Regression Oracle Checking2006
- Automatic test factoring for java2005
- Selective capture and replay of program executions2005
- An empirical study of regression test selection techniques2002
- Prioritizing test cases for regression testingIEEE Transactions on Software Engineering, 2001
- Constraint-based automatic test data generationIEEE Transactions on Software Engineering, 1991