首页 | 本学科首页   官方微博 | 高级检索  
     

基于面向对象程序代码的类测试技术
引用本文:郑学军,王春森.基于面向对象程序代码的类测试技术[J].计算机工程与设计,1996,17(6):58-64.
作者姓名:郑学军  王春森
作者单位:复旦大学计算机科学系
摘    要:面向对象软件的基本测试单元是类,文中提出了用一种基于代码的测试技术-数据流测试来全面地测试类。对类测试分为3级:单个成员函数的测试;公有成员函数的测试;公有成员函数接口的测试。

关 键 词:程序代码  类测试  面向对象

A Class Testing Technique Based onObject-Oriented Program Code
Zheng Xuejun,Wang Chunsen.A Class Testing Technique Based onObject-Oriented Program Code[J].Computer Engineering and Design,1996,17(6):58-64.
Authors:Zheng Xuejun  Wang Chunsen
Abstract:Class is a basic testing unit of object-oriented software. This paper presents a code-based testing technique(data flow testing) which can widely test classes. Testing class includes three levels: testing a member function; testing a public member functon; and testing an interface between public member functions. Most of exiting data flow testing may test the first two levels. Improved data flow testing can be used to test the third level.It is possible to calculate data flow information through constructing a class control flow graph. Even if there is no specification, this technique can decide the calling order of the member functions being called. We can test class in term of this order. This technique may be automated.
Keywords:Object-oriented  programming  Data  flow  testing  Encapsulation  Data  flow  information  Class  control  flow  graph  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号