检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]上海大学计算机工程与科学学院,上海200072
出 处:《计算机科学》2005年第3期159-161,185,共4页Computer Science
基 金:国家自然基金(编号:60173030)
摘 要:在类测试时,需要驱动程序来运行可执行的类测试用例并收集测试结果,因此驱动程序的开发工作量将直接影响类测试的效率。本文给出了一种类测试驱动程序的构造框架。利用面向对象技术的设计思想,设计了一个驱动基类,通过继承驱动基类,并覆盖驱动基类中的虚函数而生成一个被测类的驱动类。同时在主控程序中注册被测试类的驱动类,从而得到被测试类的驱动程序。最后通过一个实例,说明该驱动构造框架的可行性。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.
关 键 词:自动构造类 驱动程序 软件复杂度 软件测试 类测试
分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.4