TTCN-3 is a new test description language about protocols and software.It defined and standardized description languagean of abstract test suit, meanwhile described the TTCN-3 Operational Semantics and standardized the testing system interface between the various components.The many advantages of TTCN-3 may have enabled it to become a standardized description language in software development area.The description of the abstract test suit using TTCN-3 language only completed part of the test generation, the implementation of test need for an environment, namely testing system.The activities of test implementation is based on test data.Data is the most basic element in the TTCN-3 language.We defined data on the basic of data type.So to complete TTCN-3 test using the test environment, abstract data in the ATS must be mapped to the test platform.TTCN-3 predefined type,user-defined type and data is packaged into uniform format according to TTCN-3 Control Interface (TCI).In order to meet the TCI and TRI requirements and achieve the codec of message and the information communication between components,we implemented the subsystem of data type under the guide of this design mind. We implemented the express,storage and conversion of data and data type by the objected-oriented approach. We packaged the definition of data types, data and special data types - templates as class. First of all we have established the data structure of data and data type, secondly we implemented the various operation on the abstract data types and data.On the basic of upwards implemetation, we explain the process of ETS storage specific types, values and the template using data type subsystem. |