期刊文献+

轻量级Java EE框架下软件测试的应用研究 被引量:3

Research on Software Testing in Light-Weight Java EE Framework
下载PDF
导出
摘要 软件开发中,软件测试的作用越来越重要。目前,轻量级Java EE框架得到了广泛流行,如何在该框架下进行高效、方便的单元测试和集成测试,具有重要意义。从轻量级Java EE框架的特点出发,结合测试驱动开发(TDD)的理念,分析了采用Mock、EasyMock进行仿真单元测试的方法;利用依赖注入(DI)与事务管理进行集成测试;对Spring与Hibernate结合的一个集成测试问题,给出了运用面向切面编程的环绕通知的解决办法。文中总结的测试方法与经验,对于轻量级框架下的管理信息系统的测试准备、部署以及实施,能够显著提高效率,同时也有助于TDD团队的组织与合作。 Software testing plays a more and more important role in software development. At present, the light - weighted Java EE framework has been widely popular. In this framework, efficient and convenient unit testing and integration testing are of great significance. Based on the characteristics of light - weighted Java EE framework, combined with the idea of test - driven development (TDD), analyzes on using Mock, EasyMock to carry out simulation unit tests; makes the use of dependency injection (DI) and transaction manager to carry out integrated testing; a problem which occurs regularly in the integrated testing of Spring and Hibernate, is solved by the use of the around advice, one of the vital technologies in aspect - oriented programming (AOP). The test methods and experiences which are summed up in this article can significantly improve efficiency in test preparation, deployment and implementation of management information system under lightweight framework, also contribute to TDD team organization and cooperation.
出处 《计算机技术与发展》 2009年第9期115-118,185,共5页 Computer Technology and Development
基金 中央与地方高校共建实验室项目基金(301101000002) 南京工程学院科研基金项目(KXJ08071 KXJ08117)
关键词 软件测试 SPRING 测试驱动开发 注释 依赖注入 面向切面编程 software testing Spring TDD annotation dependeney injection AOP
  • 相关文献

参考文献6

二级参考文献70

  • 1黄宁,余莹,张大勇.Web服务软件测试技术的研究与实现[J].计算机工程与应用,2004,40(35):147-149. 被引量:18
  • 2WU Ye. Modeling and Testing Web-based Applications[R]. GMU, Tech Rep: ISE-TR-02-08, 2002.
  • 3Szperski C. Component Software: Beyond Object-oriented Programming[M]. 2nd ed. New York: ACM Press, 2002.
  • 4Grindal M, Lindstrom B, Offutt J. An Evaluation of Combination Strategies for Test Case Selection[J]. Empir. Software Eng., 2006, 11(4): 583-611.
  • 5Rook P. Controlling Software Projects[J]. Software Engineering Journal, 1986, 1(1): 7-16.
  • 6Legeard B, Peureux F, Utting M. Automated Boundary Testing from Z and B[C]//Proc. of Conf. on Formal Methods Europe. London, UK: Springer-Verlag, 2002: 21-40.
  • 7Tahat L, Vaysburg B, Koreland B, et al. Requirement-based Automated Black-box Test Generation[C]//Proc. of the 25th Ann. Conference on Int'l Computer Software and Applications. Chicago, Illinois, USA: [s. n.], 2001: 489-495.
  • 8Clementine N, Franck E Automatic Test Generation: A Use Case Driven Approach[J]. IEEE Transactions on Software Engineering, 2006, 32(3): 140-155.
  • 9Briand L, Labiche Y. A UML-based Approach to System Testing[J]. Software and Systems Modeling, 2002, 1(1): 10-42.
  • 10Castro-Leon E. A perspective on Web Services [EB/OL]. http://www. webservices, org/index. php/article/113/1/61/,2004

共引文献31

同被引文献23

  • 1朱菊,王志坚,杨雪.基于数据驱动的软件自动化测试框架[J].计算机技术与发展,2006,16(5):68-70. 被引量:69
  • 2Beck K.测试驱动开发(中文版)[M].孙平平译.北京:中国电力出版社,2004.
  • 3王晓毅.测试驱动开发的三项修炼-走出TDDMH[M]. 北京:清华大学出版社,2008.
  • 4Damm L O,Lundberg L. Quality impact of introducing component -level test automation and test - driven development [C]./LNCS 4764 : 14th European Conference on Software Process Improvement. Heidelberg, Germany: Springerlink, 2007:187-199.
  • 5Lau K K, Wang Z. Software component models [ J]. IEEE Transactions on Software Engineering, 2007,33 ( 10 ) : 709 -724.
  • 6Hunt A,Thomas D. Pragmatic Unit Testing in Java with Junit [M]. Raleigh,NC:The Pragmatic Programmers,2003.
  • 7Doungsa-ard C. Test data generation from UML state machine diagrams using gas [ C]./Proceeding of International Conference on Software Engineering Advances. USA : Springer ,2006 : 47-48.
  • 8李刚.轻量级Java EE企业应用实战[M]北京:电子工业出版社,2009.
  • 9徐会生;康爱嫒;何启伟.深入浅出ExtJS[M]北京:人民邮电出版社,2010.
  • 10Sencha. ExtJS 3.4 API Documentation[EB/OL].http://dev.sencha.com/deploy/ext-3.4.0/docs/,2011.

引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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