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

基于Junit自动生成类测试案例框架的实现
引用本文:余波,王树林,张大方. 基于Junit自动生成类测试案例框架的实现[J]. 计算机工程与应用, 2006, 42(1): 89-91
作者姓名:余波  王树林  张大方
作者单位:湖南大学计算机与通信学院,长沙,410082;湖南大学计算机与通信学院,长沙,410082;湖南大学计算机与通信学院,长沙,410082
摘    要:论文对Java程序的抽象类、包含内隐类的接口、其它内隐类和普通类的测试提出了不同的测试案例模式,结合Liskov替代原则对类测试的要求,实现一个基于Junit生成包含测试神谕的测试案例框架的工具。借助该工具,程序员在编写测试案例时,只需在自动生成的测试案例框架中添加测试数据就可获得完整的测试案例。

关 键 词:类测试  单元测试  测试神谕  自动化测试工具
文章编号:1002-8331-(2006)01-0089-03

The Implementation of Class Test Case Framework Automatically Generated Based on Junit
Yu Bo,Wang Shulin,Zhang Dafang. The Implementation of Class Test Case Framework Automatically Generated Based on Junit[J]. Computer Engineering and Applications, 2006, 42(1): 89-91
Authors:Yu Bo  Wang Shulin  Zhang Dafang
Affiliation:School of Computer and Communication,Hunan University,Changsha 410082
Abstract: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.
Keywords:class test  unit test  test oracle  automatic test tool
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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