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

基于DbUnit的单元测试框架设计
引用本文:李英杰,宋晓静.基于DbUnit的单元测试框架设计[J].煤炭技术,2011,30(6).
作者姓名:李英杰  宋晓静
作者单位:保定职业技术学院,河北保定,071000
摘    要:DbUnit是一款开源的数据库功能测试框架,使用它可以对数据库的基本操作进行白盒单元测试,对输入输出进行校验,从而保证数据的有效性。DbUnit使用XML文件提供测试数据,为测试人员增加了测试难度,降低了单元测试效率。文章针对此种情况,介绍了如何基于DbUnit设计一个数据库单元测试框架,使用Excel文件提供测试数据,从而提高数据库单元测试的工作效率。

关 键 词:数据库单元测试  DbUnit  测试操作界面设计  测试框架数据库设计

DbUnit-based Design of Unit Testing Framework
LI Ying-jie,SONG Xiao-jing.DbUnit-based Design of Unit Testing Framework[J].Coal Technology,2011,30(6).
Authors:LI Ying-jie  SONG Xiao-jing
Affiliation:LI Ying-jie,SONG Xiao-jing(Baoding Vocational & Technical College,Baoding 071051,China)
Abstract:DbUnit is an open source testing framework for database functions,it can be used to carry out white box unit testing of database basic operation,verify input and output,to ensure the validity of data.Because DbUnit uses XML document as test data,it increased the difficulty of staff,reduced the efficiency of unit testing.Against the kinds of this situations,in this paper,we describes how to design a database unit testing framework that based on DbUnit,to provide test data using Excel files to improve the eff...
Keywords:DbUnit
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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