Title :
A framework for specification-based class testing
Author :
Liu, Ling ; Miao, Huaikou ; Zhan, Xuede
Author_Institution :
Sch. of Comput. Eng. & Sci., Shanghai Univ., China
Abstract :
Class testing is the base of object-oriented software testing. It involves three aspects: testing each method, testing the relations among class methods and testing the inheriting relation between class and subclass. Rather than concerning the whole class testing process, most specification-based class testing focuses on the methods of generating test cases from the class specification. As a result, the class testing process and test cases cannot be unified and managed in a consistent and convenient way. This paper introduces a test class framework (TCF) that is used to structure the test cases and test deriving process of the class under testing. This framework clearly denotes the process of deriving test cases and test suites from a class specification. It facilitates the construction and management of test cases. Object-Z notation is used to express the framework and class specification.
Keywords :
finite state machines; formal specification; object-oriented programming; program testing; specification languages; Object-Z; class methods; class specification; finite state machine; object-oriented software testing; specification-based class testing; state transition tree; test case generation; test class framework; Automata; Computer bugs; Costs; Formal specifications; Object oriented modeling; Partitioning algorithms; Programming; Software maintenance; Software testing; System testing;
Conference_Titel :
Engineering of Complex Computer Systems, 2002. Proceedings. Eighth IEEE International Conference on
Conference_Location :
Greenbelt, MD, USA
Print_ISBN :
0-7695-1757-9
DOI :
10.1109/ICECCS.2002.1181508