Test case generation based on invariant extraction

Fanping Zeng,Qing Cao,Liangliang Mao,Zhide Chen
DOI: https://doi.org/10.1109/WICOM.2009.5302578
2009-01-01
Abstract:Software testing is an effective way to find software errors. Generating a good test suite is the key. A program invariant is a property that is true at a particular program point or points. The property could reflect the program's execution over a test suite. Based on this point, we integrate the random test case generation technique and the invariant extraction technique, achieving automatic test case generation and selection. With the same invariants, compared with the traditional random test case generation technique, the experimental results show that the approach this paper describes can generate a smaller test suite.
What problem does this paper attempt to address?