18th International Conference on Software Engineering (ICSE'96)
Assertion-oriented automated test data generation
Berlin, GERMANY
March 25-March 29
ISBN: 0-8186-7246-3
B. Korel, Dept. of Comput. Sci., Illinois Inst. of Technol., Chicago, IL, USA
A.M. Al-Yami, Dept. of Comput. Sci., Illinois Inst. of Technol., Chicago, IL, USA
Assertions are recognized as a powerful tool for automatic run time detection of software errors. However, existing testing methods do not use assertions to generate test cases. We present a novel approach of automated test data generation in which assertions are used to generate test cases. In this approach the goal is to identify test cases on which an assertion is violated. If such a test is found then this test uncovers an error in the program. The problem of finding program input on which an assertion is violated may be reduced to the problem of finding program input on which a selected statement is executed. As a result, the existing methods of automated test data generation for white box testing may be used to generate tests to violate assertions. The experiments have shown that this approach may significantly improve the chances of finding software errors as compared to the existing methods of test generation.
Index Terms:
program testing; automatic programming; software engineering; assertion oriented automated test data generation; automatic run time detection; software errors; program input; automated test data generation; white box testing
Citation:
B. Korel, A.M. Al-Yami, "Assertion-oriented automated test data generation," icse, pp.71, 18th International Conference on Software Engineering (ICSE'96), 1996