节点文献
一种用于类测试的新方法
A New Method Used in Class Testing
【摘要】 面向对象程序的复杂性和类对象间广泛的相互依赖性使得对这样的程序的测试变得非常困难,而类又是面向对象测试中最基本的单元。对类的测试又可以分为3个级别(方法内测试,方法间测试,类内测试),难点主要集中在类内测试上。文章提出一种基于OSD(对象状态图)的新的算法用来产生进行类内测试的方法调用序列。这种算法是对传统的类测试的两种方法基于规格说明的测试和数据流测试的综合,可以使产生测试用例的复杂度大大的降低。
【Abstract】 The complexity and interdependencies of object-oriented programs makes testing such programs difficult.This paper analyzes the testing of classes of object-oriented programs which fall into three levels:intra-method testing,inter-method testing,intra-class testing.The paper then focus on intra-class testing by presenting a new method that is an integration of dataflow testing and state testing based on OSD to produce method invocation sequences for intra-class testing.
【关键词】 类的状态变量;
原子类状态图;
复合类状态图;
方法内测试;
方法间测试;
类内测试;
类内引用-调用对;
【Key words】 state variable; AOSD; COSD; intra-method testing; inter-method testing; intra-class testing; intra-class def-use pair;
【Key words】 state variable; AOSD; COSD; intra-method testing; inter-method testing; intra-class testing; intra-class def-use pair;
- 【文献出处】 计算机工程与应用 ,Computer Engineering and Applications , 编辑部邮箱 ,2003年09期
- 【分类号】TP311.52
- 【被引频次】4
- 【下载频次】52