检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.159