TTCN-3 Test Architecture Based on Port-oriented Design and Assembly Language Implementation

The TTCN-3(Testing and Test Control Notation version 3)[1-2] based test systems are widely used for protocol testing in various technical system, but fall to be inefficient in both compiling and running, since the implementation are primarily based on high-level programming language and interpretation-execution mechanism. Viewing the test system as ports state system, this paper proposes a port-oriented, and compiling running mechanism based TTCN-3 test system, which is implemented primarily by assembly programming language. The test process is divided into the implementation of a series of two phases: the first test phase is environment computation which is implemented by assembly language necessary for the following port operations and the second phase is corresponding port operations which can be implemented by higher-level programming language. The assembly language implementation for the TTCN-3 abstract test suit allows much more computational optimizations at a lower level, and the compiling-running mechanism outperforms the performance of interpretation-execution mechanism by saving the efforts for compiling whenever the TS is executed and CPU's sources for interpretation during runtime. Keywords-TTCN-3,Test System, Protocol conformance testing