DOI QR코드

DOI QR Code

An Automatic Testing Method for EJB Components based on In-Container Testing Strategy

컨테이너 내부 테스팅 전략 기반의 EJB 컴포넌트 테스트 자동화 방법

  • Kuk, Seung-Hak (2-TICN, Agency for Defense Development) ;
  • Kim, Hyeon Soo (Dept. of Computer Science & Engineering, Chungnam National University)
  • Received : 2014.02.05
  • Accepted : 2015.03.13
  • Published : 2015.04.30

Abstract

Component technologies which enable quickly and effectively to develop software have begun to come into the spotlight since early 1990s. Currently, a number of software development works are performed on the J2EE/EJB environment. However component testing is a very complicated task, in addition it requires more efforts than the previous Java class testing. Thus many developers do not perform sufficiently testing works. In this paper we propose an automatic testing method for EJB components based on the in-container testing strategy and implement a testing tool. Since our method builds automatically the test environment for EJB components, it is possible for developers or testers to save their time and efforts at the test preparation phase. Therefore we are convinced that the reliability of EJB components can be increased through sufficient testings with our method.

컴포넌트 기술은 소프트웨어를 신속하고, 효과적으로 개발할 수 있는 대안으로 90년대 초반부터 각광 받기 시작하였으며, 현재 컴포넌트 중심의 애플리케이션은 대부분 J2EE/EJB 컴포넌트 환경을 이용하여 개발되고 있다. 그러나 EJB 컴포넌트를 테스트하는 것은 기존의 자바 클래스의 테스트보다 더 많은 노력이 필요하며, 어려운 작업이기 때문에 대부분 충분한 테스트가 수행되지 않는 문제점이 있다. 이에 본 논문에서는 컨테이너 내부 테스팅 전략 기반의 EJB 컴포넌트 테스트 자동화 방법을 제안하고, 도구를 구현한다. 본 논문에서 제안하는 방법은 EJB 컴포넌트의 테스트 환경을 자동으로 구축함으로써 테스트 과정에서 개발자 또는 사용자의 시간과 노력을 많이 줄여줄 수 있다. 이를 통해 EJB 컴포넌트 개발 과정에서 보다 더 많은 그리고 다양한 테스트의 수행을 가능하게 함으로써 컴포넌트의 신뢰도를 높일 수 있다.

Keywords

References

  1. E. J. Weyuker, "Testing Component-Based Software: A Cautionary Tale", IEEE Software, vol. 15, issue. 5, 1998, http://dx.doi.org/10.1109/52.714817
  2. Y. S. Ma, et. al., "Framework for Third Party Testing of EJB Component Software", Proc. of 8th Asia Pacific Software Engineering Conference, pp.431-434, 2001, http://dx.doi.org/10.1109/APSEC.2001.991511
  3. Sun Microsystems Inc., The $J2EE^{TM}$ Tutorial for the $Sun^{TM}$ ONE Platform, http://java.sun.com/j2ee/1.3/docs/tutorial/doc/
  4. Sun Microsystems Inc., Enterprise $JavaBeans^{TM}$ Specification, Version 2.0, http://download.oracle.com/otndocs/jcp/7294-ejb-2.0-fr2-spec-oth-JSpec/
  5. MockEJB, http://mockejb.sourceforge.net/
  6. JUnit, http://www.junit.org/
  7. Cactus, http://attic.apache.org/projects/jakarta-cactus.html
  8. JunitEE, http://sourceforge.net/projects/junitee/
  9. Scott W. Ambler, "A J2EE Testing Primer", http://www.drdobbs.com/a-j2ee-testing-primer/184414736
  10. Scott Stirling, "Testing J2EE applications", JavaWorld, Aug. 2004, http://www.javaworld.com/article/2072923/testing-debugging/testing-j2ee-applications.html
  11. Rod Johnson, "Expert One-on-One J2EE Design and Development", Wrox, 2002, http://www.wrox.com/WileyCDA/WroxTitle/Expert-One-on-One-J2EE-Design-and-Development.productCd-0764543857.html
  12. T. Mackinnon, S. Freeman, P. Craig, "Endo-Testing: Unit Testing with Mock Objects", in Extreme Programming Examined, Addison-Wesley, 2001, http://www.ccs.neu.edu/research/demeter/related-work/extreme-programming/MockObjectsFinal.PDF
  13. C. N. Oh, K. H. Lee, "Performance Measuring Method of Enterprise JavaBeans(EJB)", Proc. of KIISE Fall Conference, 2000, http://www.dbpia.co.kr/Article/450355
  14. H. J. Song, E. M. Choi, "Automated Generation of Wrapper to Test Components", Journal of KIISE: Software and Applications, vol. 32, no. 8, 2005, http://www.dbpia.co.kr/Article/505858
  15. H. J. Yoon, B. J. Choi, "A Testing Technique for Customized EJB Component", Journal of KIISE: Software and Applications, vol. 28, no. 3, 2001, http://www.dbpia.co.kr/Article/452067
  16. J. S. Kim, J. S. Kang, Y. S. Ma, Y. R. Kwon, "Component-based Software Testing Tool Using Test Data Generated From UML Models in XMI", Proc. of KIISE Spring Conference, 2002, http://www.dbpia.co.kr/Article/453905
  17. A. Orso, M. J. Harrold, D. Rosenblum, G. Rothermel, M. L. Soffa, H. S. Do, "Using Component Metacontentto Support the Regression Testing of Component-Based Software", Proc. of the IEEE Int'l Conference on Software Maintenance, Nov 2001, http://cse.unl.edu/-grother/papers/icsm01b.pdf
  18. J. Grundy, G. Ding, "Automatic Validation of Deployed J2EE Components Using Aspect", Proc. of the IEEE Int'l Conference on Automated Software Engineering, 2002, http://dx.doi.org/10.1109/ASE.2002.1114993
  19. M. Strembeck, U. Zdun, "Scenario-based Component Testing Using Embedded Metadata", Proc. of the Workshop on Testing of Component-based Systems, 2004, http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.84.9220&rep=rep1&type=pdf
  20. S. H. Edwards, "A framework for practical, automated black-box testing of component-based software", Journal of Software Testing, Verification and Reliability, 2001, http://dx.doi.org/10.1002/stvr.224
  21. JTB: Java Tree Builder, https://java.net/projects/jtb