基于Junit自动生成类测试案例框架的实现  被引量:7

The Implementation of Class Test Case Framework Automatically Generated Based on Junit

在线阅读下载全文

作  者:余波[1] 王树林[1] 张大方[1] 

机构地区:[1]湖南大学计算机与通信学院,长沙410082

出  处:《计算机工程与应用》2006年第1期89-91,共3页Computer Engineering and Applications

基  金:国家自然科学基金资助项目(编号:60473031)

摘  要:论文对Java程序的抽象类、包含内隐类的接口、其它内隐类和普通类的测试提出了不同的测试案例模式,结合Liskov替代原则对类测试的要求,实现一个基于Junit生成包含测试神谕的测试案例框架的工具。借助该工具,程序员在编写测试案例时,只需在自动生成的测试案例框架中添加测试数据就可获得完整的测试案例。This paper provides various patterns of test case,which aiming at the abstract class,interface including inner class,other inner class and normal class,for class test of a Java program.According to the patterns and the need of the Liskov substitution principle for class test,an automatic tool is implemented,and it can generate test case framework including test oracle based on Junit.With the generator,the programmers can only put test data into the framework of the test case to acquire a completed test case when they develop it.

关 键 词:类测试 单元测试 测试神谕 自动化测试工具 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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