|
计算机科学 2005
An Framework of Automated Class Test Driver Program Construction
|
Abstract:
The test driver must be constructed to run test case and collect test result at the class test level. So the cost of constructing a driver will have direct influence on the class test. This paper presents a framework to construct class test driver automatically. The design of the framework adopts the Object oriented Polymorphism. In the frame- work, firstly, by inheriting the TestDriver and overriding the virtual function of the TestDriver, the driver class of CUT(class under test)will be produced; and then the driver of the CUT will be registered in the main control pro- gram. Finally, the driver of the CUT will be constructed correctly. In the end, this paper presents an instance to show the feasibility of the framework.