DocumentCode :
3231721
Title :
Automated generation of test programs from closed specifications of classes and test cases
Author :
Leow, Wee Kheng ; Khoo, Siau Cheng ; Sun, Yi
Author_Institution :
Dept. of Comput. Sci., National Univ. of Singapore, Singapore
fYear :
2004
fDate :
23-28 May 2004
Firstpage :
96
Lastpage :
105
Abstract :
Most research on automated specification-based software testing has focused on the automated generation of test cases. Before a software system can be tested, it must be set up according to the input requirements of the test cases. This setup process is usually performed manually, especially when testing complex data structures and databases. After the system is properly set up, a test execution tool runs the system according to the test cases and pre-recorded test scripts to obtain the outputs, which are evaluated by a test evaluation tool. This paper complements the current research on automated specification-based testing by proposing a scheme that combines the setup process, test execution, and test validation into a single test program for testing the behavior of object-oriented classes. The test program can be generated automatically given the desired test cases and closed specifications of the classes. With closed specifications, every class method is defined in terms of other methods which are, in turn, defined in their own class specifications. The core of the test program generator is a partial-order planner which plans the sequence of instructions required in the test program. The planner is, in turn, implemented as a tree-search algorithm. It makes function calls to the Omega Calculator library, which solves the constraints given in the test cases. A first-cut implementation of the planner has been completed, which is able to handle simple arithmetics and existential quantifications in the class specifications. A soundness and completeness proof sketch of the planner is also provided in this paper.
Keywords :
automatic programming; automatic test pattern generation; data structures; formal specification; object-oriented programming; program testing; tree searching; Omega Calculator library; automated specification-based testing; automated test program generation; classes specifications; object-oriented classes; program testing; software testing; test cases specifications; test validation; tree-search algorithm; Arithmetic; Automatic programming; Automatic testing; Data structures; Databases; Libraries; Performance evaluation; Software systems; Software testing; System testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Engineering, 2004. ICSE 2004. Proceedings. 26th International Conference on
ISSN :
0270-5257
Print_ISBN :
0-7695-2163-0
Type :
conf
DOI :
10.1109/ICSE.2004.1317432
Filename :
1317432
Link To Document :
بازگشت