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

面向对象程序的抽象类测试之研究
引用本文:刘冬梅,蒋立源.面向对象程序的抽象类测试之研究[J].微处理机,2008,29(4).
作者姓名:刘冬梅  蒋立源
作者单位:西北工业大学软件学院,西安,710072
摘    要:许多面向对象语言支持抽象类机制,抽象类是一种特殊的类,因为它本身不能被实例化,所以对抽象类的基于执行的测试就比测试一般具体类更复杂。测试一般类需要该类的实例,然后调用方法执行测试用例,并分析测试结果,而测试抽象类就不能直接这样做了。论文首先分析了抽象类的故障特征,并提出了抽象类测试的改进方法。

关 键 词:软件测试  面向对象程序  抽象类测试

Exploration of Abstract Class Testing in Object-Orionted Program
LIU Dong-mei,JIANG Li-yuan.Exploration of Abstract Class Testing in Object-Orionted Program[J].Microprocessors,2008,29(4).
Authors:LIU Dong-mei  JIANG Li-yuan
Abstract:Many Object-Oriented languages support Abstract class mechanism,Abstract class is a special class,because it has not any instances,this brings many problems for abstract class testing.So abstract class testing is not as simple as concrete class testing.To run a test against a concrete class,we need to have an instance of this class to work on.We usually call methods to execute test case and get values back if needed.But we cannot follow this way when we test abstract class.The report firstly analyses fault character of abstract class,then introduces three improved testing methods for abstract class.
Keywords:Software Testing  Object-Oriented Program  Abstract Class Testing
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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