Papers/Others

Automatic Test Case, Test Data Generation

tomato13 2008. 8. 7. 10:48

1. A Code Generation Framework for Actor-Oriented Models with Partial Evaluation

ptolemy.eecs.berkeley.edu/publications/papers/07/codegen/codegen.pdf

 

논문은 제목에서와 같이 Model 기반의 Code Generation방안을 설명합니다. 본 연구는 Ptolemy라는 도구(made by Berkeley)에서 일부 기능을 개선한 내용을 다루고 있습니다. Ptolemy의 주요 기능은 graphic model을 기반으로 code를 generation 해 줍니다. Model의 단위는 component입니다. 기존 object oriented programming에서의 object와 비교하여 component는 data를 입력 받아 data를 출력하는 형태인 것이 주요 차이라고 설명합니다. 이러한 특성 때문에 multi-thread기반 concurrency programming에 있어서 bug를 발생 가능성을 줄일 수 있다고 설명합니다. 이 가운데 논문에서 주요하게 다루는 내용은 code를 어떻게 optimizing하게 생성할 수 있는가 입니다. 논문에서는 이를 위해서 Helper라는 것을 설명하고 이를 ‘Helper-based architecture’라고 이름을 붙였습니다. Helper는 두 가지로 구성이 되는데 하나는 생성되는 target code를 위한 template file입니다. 또 하나는 template 내부의 매크로 내역을 정의하고 실제 code를 생성하는 파일(프로그램)입니다. 간단하게 정리하면 template을 기반으로 보다 optimizing한 code를 생성할 수 있다는 얘기인 것 같습니다.

 

2.      A Semi-Automatic Generator for Unit Testing Code Files Based on JUnit

ieeexplore.ieee.org/iel5/10498/33254/01571135.pdf?arnumber=1571135

 

본 논문은 JUnit 기반의 Test code generation방법을 설명합니다. 생성된 코드의 예는 아래와 같으며 일종의 semi-automation입니다. 실제 user가 별도로 구현해 주어야 하는 내용들이 있게 됩니다.