基于面向对象程序代码的类测试技术  

A Class Testing Technique Based onObject-Oriented Program Code

在线阅读下载全文

作  者:郑学军[1] 王春森[1] 

机构地区:[1]复旦大学计算机科学系

出  处:《计算机工程与设计》1996年第6期58-64,共7页Computer Engineering and Design

摘  要:面向对象软件的基本测试单元是类,文中提出了用一种基于代码的测试技术——数据流测试来全面地测试类。对类测试分为3级:单个成员函数的测试;公有成员函数的测试;公有成员函数间接口的测试。大多数现有的数据流测试可以对前两级进行测试,作者利用改进的数据流测试来测试第3级,通过构造类控制流图来计算数据流信息。这种技术即使在无规格说明的情况下也可以决定类中成员函数间消息传递的次序,根据这种次序来测试类。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.

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

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象