Test input generation with java PathFinder
Willem Visser, Corina S. Păsăreanu, Sarfraz Khurshid D · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · 2004
We show how model checking and symbolic execution can be used to generate test inputs to achieve structural coverage of code that manipulates complex data structures. We focus on obtaining branch-coverage during unit testing of some of the core methods of the red-black tree implementation in the Java TreeMap library, using the Java PathFinder model checker. Three different test generation techniques will be introduced and compared, namely, straight model checking of the code, model checking used in a black-box fashion to generate all inputs up to a fixed size, and lastly, model checking used during white-box test input generation. The main contribution of this work is to show how efficient white-box test input generation can be done for code manipulating complex data, taking into account complex method preconditions.
Cited by 501 works. doi:10.1145/1007512.1007526
Authors
References
- Introduction to Algorithms
- Introduction to Algorithms
- Model checking
- The Massachusetts Institute of Technology
- Symbolic execution and program testing
- Software Testing Techniques
- Toward a theory of test data selection
- A System to Generate Test Data and Symbolically Execute Programs
- Software testing techniques
- Bandera