As a test technology, TTCN-3 has be more and more familiar to people. It can not only implement conformance testing, but also be used for a variety of testing, including interoperability testing, robustness testing, regression testing, system and integration testing. TTCN-3 is a flexible and powerful language which is used to describe the test suit.TTCN-3 test system is composed of a number of entities, including TE, TM, CH, CD, TL, SA and PA. Under the management of TM, the interactions of the entities produced test task. The CD is the entity which takes a translation role. The CD is a bridge of data conversion between TTCN-3 test system and the system under test. The encoding/decoding is depended on test cases. To write encoding/decoding code for test cases is an essential work in test implementation.In this thesis, it brings out an implementation method of simplified CD entity. It automatically generated the encoding/decoding code with filled information. The main work of this thesis: (1) the design and implementation of the tool of the codec module. In order to automatically generate codec code, tool should include three such functions: interface module, generating code module, supporting library of generate code. (2) The implementation of TCI-CD. The provided interface of TCI-CD for TE is provided for TE to complete coding and decoding functions, and it requires the implementation of TCI-CD that are tciEncode and tciDecode based on the tool. |