期刊文献+

存储过程自动化测试的实现

Research on Automated Testing of Stored Procedure
下载PDF
导出
摘要 存储过程的测试是一项非常繁琐的工作,一些数据库产品虽然提供了一些工具能够统计出存储过程的执行时间、返回记录数等信息,但是这些工具不能进行批量的重复的测试,而且测试结果的显示也不直观。针对这些问题,介绍了在Junit测试框架下实现存储过程自动化测试的方法,利用JUnit的自动化和生成的测试代码的复用,可实现存储过程的回归测试,利用XML技术存储测试用例和测试结果,实现测试用例和测试代码分离,提高了测试效率,为开发人员提供了直观的测试结果。 Stored procedure test is an extremely tedious work.Some database products provide some tools to be able to make the statistics of the execution time of a stored procedure,the number of records and other information,but these tools can not carry on batch and repeated testing.Moreover,the test result is not intuitive.This paper describes the implementation scheme of stored procedure automation test under the junit framework.The code-reuse technique based automatic testing framework of Junit realizes the regression testing of procedure.The test cases are described and organized using XML to realize the separation between code and data in order to improve efficiency of test,and the test result using XML provides developers with an intuitive notation.
作者 马竹根 MA Zhu-gen(Department of Computer Science and Technology,Huaihua University,Huaihua 418008,China)
出处 《电脑知识与技术》 2009年第12X期10252-10253,共2页 Computer Knowledge and Technology
关键词 存储过程 自动化测试 测试用例 Junit框架 XML stored procedure software automation testing test case junit framework XML
  • 相关文献

参考文献5

二级参考文献20

  • 1陈盈学.用JUnit进行单元测试[J].程序员,2002(7):59-62. 被引量:1
  • 2孔亮亮,殷兆麟.Java类测试工具Junit的分析与扩展[J].计算机工程与设计,2005,26(12):3413-3416. 被引量:7
  • 3余波,王树林,张大方.基于Junit自动生成类测试案例框架的实现[J].计算机工程与应用,2006,42(1):89-91. 被引量:7
  • 4Gamma Erich,Kent Beck.Junit version3.8.1[CP/OL].http://www.junit.org.
  • 5McGregor JohnD,SykesDavidA.面向对象的软件测试[M].北京:机械工业出版社,2002.50-53.
  • 6Clark Mike.Junit primer[EB/OL].http://www.clarkware.com/articles/JUnitPrimer.html.
  • 7Massol Vincent,Husted Ted.Junit in action[EB/OL].http://www.ebookcn.net.
  • 8Stewart Simon.Approaches to mocking [EB/OL].2004-02-11.http://www.onj ava.com/pub/a/onj ava/mocks.htnl.
  • 9Mackinnon Tim,Freeman Steve,Craig Philip.Endo-testing:Unit testing with mock objects [EB/OL] .http://www.connextra.com/aboutUs/mockobjects.pdf.
  • 10Ivar Jacoboson.Object-Oriented Software Engineering:A Use Case Driven Appmach[M]英文版[M].北京:人民邮电出版社,2003-09..

共引文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部