From OpenTTCN DocZone
Article's permanent URL
Last modified February 12, 2008
Use of TTCN-2 test suites with TTCN-3 adapters
The concept of dynamic translations is used, i.e. the tool performs data type and value translations automatically when needed.
Dynamic translation rules
- automatic usage of TTCN-3 interfaces when an adapter is registered as 'TRI', 'TRI_SA', or 'TRI_PA' to a TTCN-2 test system
- translation of a set of TTCN-2 PCOs to a TTCN-3 test system interface
- translation of TTCN-2 PCOs to TTCN-3 'mixed' ports
- translation of TTCN-2 data types and values to TTCN-3 data types and values
- specifically, translation of TTCN-2 tabular type and values to TTCN-3 record type and values
- translation of TTCN-2 PDU type and constraints to TTCN-3 record type and templates
- translation of TTCN-2 ASP type and constraints to TTCN-3 signature and templates in the context of TTCN-2 SEND event translation to record in the context of TTCN-2 IMPLICIT SEND and user-defined operations
- automatic TTCN-3 calls - tool translates TTCN-2 events to corresponding TTCN-3 API calls and performs TTCN-3 API calls that have no TTCN-2 equivalents automatically when needed
- performance of triExecuteTestCase call in the beginning of TTCN-2 test case execution
- performance of triMap call in the beginning of TTCN-2 test case execution for all TTCN-2 PCOs
- usage of triSend call to send TTCN-2 and ASN.1 PDUs and ASN.1 ASPs
- usage of triEnqueueMsg call to enqueue received TTCN-2 and ASN.1 PDUs and ASN.1 ASPs
- usage of triCall call to send TTCN-2 ASPs
- usage of triEnqueueCall call to enqueue received TTCN-2 ASPs
- in the context of triCall and triEnqueueCall calls a TTCN-2 ASP is mapped to a parameter list of a call
- performance of triSUTActionTemplate call when TTCN-2 implicit send event is executed
- in the context of triSUTActionTemplate call a TTCN-2 ASP is mapped to a record
- performance of triExternalFunction call when TTCN-2 Test Suite Operation (TSO) is called
- in the context of triExternalFunction call a TTCN-2 ASP is mapped to a record
- performance of triUnmap call in the end of TTCN-2 test case execution for all TTCN-2 PCOs
- performance of triSAReset call in the end of TTCN-2 test case execution
- performance of triPAReset calls in the end of TTCN-2 test case execution, and
- TTCN-2 encoding and variant attributes, including subtype inheritance, are visible in a TTCN-3 adapter
- TTCN-2 encoding rule and variant information present in TTCN-2 ASN.1 typedefs and TTCN-2 ASN.1 PDU types is mapped to encode and variant attributes of a TTCN-3 typedef