Consistency techniques for interprocedural test data generation
Nguyen Tran Sy, Yves Deville · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · 2003
This paper presents a novel approach for automated test data generation of imperative programs containing integer, boolean and/or float variables. It extends our previous work to programs with procedure calls and arrays. A test program (with procedure calls) is represented by an Interprocedural Control Flow Graph (ICFG). The classical testing criteria (statement, branch, and path coverage), widely used in unit testing, are extended to the ICFG. For path coverage, the specified path is transformed into a path constraint. Our previous consistency techniques, the core idea behind the solving of path constraints, have been extended to handle procedural calls and operations with arrays. For statement (and branch) coverage, paths reaching the specified node or branch are dynamically constructed. The search for suitable paths is guided by the interprocedural control dependences of the program. The search is also pruned by a new specialized consistency filter. Finally, test data are generated by the application of the proposed path coverage algorithm. A prototype has been implemented. Experiments show the feasibility of the approach.
Cited by 30 works. doi:10.1145/940071.940087
Authors
References
- Numerical recipes in C: the art of scientific computing
- Numerical recipes in Pascal: the art of scientific computing
- The program dependence graph and its use in optimization
- Symbolic execution and program testing
- A System to Generate Test Data and Symbolically Execute Programs
- Foundations of Constraint Satisfaction
- An Evaluation of Random Testing
- The chaining approach for software test data generation
- Test-data generation using genetic algorithms
- Automated test data generation using an iterative relaxation method