Generating test data for branch coverage
Neelam Gupta, Aditya P. Mathur, Mary Lou Soffa · 2000
Branch coverage is an important criteria used during the structural testing of programs. We present a new program execution based approach to generate input data that exercises a selected branch in a program. The test data generation is initiated with an arbitrarily chosen input from the input domain of the program. A new input is derived from the initial input in an attempt to force execution through any of the paths through the selected branch. The method dynamically switches among the paths that reach the branch by refining the input. Using a numerical iterative technique that attempts to generate an input to exercise the branch, it dynamically selects a path that offers less resistance. We have implemented the technique and present experimental results of its performance for some programs. Our results show that our method is feasible and practical.
Cited by 130 works. doi:10.1109/ase.2000.873666
Authors
References
- A System to Generate Test Data and Symbolically Execute Programs
- Automated software test data generation
- Constraint-based automatic test data generation
- The chaining approach for software test data generation
- A dynamic approach of test data generation
- Automatic test data generation using constraint solving techniques
- Automated test data generation using an iterative relaxation method
- ADTEST: a test data generation suite for Ada software systems
- UNA based iterative test data generation and its evaluation
- An applicable test data generation algorithm for domain errors