검색 상세

유닛 테스트 자동화 프레임워크를 이용한 Mock Object 생성기법

Mock Object Generation Method by Automatic Unit Test Framework

초록/요약

최근에 소프트웨어의 개발 프로세스를 개선하여 소프트의 신뢰성과 질을 높이기 위한 노력이 많은 곳에서 이루어지고 있다. 본 논문에서는 우선 신뢰성을 높이기 위한 한 가지 방법인 유닛 테스트 기법에 대하여 연구하였다. 그리고 여러 가지 개발 환경 중 .Net 개발 환경 상에서 유닛 테스트를 자동화 할 수 있는 방안에 대하여 제안 하고 구현하였다. 유닛 테스트를 실제로 사용할 때는 테스트하기 어려운 오브젝트가 존재한다. 이러한 오브젝트의 유닛 테스트를 위하여 Mock Object 기법이 제안 되었다. 그러나 이러한 Mock Object를 개발자가 직접 제작해야 하기 때문에 많은 노력이 필요하다. 그러므로 본 논문에서는 Aspect Oriented Programming 기법을 사용하여 테스트하기 어려운 객체의 입력과 출력 정보를 저장하고 이를 바탕으로 Mock Object를 생성하는 기법을 제안한다.

more

초록/요약

Business enterprises have been trying to reduce defects in software development process by satisfying the software requirements specifications for a long time. As modern day systems are becoming more and more distributed and component oriented, the mapping of software requirements specification during software development process has become very complex. Unit testing is one of the most effective ways to test the components of a software system. In this paper, we design and implement an automation tool using unit testing which is applied in .Net development environments. During a software development process there comes situations where testing becomes a very difficult and expensive job i.e when one component relies on the other component that is not developed yet. In this situation, it becomes impossible to test a component without implementing the whole system. Many researchers proposed testing methods based on Mock object. Using mock objects is time consuming as testers or developers make a lot of effort to implement Mock object. We implement an automatic Mock object generation tool using Aspect Oriented Programming. It generates aspects automatically to save input and output information and make a Mock object to use that input and output information.

more

목차

제 1 장 서론 = 1
제 2 장 관련연구 = 4
제 2.1 절 xUnit Framework = 4
제 2.1.1 항 테스트 주도 개발 = 4
제 2.2 절 Reflection = 7
제 2.3 절 Aspect Oriented Programming = 9
제 2.4 절 Mock Object = 12
제 3 장 유닛 테스트 자동화 도구를 위한 프레임워크 = 13
제 3.1 절 기본 구조 = 13
제 3.2 절 유닛 테스트 자동화 도구 구현 메카니즘 = 15
제 4 장 Mock Object 생성 기법 = 16
제 4.1 절 Capture Phase = 16
제 4.2 절 Generation Phase = 18
제 4.3 절 Unit Test Phase = 19
제 5 장 구현 = 21
제 5.1 절 Aspect Generator = 21
제 5.2 절 Mock Object Generator = 25
제 5.3 절 Unit Test Generator = 26
제 6 장 구현 결과 = 28
제 7 장 결론 = 36
참고문헌 = 38
Abstract = 40

more