SIST ES 201 873-5 V4.8.1:2017
(Main)Methods for Testing and Specification (MTS) - The Testing and Test Control Notation version 3 - Part 5: TTCN-3 Runtime Interface (TRI)
General Information
- Abstract
The present document provides the specification of the runtime interface for TTCN-3 test system implementations. The
TTCN-3 Runtime Interface provides a standardized adaptation for timing and communication of a test system to a
particular processing platform and the system under test, respectively. The present document defines the interface as a
set of operations independent of target language.
The interface is defined to be compatible with the TTCN-3 standard (see ETSI ES 201 873-1 [2]). The present
document uses the CORBA Interface Definition Language (IDL) to specify the TRI completely. Clauses 6, 7 and 8
present language mappings for this abstract specification to the target languages JavaTM, ANSI C, and C++. A summary
of the IDL based interface specification is provided in annex A.
NOTE: JavaTM is the trade name of a programming language developed by Oracle Corporation. This information
is given for the convenience of users of the present document and does not constitute an endorsement by
ETSI of the programming language named. Equivalent programming languages may be used if they can
be shown to lead to the same results.
- Status
- Published
- Publication Date
- 07-Aug-2017
- Technical Committee
- SPN - Services and Protocols for Networks
- Current Stage
- 6060 - National Implementation/Publication (Adopted Project)
- Start Date
- 10-Jul-2017
- Due Date
- 14-Sep-2017
- Completion Date
- 08-Aug-2017
Buy Documents
ETSI ES 201 873-5 V4.8.1 (2017-03) - Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)
ETSI ES 201 873-5 V4.8.1 (2017-05) - Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)
Overview
SIST ES 201 873-5 V4.8.1:2017 defines the TTCN-3 Runtime Interface (TRI), supporting standardized interaction between TTCN-3 test systems and their execution environments. This Slovenian standard, which is aligned with ETSI ES 201 873-5 V4.8.1, specifies an interface facilitating the adaptation of TTCN-3 testing to various processing platforms and systems under test (SUTs). The standard enables test systems to utilize consistent timing and communication mechanisms regardless of the underlying hardware or software platform.
The TRI specification is target-language independent and is formally described using CORBA Interface Definition Language (IDL). Furthermore, it provides practical mapping guidelines for Java, ANSI C, C++, and C# to encourage broad adoption across different development environments.
Keywords: TTCN-3, runtime interface, TRI, test systems, standard interface, platform adaptation, test automation, telecommunication testing.
Key Topics
- TTCN-3 Test System Architecture: Explains the structure of TTCN-3 test systems, identifying main entities such as Test Management and Control (TMC), TTCN-3 Executable (TE), SUT Adapter (SA), and Platform Adapter (PA).
- TRI Interface Operations: A comprehensive set of operations that standardize communication, error handling, connection management, and timer control during runtime.
- IDL-Based Specification: TRI’s standardized behavior is captured using CORBA IDL, ensuring language independence and clarity.
- Language Mappings: Detailed guidance on implementing the TRI in Java, ANSI C, C++, and C#, illustrating how to achieve conformity to the TRI specification within popular programming ecosystems.
- Timing and Communication: Outlines how timing events and message exchanges are managed between test components and the system under test, crucial for reliable and repeatable test execution.
Applications
- Telecommunications Testing: Facilitates the use of TTCN-3 in automating conformance, interoperability, and regression tests for telecom protocols and network elements, ensuring alignment with industry standards.
- Cross-Platform Test Automation: Enables the same TTCN-3 test suites to run across different platforms and operating systems by providing a common runtime interface abstraction.
- System Integration: Supports the integration of TTCN-3 test systems with diverse SUTs, adapting to various technology stacks without the need for bespoke interface code.
- Efficient Test Management: By standardizing communication and timing, the TRI enhances the reliability and maintainability of large-scale automated test campaigns.
Organizations implementing TTCN-3 benefit from rapid deployment, lower maintenance, and improved test repeatability when leveraging the TRI, especially in environments with heterogeneous system architectures.
Related Standards
- ETSI ES 201 873-1: Base specification for TTCN-3, detailing the core Testing and Test Control Notation version 3.
- SIST ES 201 873 series: Covers related parts, including TTCN-3 core language and various extensions.
- CORBA IDL: Referenced as the formalism for defining TRI, ensuring compatibility with distributed and multi-language test environments.
- Relevant ITU-T and ISO Standards: For broader context in telecommunications conformance and interoperability testing frameworks.
By adhering to SIST ES 201 873-5 V4.8.1:2017 and the TTCN-3 TRI, test system developers and users ensure consistency, interoperability, and future-proofing for automated testing in telecommunications and beyond.
Buy Documents
ETSI ES 201 873-5 V4.8.1 (2017-03) - Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)
ETSI ES 201 873-5 V4.8.1 (2017-05) - Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)
Get Certified
Connect with accredited certification bodies for this standard

ANCE
Mexican certification and testing association.

Intertek Slovenia
Intertek testing, inspection, and certification services in Slovenia.
LNE (Laboratoire National de Métrologie et d'Essais)
French national laboratory for metrology and testing.
Sponsored listings
Frequently Asked Questions
SIST ES 201 873-5 V4.8.1:2017 is a standard published by the Slovenian Institute for Standardization (SIST). Its full title is "Methods for Testing and Specification (MTS) - The Testing and Test Control Notation version 3 - Part 5: TTCN-3 Runtime Interface (TRI)". This standard covers: The present document provides the specification of the runtime interface for TTCN-3 test system implementations. The TTCN-3 Runtime Interface provides a standardized adaptation for timing and communication of a test system to a particular processing platform and the system under test, respectively. The present document defines the interface as a set of operations independent of target language. The interface is defined to be compatible with the TTCN-3 standard (see ETSI ES 201 873-1 [2]). The present document uses the CORBA Interface Definition Language (IDL) to specify the TRI completely. Clauses 6, 7 and 8 present language mappings for this abstract specification to the target languages JavaTM, ANSI C, and C++. A summary of the IDL based interface specification is provided in annex A. NOTE: JavaTM is the trade name of a programming language developed by Oracle Corporation. This information is given for the convenience of users of the present document and does not constitute an endorsement by ETSI of the programming language named. Equivalent programming languages may be used if they can be shown to lead to the same results.
The present document provides the specification of the runtime interface for TTCN-3 test system implementations. The TTCN-3 Runtime Interface provides a standardized adaptation for timing and communication of a test system to a particular processing platform and the system under test, respectively. The present document defines the interface as a set of operations independent of target language. The interface is defined to be compatible with the TTCN-3 standard (see ETSI ES 201 873-1 [2]). The present document uses the CORBA Interface Definition Language (IDL) to specify the TRI completely. Clauses 6, 7 and 8 present language mappings for this abstract specification to the target languages JavaTM, ANSI C, and C++. A summary of the IDL based interface specification is provided in annex A. NOTE: JavaTM is the trade name of a programming language developed by Oracle Corporation. This information is given for the convenience of users of the present document and does not constitute an endorsement by ETSI of the programming language named. Equivalent programming languages may be used if they can be shown to lead to the same results.
SIST ES 201 873-5 V4.8.1:2017 is classified under the following ICS (International Classification for Standards) categories: 33.040.01 - Telecommunication systems in general. The ICS classification helps identify the subject area and facilitates finding related standards.
SIST ES 201 873-5 V4.8.1:2017 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.
Standards Content (Sample)
Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
ETSI STANDARD
Methods for Testing and Specification (MTS);
The Testing and Test Control Notation version 3;
Part 5: TTCN-3 Runtime Interface (TRI)
2 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
Reference
RES/MTS-201873-5 T3ed481TRI
Keywords
interface, methodology, runtime, testing, TRI,
TTCN-3
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search
The present document may be made available in electronic versions and/or in print. The content of any electronic and/or
print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any
existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the
print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
https://portal.etsi.org/TB/ETSIDeliverableStatus.aspx
If you find errors in the present document, please send your comment to one of the following services:
https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification
No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying
and microfilm except as authorized by written permission of ETSI.
The content of the PDF version shall not be modified without the written authorization of ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 2017.
All rights reserved.
TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.
TM
3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.
ETSI
3 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
Contents
Intellectual Property Rights . 8
Foreword . 8
Modal verbs terminology . 8
Introduction . 8
1 Scope . 9
1.1 Scope of the present document . 9
1.2 Compliance. 9
2 References . 9
2.1 Normative references . 9
2.2 Informative references . 10
3 Definitions and abbreviations . 10
3.1 Definitions . 10
3.2 Abbreviations . 11
4 General Structure of a TTCN-3 Test System . 12
4.1 Entities in a TTCN-3 test system . 12
4.1.0 Types of entities . 12
4.1.1 Test Management and Control (TMC). 13
4.1.1.0 Test Management and Control Entities . 13
4.1.1.1 Test Management (TM) . 13
4.1.1.2 Test Logging (TL) . 13
4.1.1.3 Coding and Decoding (CD) . 13
4.1.1.4 Component Handling (CH) . 13
4.1.2 TTCN-3 Executable (TE) . 13
4.1.2.0 TTCN-3 Executable Entity . 13
4.1.2.1 Executable Test Suite (ETS) . 13
4.1.2.2 TTCN-3 RunTime System (T3RTS) . 14
4.1.2.3 Encoding/Decoding System (EDS) . 14
4.1.2.4 Timers in the TTCN-3 Executable . 14
4.1.3 SUT Adaptor (SA) . 14
4.1.4 Platform Adaptor (PA) . 15
4.2 Interfaces in a TTCN-3 Test System . 15
4.3 Execution requirements for a TTCN-3 test system . 15
5 TTCN-3 Runtime Interface and operations . 16
5.1 Overview of the TRI. 16
5.1.0 Sub-interfaces . 16
5.1.1 The triCommunication Interface . 16
5.1.2 The triPlatform Interface . 16
5.1.3 Correlation between TTCN-3 and TRI Operation Invocations . 16
5.2 Error handling . 17
5.2.0 Basic rules . 17
5.2.1 triSAErrorReq (SA → TE) . 18
5.2.2 triPAErrorReq (PA → TE) . 18
5.3 Data interface . 18
5.3.0 Basic rules . 18
5.3.1 Connection . 18
5.3.2 Communication . 19
5.3.3 Timer . 20
5.3.4 Miscellaneous . 20
5.4 Operation descriptions . 20
5.5 Communication interface operations . 21
5.5.1 triSAReset (TE → SA) . 21
5.5.2 Connection handling operations . 21
5.5.2.1 triExecuteTestCase (TE → SA) . 21
ETSI
4 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
5.5.2.2 triMap (TE → SA) . 21
5.5.2.3 triMapParam (TE → SA) . 22
5.5.2.4 triUnmap (TE → SA) . 22
5.5.2.5 triUnmapParam (TE → SA) . 23
5.5.2.6 triEndTestCase (TE → SA) . 23
5.5.3 Message based communication operations . 24
5.5.3.1 triSend (TE → SA) . 24
5.5.3.2 triSendBC (TE → SA) . 24
5.5.3.3 triSendMC (TE → SA) . 25
5.5.3.4 triEnqueueMsg (SA → TE) . 25
5.5.4 Procedure based communication operations . 26
5.5.4.1 triCall (TE → SA) . 26
5.5.4.2 triCallBC (TE → SA) . 27
5.5.4.3 triCallMC (TE → SA) . 28
5.5.4.4 triReply (TE → SA) . 29
5.5.4.5 triReplyBC (TE → SA) . 30
5.5.4.6 triReplyMC (TE → SA) . 31
5.5.4.7 triRaise (TE → SA) . 31
5.5.4.8 triRaiseBC (TE → SA) . 32
5.5.4.9 triRaiseMC (TE → SA) . 32
5.5.4.10 triEnqueueCall (SA → TE) . 33
5.5.4.11 triEnqueueReply (SA → TE) . 33
5.5.4.12 triEnqueueException (SA → TE) . 34
5.5.5 Miscellaneous operations . 34
5.5.5.1 triSUTactionInformal (TE → SA) . 34
5.6 Platform interface operations . 34
5.6.1 triPAReset (TE → PA) . 34
5.6.2 Timer operations . 35
5.6.2.1 triStartTimer (TE → PA) . 35
5.6.2.2 triStopTimer (TE → PA). 35
5.6.2.3 triReadTimer (TE → PA) . 35
5.6.2.4 triTimerRunning (TE → PA) . 36
5.6.2.5 triTimeout (PA → TE) . 36
5.6.3 Miscellaneous operations . 37
5.6.3.1 triExternalFunction (TE → PA) . 37
5.6.3.2 triSelf (PA → TE) . 37
5.6.3.3 triRnd (PA → TE) . 37
TM
6 Java language mapping . 38
6.1 Introduction . 38
6.2 Names and scopes . 38
6.2.1 Names . 38
6.2.2 Scopes . 38
6.3 Type mapping . 38
6.3.1 Basic type mapping . 38
6.3.1.0 IDL type mapping . 38
6.3.1.1 Boolean . 39
6.3.1.2 String . 39
6.3.2 Structured type mapping . 39
6.3.2.0 Mapping rules . 39
6.3.2.1 TriPortIdType . 39
6.3.2.2 TriPortIdListType . 40
6.3.2.3 TriComponentIdType . 40
6.3.2.4 TriComponentIdListType . 41
6.3.2.5 TriMessageType . 41
6.3.2.6 TriAddressType . 42
6.3.2.7 TriAddressListType . 42
6.3.2.8 TriSignatureIdType . 43
6.3.2.9 TriParameterType . 43
6.3.2.10 TriParameterPassingModeType . 44
ETSI
5 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
6.3.2.11 TriParameterListType . 44
6.3.2.12 TriExceptionType . 45
6.3.2.13 TriTimerIdType . 45
6.3.2.14 TriTimerDurationType . 45
6.3.2.15 TriFunctionIdType . 46
6.3.2.16 TriTestCaseIdType . 46
6.3.2.17 TriActionTemplateType . 46
6.3.2.18 TriStatusType . 47
6.4 Constants . 47
6.5 Mapping of interfaces . 48
6.5.0 Basic rules . 48
6.5.1 Out and InOut Parameter Passing Mode . 48
6.5.2 triCommunication - Interface . 48
6.5.2.0 Introduction . 48
6.5.2.1 triCommunicationSA . 48
6.5.2.2 triCommunicationTE. 49
6.5.3 triPlatform - Interface . 50
6.5.3.0 Introduction . 50
6.5.3.1 TriPlatformPA . 50
6.5.3.2 TriPlatformTE . 51
6.6 Optional parameters . 51
6.7 TRI initialization . 51
7 ANSI C language mapping. 51
7.1 Introduction . 51
7.2 Names and scopes . 51
7.2.0 Naming rules . 51
7.2.1 Abstract type mapping . 52
7.2.2 ANSI C type definitions . 53
7.2.3 IDL type mapping . 53
7.2.4 TRI operation mapping . 53
7.3 Memory management . 56
8 C++ language mapping . 56
8.1 Introduction . 56
8.2 Names and scopes . 56
8.3 Memory management . 56
8.4 Void . 56
8.5 Type mapping . 56
8.5.0 Basic rules . 56
8.5.1 Encapsulated C++ types. 56
8.5.2 Abstract data types . 57
8.5.2.1 QualifiedName . 57
8.5.2.2 TriAddress . 57
8.5.2.3 TriAddressList . 58
8.5.2.4 TriComponentId . 59
8.5.2.5 TriComponentIdList . 59
8.5.2.6 TriException. 60
8.5.2.7 TriFunctionId . 61
8.5.2.8 TriMessage . 61
8.5.2.9 TriParameter. 62
8.5.2.10 TriParameterList . 62
8.5.2.11 TriParameterPassingMode . 63
8.5.2.12 TriPortId . 63
8.5.2.13 TriPortIdList. 64
8.5.2.14 TriSignatureId . 65
8.5.2.15 TriStatus . 65
8.5.2.16 TriTestCaseId . 65
8.5.2.17 TriTimerDuration . 66
8.5.2.18 TriTimerId . 66
8.6 Mapping of interfaces . 67
8.6.1 TriCommunicationSA . 67
ETSI
6 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
8.6.2 TriCommunicationTE . 68
8.6.3 TriPlatformPA . 69
8.6.4 TriPlatformTE . 69
9 C# language mapping . 70
9.1 Introduction . 70
9.2 Names and scopes . 70
9.2.1 Names . 70
9.2.2 Scopes . 70
9.3 Null value mapping . 70
9.4 Type mapping . 70
9.4.1 Basic type mapping . 70
9.4.1.0 IDL type mapping . 70
9.4.1.1 Boolean . 71
9.4.1.2 String . 71
9.4.2 Structured type mapping . 71
9.4.2.0 Mapping rules . 71
9.4.2.1 IQualifiedName . 71
9.4.2.2 TriPortIdType . 71
9.4.2.3 TriPortIdListType . 72
9.4.2.4 TriComponentIdType . 72
9.4.2.5 TriComponentIdListType . 73
9.4.2.6 TriMessageType . 73
9.4.2.7 TriAddressType . 74
9.4.2.8 TriAddressListType . 74
9.4.2.9 TriSignatureIdType . 75
9.4.2.10 TriParameterPassingModeType . 75
9.4.2.11 TriParameterType . 75
9.4.2.12 TriParameterListType . 75
9.4.2.13 TriExceptionType . 76
9.4.2.14 TriTimerIdType . 76
9.4.2.15 TriTimerDurationType . 77
9.4.2.16 TriFunctionIdType . 77
9.4.2.17 TriTestCaseIdType . 77
9.4.2.18 TriStatusType . 77
9.5 Mapping of interfaces . 77
9.5.0 Basic rules . 77
9.5.1 Out and inout parameter passing mode . 78
9.5.2 triCommunication interface . 78
9.5.2.0 Introduction . 78
9.5.2.1 ITriCommunicationSA . 78
9.5.2.2 ITriCommunicationTE . 79
9.5.2.3 ITriPlatformPA . 80
9.5.2.4 ITriPlatformTE . 80
9.6 Optional parameters . 80
Annex A (normative): IDL Summary . 81
Annex B (informative): Use scenarios . 85
B.0 Introduction . 85
B.1 First scenario . 86
B.1.0 Use case . 86
B.1.1 TTCN-3 fragment . 86
B.1.2 Message sequence chart . 87
B.2 Second scenario . 88
B.2.0 Use case . 88
B.2.1 TTCN-3 fragment . 88
B.2.2 Message sequence chart . 89
B.3 Third scenario . 90
B.3.0 Use case . 90
ETSI
7 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
B.3.1 TTCN-3 fragment . 90
B.3.2 Message sequence chart . 91
Annex C (informative): Bibliography . 92
History . 93
ETSI
8 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
Intellectual Property Rights
IPRs essential or potentially essential to the present document may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Foreword
This final draft ETSI Standard (ES) has been produced by ETSI Technical Committee Methods for Testing and
Specification (MTS), and is now submitted for the ETSI standards Membership Approval Procedure.
The present document is part 5 of a multi-part deliverable. Full details of the entire series can be found in part 1 [2].
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
Introduction
The present document consists of two distinct parts, the first part describing the structure of a TTCN-3 test system
implementation and the second part presenting the TTCN-3 Runtime Interface specification.
The first part introduces the decomposition of a TTCN-3 test system into four main entities: Test Management (TM),
TTCN-3 Executable (TE), SUT Adaptor (SA), and Platform Adaptor (PA). In addition, the interaction between these
entities, i.e. the corresponding interfaces, is defined.
The second part of the present document specifies the TTCN-3 Runtime Interface (TRI). The interface is defined in
terms of operations, which are implemented as part of one entity and called by other entities of the test system. For each
operation, the interface specification defines associated data structures, the intended effect on the test system and any
constraints on the usage of the operation. Note that this interface specification only defines interactions between the TSI
and the SUT as well as timer operations.
ETSI
9 Final draft ETSI ES 201 873-5 V4.8.1 (2017-03)
1 Scope
1.1 Scope of the present document
The present document provides the specification of the runtime interface for TTCN-3 test system implementations. The
TTCN-3 Runtime Interface provides a standardized adaptation for timing and communication of a test system to a
particular processing platform and the system under test, respectively. The present document defines the interface as a
set of operations independent of target language.
The interface is defined to be compatible with the TTCN-3 standard (see ETSI ES 201 873-1 [2]). The present
document uses the CORBA Interface Definition Language (IDL) to specify the TRI completely. Clauses 6, 7 and 8
TM
present language mappings for this abstract specification to the target languages Java , ANSI C, and C++. A summary
of the IDL based interface specification is provided in annex A.
TM
NOTE: Java is the trade name of a programming language developed by Oracle Corporation. This information
is given for the convenience of users of the present document and does not constitute an endorsement by
ETSI of the programming language named. Equivalent programming languages may be used if they can
be shown to lead to the same results.
1.2 Compliance
The requirement for a TTCN-3 test system to be TRI compliant is to adhere to the interface specification stated in the
present document as well as to one of the target language mappings included.
TM
EXAMPLE: If a vendor supports Java , the TRI operation calls and implementations, which are part of the
TM
TTCN-3 executable, have to comply with the IDL to Java mapping specified in the present
document.
2 References
2.1 Normative references
References are either specific (identified by date of publication and/or edition number or version nu
...
ETSI STANDARD
Methods for Testing and Specification (MTS);
The Testing and Test Control Notation version 3;
Part 5: TTCN-3 Runtime Interface (TRI)
2 ETSI ES 201 873-5 V4.8.1 (2017-05)
Reference
RES/MTS-201873-5 T3ed481TRI
Keywords
interface, methodology, runtime, testing, TRI,
TTCN-3
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search
The present document may be made available in electronic versions and/or in print. The content of any electronic and/or
print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any
existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the
print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
https://portal.etsi.org/TB/ETSIDeliverableStatus.aspx
If you find errors in the present document, please send your comment to one of the following services:
https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification
No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying
and microfilm except as authorized by written permission of ETSI.
The content of the PDF version shall not be modified without the written authorization of ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 2017.
All rights reserved.
TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.
TM
3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
oneM2M logo is protected for the benefit of its Members
GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.
ETSI
3 ETSI ES 201 873-5 V4.8.1 (2017-05)
Contents
Intellectual Property Rights . 8
Foreword . 8
Modal verbs terminology . 8
Introduction . 8
1 Scope . 9
1.1 Scope of the present document . 9
1.2 Compliance. 9
2 References . 9
2.1 Normative references . 9
2.2 Informative references . 10
3 Definitions and abbreviations . 10
3.1 Definitions . 10
3.2 Abbreviations . 11
4 General Structure of a TTCN-3 Test System . 12
4.1 Entities in a TTCN-3 test system . 12
4.1.0 Types of entities . 12
4.1.1 Test Management and Control (TMC). 12
4.1.1.0 Test Management and Control Entities . 12
4.1.1.1 Test Management (TM) . 13
4.1.1.2 Test Logging (TL) . 13
4.1.1.3 Coding and Decoding (CD) . 13
4.1.1.4 Component Handling (CH) . 13
4.1.2 TTCN-3 Executable (TE) . 13
4.1.2.0 TTCN-3 Executable Entity . 13
4.1.2.1 Executable Test Suite (ETS) . 13
4.1.2.2 TTCN-3 RunTime System (T3RTS) . 13
4.1.2.3 Encoding/Decoding System (EDS) . 14
4.1.2.4 Timers in the TTCN-3 Executable . 14
4.1.3 SUT Adaptor (SA) . 14
4.1.4 Platform Adaptor (PA) . 14
4.2 Interfaces in a TTCN-3 Test System . 15
4.3 Execution requirements for a TTCN-3 test system . 15
5 TTCN-3 Runtime Interface and operations . 15
5.1 Overview of the TRI. 15
5.1.0 Sub-interfaces . 15
5.1.1 The triCommunication Interface . 16
5.1.2 The triPlatform Interface . 16
5.1.3 Correlation between TTCN-3 and TRI Operation Invocations . 16
5.2 Error handling . 17
5.2.0 Basic rules . 17
5.2.1 triSAErrorReq (SA → TE) . 18
5.2.2 triPAErrorReq (PA → TE) . 18
5.3 Data interface . 18
5.3.0 Basic rules . 18
5.3.1 Connection . 18
5.3.2 Communication . 19
5.3.3 Timer . 20
5.3.4 Miscellaneous . 20
5.4 Operation descriptions . 20
5.5 Communication interface operations . 21
5.5.1 triSAReset (TE → SA) . 21
5.5.2 Connection handling operations . 21
5.5.2.1 triExecuteTestCase (TE → SA) . 21
ETSI
4 ETSI ES 201 873-5 V4.8.1 (2017-05)
5.5.2.2 triMap (TE → SA) . 21
5.5.2.3 triMapParam (TE → SA) . 22
5.5.2.4 triUnmap (TE → SA) . 22
5.5.2.5 triUnmapParam (TE → SA) . 23
5.5.2.6 triEndTestCase (TE → SA) . 23
5.5.3 Message based communication operations . 24
5.5.3.1 triSend (TE → SA) . 24
5.5.3.2 triSendBC (TE → SA) . 24
5.5.3.3 triSendMC (TE → SA) . 25
5.5.3.4 triEnqueueMsg (SA → TE) . 25
5.5.4 Procedure based communication operations . 26
5.5.4.1 triCall (TE → SA) . 26
5.5.4.2 triCallBC (TE → SA) . 27
5.5.4.3 triCallMC (TE → SA) . 28
5.5.4.4 triReply (TE → SA) . 29
5.5.4.5 triReplyBC (TE → SA) . 30
5.5.4.6 triReplyMC (TE → SA) . 31
5.5.4.7 triRaise (TE → SA) . 31
5.5.4.8 triRaiseBC (TE → SA) . 32
5.5.4.9 triRaiseMC (TE → SA) . 32
5.5.4.10 triEnqueueCall (SA → TE) . 33
5.5.4.11 triEnqueueReply (SA → TE) . 33
5.5.4.12 triEnqueueException (SA → TE) . 34
5.5.5 Miscellaneous operations . 34
5.5.5.1 triSUTactionInformal (TE → SA) . 34
5.6 Platform interface operations . 34
5.6.1 triPAReset (TE → PA) . 34
5.6.2 Timer operations . 35
5.6.2.1 triStartTimer (TE → PA) . 35
5.6.2.2 triStopTimer (TE → PA). 35
5.6.2.3 triReadTimer (TE → PA) . 35
5.6.2.4 triTimerRunning (TE → PA) . 36
5.6.2.5 triTimeout (PA → TE) . 36
5.6.3 Miscellaneous operations . 37
5.6.3.1 triExternalFunction (TE → PA) . 37
5.6.3.2 triSelf (PA → TE) . 37
5.6.3.3 triRnd (PA → TE) . 37
TM
6 Java language mapping . 38
6.1 Introduction . 38
6.2 Names and scopes . 38
6.2.1 Names . 38
6.2.2 Scopes . 38
6.3 Type mapping . 38
6.3.1 Basic type mapping . 38
6.3.1.0 IDL type mapping . 38
6.3.1.1 Boolean . 39
6.3.1.2 String . 39
6.3.2 Structured type mapping . 39
6.3.2.0 Mapping rules . 39
6.3.2.1 TriPortIdType . 39
6.3.2.2 TriPortIdListType . 40
6.3.2.3 TriComponentIdType . 40
6.3.2.4 TriComponentIdListType . 41
6.3.2.5 TriMessageType . 41
6.3.2.6 TriAddressType . 42
6.3.2.7 TriAddressListType . 42
6.3.2.8 TriSignatureIdType . 43
6.3.2.9 TriParameterType . 43
6.3.2.10 TriParameterPassingModeType . 44
ETSI
5 ETSI ES 201 873-5 V4.8.1 (2017-05)
6.3.2.11 TriParameterListType . 44
6.3.2.12 TriExceptionType . 45
6.3.2.13 TriTimerIdType . 45
6.3.2.14 TriTimerDurationType . 45
6.3.2.15 TriFunctionIdType . 46
6.3.2.16 TriTestCaseIdType . 46
6.3.2.17 TriActionTemplateType . 46
6.3.2.18 TriStatusType . 47
6.4 Constants . 47
6.5 Mapping of interfaces . 48
6.5.0 Basic rules . 48
6.5.1 Out and InOut Parameter Passing Mode . 48
6.5.2 triCommunication - Interface . 48
6.5.2.0 Introduction . 48
6.5.2.1 triCommunicationSA . 48
6.5.2.2 triCommunicationTE. 49
6.5.3 triPlatform - Interface . 50
6.5.3.0 Introduction . 50
6.5.3.1 TriPlatformPA . 50
6.5.3.2 TriPlatformTE . 51
6.6 Optional parameters . 51
6.7 TRI initialization . 51
7 ANSI C language mapping. 51
7.1 Introduction . 51
7.2 Names and scopes . 51
7.2.0 Naming rules . 51
7.2.1 Abstract type mapping . 52
7.2.2 ANSI C type definitions . 53
7.2.3 IDL type mapping . 53
7.2.4 TRI operation mapping . 53
7.3 Memory management . 56
8 C++ language mapping . 56
8.1 Introduction . 56
8.2 Names and scopes . 56
8.3 Memory management . 56
8.4 Void . 56
8.5 Type mapping . 56
8.5.0 Basic rules . 56
8.5.1 Encapsulated C++ types. 56
8.5.2 Abstract data types . 57
8.5.2.1 QualifiedName . 57
8.5.2.2 TriAddress . 57
8.5.2.3 TriAddressList . 58
8.5.2.4 TriComponentId . 59
8.5.2.5 TriComponentIdList . 59
8.5.2.6 TriException. 60
8.5.2.7 TriFunctionId . 61
8.5.2.8 TriMessage . 61
8.5.2.9 TriParameter. 62
8.5.2.10 TriParameterList . 62
8.5.2.11 TriParameterPassingMode . 63
8.5.2.12 TriPortId . 63
8.5.2.13 TriPortIdList. 64
8.5.2.14 TriSignatureId . 65
8.5.2.15 TriStatus . 65
8.5.2.16 TriTestCaseId . 65
8.5.2.17 TriTimerDuration . 66
8.5.2.18 TriTimerId . 66
8.6 Mapping of interfaces . 67
8.6.1 TriCommunicationSA . 67
ETSI
6 ETSI ES 201 873-5 V4.8.1 (2017-05)
8.6.2 TriCommunicationTE . 68
8.6.3 TriPlatformPA . 69
8.6.4 TriPlatformTE . 69
9 C# language mapping . 70
9.1 Introduction . 70
9.2 Names and scopes . 70
9.2.1 Names . 70
9.2.2 Scopes . 70
9.3 Null value mapping . 70
9.4 Type mapping . 70
9.4.1 Basic type mapping . 70
9.4.1.0 IDL type mapping . 70
9.4.1.1 Boolean . 71
9.4.1.2 String . 71
9.4.2 Structured type mapping . 71
9.4.2.0 Mapping rules . 71
9.4.2.1 IQualifiedName . 71
9.4.2.2 TriPortIdType . 71
9.4.2.3 TriPortIdListType . 72
9.4.2.4 TriComponentIdType . 72
9.4.2.5 TriComponentIdListType . 73
9.4.2.6 TriMessageType . 73
9.4.2.7 TriAddressType . 74
9.4.2.8 TriAddressListType . 74
9.4.2.9 TriSignatureIdType . 75
9.4.2.10 TriParameterPassingModeType . 75
9.4.2.11 TriParameterType . 75
9.4.2.12 TriParameterListType . 75
9.4.2.13 TriExceptionType . 76
9.4.2.14 TriTimerIdType . 76
9.4.2.15 TriTimerDurationType . 77
9.4.2.16 TriFunctionIdType . 77
9.4.2.17 TriTestCaseIdType . 77
9.4.2.18 TriStatusType . 77
9.5 Mapping of interfaces . 77
9.5.0 Basic rules . 77
9.5.1 Out and inout parameter passing mode . 78
9.5.2 triCommunication interface . 78
9.5.2.0 Introduction . 78
9.5.2.1 ITriCommunicationSA . 78
9.5.2.2 ITriCommunicationTE . 79
9.5.2.3 ITriPlatformPA . 80
9.5.2.4 ITriPlatformTE . 80
9.6 Optional parameters . 80
Annex A (normative): IDL Summary . 81
Annex B (informative): Use scenarios . 85
B.0 Introduction . 85
B.1 First scenario . 86
B.1.0 Use case . 86
B.1.1 TTCN-3 fragment . 86
B.1.2 Message sequence chart . 87
B.2 Second scenario . 88
B.2.0 Use case . 88
B.2.1 TTCN-3 fragment . 88
B.2.2 Message sequence chart . 89
B.3 Third scenario . 90
B.3.0 Use case . 90
ETSI
7 ETSI ES 201 873-5 V4.8.1 (2017-05)
B.3.1 TTCN-3 fragment . 90
B.3.2 Message sequence chart . 91
Annex C (informative): Bibliography . 92
History . 93
ETSI
8 ETSI ES 201 873-5 V4.8.1 (2017-05)
Intellectual Property Rights
IPRs essential or potentially essential to the present document may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Foreword
This ETSI Standard (ES) has been produced by ETSI Technical Committee Methods for Testing and Specification
(MTS).
The present document is part 5 of a multi-part deliverable. Full details of the entire series can be found in part 1 [2].
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
Introduction
The present document consists of two distinct parts, the first part describing the structure of a TTCN-3 test system
implementation and the second part presenting the TTCN-3 Runtime Interface specification.
The first part introduces the decomposition of a TTCN-3 test system into four main entities: Test Management (TM),
TTCN-3 Executable (TE), SUT Adaptor (SA), and Platform Adaptor (PA). In addition, the interaction between these
entities, i.e. the corresponding interfaces, is defined.
The second part of the present document specifies the TTCN-3 Runtime Interface (TRI). The interface is defined in
terms of operations, which are implemented as part of one entity and called by other entities of the test system. For each
operation, the interface specification defines associated data structures, the intended effect on the test system and any
constraints on the usage of the operation. Note that this interface specification only defines interactions between the TSI
and the SUT as well as timer operations.
ETSI
9 ETSI ES 201 873-5 V4.8.1 (2017-05)
1 Scope
1.1 Scope of the present document
The present document provides the specification of the runtime interface for TTCN-3 test system implementations. The
TTCN-3 Runtime Interface provides a standardized adaptation for timing and communication of a test system to a
particular processing platform and the system under test, respectively. The present document defines the interface as a
set of operations independent of target language.
The interface is defined to be compatible with the TTCN-3 standard (see ETSI ES 201 873-1 [2]). The present
document uses the CORBA Interface Definition Language (IDL) to specify the TRI completely. Clauses 6, 7 and 8
TM
present language mappings for this abstract specification to the target languages Java , ANSI C, and C++. A summary
of the IDL based interface specification is provided in annex A.
TM
NOTE: Java is the trade name of a programming language developed by Oracle Corporation. This information
is given for the convenience of users of the present document and does not constitute an endorsement by
ETSI of the programming language named. Equivalent programming languages may be used if they can
be shown to lead to the same results.
1.2 Compliance
The requirement for a TTCN-3 test system to be TRI compliant is to adhere to the interface specification stated in the
present document as well as to one of the target language mappings included.
TM
EXAMPLE: If a vendor supports Java , the TRI operation calls and implementations, which are part of the
TM
TTCN-3 executable, have to comply with the IDL to Java mapping specified in the present
document.
2 References
2.1 Normative references
References are either specific (identified by date of publication and/or edition number or version number) or
non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the
reference
...
SLOVENSKI STANDARD
01-september-2017
0HWRGH]DSUHVNXãDQMHLQVSHFLILFLUDQMH076UD]OLþLFD]DSLVDSUHVNXãDQMDLQ
NUPLOMHQMDSUHVNXVRYGHO9PHVQLN]DþDVL]YDMDQMD75,77&1
Methods for Testing and Specification (MTS) - The Testing and Test Control Notation
version 3 - Part 5: TTCN-3 Runtime Interface (TRI)
Ta slovenski standard je istoveten z: ETSI ES 201 873-5 V4.8.1 (2017-05)
ICS:
33.040.01 Telekomunikacijski sistemi Telecommunication systems
na splošno in general
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.
ETSI STANDARD
Methods for Testing and Specification (MTS);
The Testing and Test Control Notation version 3;
Part 5: TTCN-3 Runtime Interface (TRI)
2 ETSI ES 201 873-5 V4.8.1 (2017-05)
Reference
RES/MTS-201873-5 T3ed481TRI
Keywords
interface, methodology, runtime, testing, TRI,
TTCN-3
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
http://www.etsi.org/standards-search
The present document may be made available in electronic versions and/or in print. The content of any electronic and/or
print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any
existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the
print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
https://portal.etsi.org/TB/ETSIDeliverableStatus.aspx
If you find errors in the present document, please send your comment to one of the following services:
https://portal.etsi.org/People/CommiteeSupportStaff.aspx
Copyright Notification
No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying
and microfilm except as authorized by written permission of ETSI.
The content of the PDF version shall not be modified without the written authorization of ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.
© European Telecommunications Standards Institute 2017.
All rights reserved.
TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members.
TM
3GPP and LTE™ are Trade Marks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
oneM2M logo is protected for the benefit of its Members
GSM® and the GSM logo are Trade Marks registered and owned by the GSM Association.
ETSI
3 ETSI ES 201 873-5 V4.8.1 (2017-05)
Contents
Intellectual Property Rights . 8
Foreword . 8
Modal verbs terminology . 8
Introduction . 8
1 Scope . 9
1.1 Scope of the present document . 9
1.2 Compliance. 9
2 References . 9
2.1 Normative references . 9
2.2 Informative references . 10
3 Definitions and abbreviations . 10
3.1 Definitions . 10
3.2 Abbreviations . 11
4 General Structure of a TTCN-3 Test System . 12
4.1 Entities in a TTCN-3 test system . 12
4.1.0 Types of entities . 12
4.1.1 Test Management and Control (TMC). 12
4.1.1.0 Test Management and Control Entities . 12
4.1.1.1 Test Management (TM) . 13
4.1.1.2 Test Logging (TL) . 13
4.1.1.3 Coding and Decoding (CD) . 13
4.1.1.4 Component Handling (CH) . 13
4.1.2 TTCN-3 Executable (TE) . 13
4.1.2.0 TTCN-3 Executable Entity . 13
4.1.2.1 Executable Test Suite (ETS) . 13
4.1.2.2 TTCN-3 RunTime System (T3RTS) . 13
4.1.2.3 Encoding/Decoding System (EDS) . 14
4.1.2.4 Timers in the TTCN-3 Executable . 14
4.1.3 SUT Adaptor (SA) . 14
4.1.4 Platform Adaptor (PA) . 14
4.2 Interfaces in a TTCN-3 Test System . 15
4.3 Execution requirements for a TTCN-3 test system . 15
5 TTCN-3 Runtime Interface and operations . 15
5.1 Overview of the TRI. 15
5.1.0 Sub-interfaces . 15
5.1.1 The triCommunication Interface . 16
5.1.2 The triPlatform Interface . 16
5.1.3 Correlation between TTCN-3 and TRI Operation Invocations . 16
5.2 Error handling . 17
5.2.0 Basic rules . 17
5.2.1 triSAErrorReq (SA → TE) . 18
5.2.2 triPAErrorReq (PA → TE) . 18
5.3 Data interface . 18
5.3.0 Basic rules . 18
5.3.1 Connection . 18
5.3.2 Communication . 19
5.3.3 Timer . 20
5.3.4 Miscellaneous . 20
5.4 Operation descriptions . 20
5.5 Communication interface operations . 21
5.5.1 triSAReset (TE → SA) . 21
5.5.2 Connection handling operations . 21
5.5.2.1 triExecuteTestCase (TE → SA) . 21
ETSI
4 ETSI ES 201 873-5 V4.8.1 (2017-05)
5.5.2.2 triMap (TE → SA) . 21
5.5.2.3 triMapParam (TE → SA) . 22
5.5.2.4 triUnmap (TE → SA) . 22
5.5.2.5 triUnmapParam (TE → SA) . 23
5.5.2.6 triEndTestCase (TE → SA) . 23
5.5.3 Message based communication operations . 24
5.5.3.1 triSend (TE → SA) . 24
5.5.3.2 triSendBC (TE → SA) . 24
5.5.3.3 triSendMC (TE → SA) . 25
5.5.3.4 triEnqueueMsg (SA → TE) . 25
5.5.4 Procedure based communication operations . 26
5.5.4.1 triCall (TE → SA) . 26
5.5.4.2 triCallBC (TE → SA) . 27
5.5.4.3 triCallMC (TE → SA) . 28
5.5.4.4 triReply (TE → SA) . 29
5.5.4.5 triReplyBC (TE → SA) . 30
5.5.4.6 triReplyMC (TE → SA) . 31
5.5.4.7 triRaise (TE → SA) . 31
5.5.4.8 triRaiseBC (TE → SA) . 32
5.5.4.9 triRaiseMC (TE → SA) . 32
5.5.4.10 triEnqueueCall (SA → TE) . 33
5.5.4.11 triEnqueueReply (SA → TE) . 33
5.5.4.12 triEnqueueException (SA → TE) . 34
5.5.5 Miscellaneous operations . 34
5.5.5.1 triSUTactionInformal (TE → SA) . 34
5.6 Platform interface operations . 34
5.6.1 triPAReset (TE → PA) . 34
5.6.2 Timer operations . 35
5.6.2.1 triStartTimer (TE → PA) . 35
5.6.2.2 triStopTimer (TE → PA). 35
5.6.2.3 triReadTimer (TE → PA) . 35
5.6.2.4 triTimerRunning (TE → PA) . 36
5.6.2.5 triTimeout (PA → TE) . 36
5.6.3 Miscellaneous operations . 37
5.6.3.1 triExternalFunction (TE → PA) . 37
5.6.3.2 triSelf (PA → TE) . 37
5.6.3.3 triRnd (PA → TE) . 37
TM
6 Java language mapping . 38
6.1 Introduction . 38
6.2 Names and scopes . 38
6.2.1 Names . 38
6.2.2 Scopes . 38
6.3 Type mapping . 38
6.3.1 Basic type mapping . 38
6.3.1.0 IDL type mapping . 38
6.3.1.1 Boolean . 39
6.3.1.2 String . 39
6.3.2 Structured type mapping . 39
6.3.2.0 Mapping rules . 39
6.3.2.1 TriPortIdType . 39
6.3.2.2 TriPortIdListType . 40
6.3.2.3 TriComponentIdType . 40
6.3.2.4 TriComponentIdListType . 41
6.3.2.5 TriMessageType . 41
6.3.2.6 TriAddressType . 42
6.3.2.7 TriAddressListType . 42
6.3.2.8 TriSignatureIdType . 43
6.3.2.9 TriParameterType . 43
6.3.2.10 TriParameterPassingModeType . 44
ETSI
5 ETSI ES 201 873-5 V4.8.1 (2017-05)
6.3.2.11 TriParameterListType . 44
6.3.2.12 TriExceptionType . 45
6.3.2.13 TriTimerIdType . 45
6.3.2.14 TriTimerDurationType . 45
6.3.2.15 TriFunctionIdType . 46
6.3.2.16 TriTestCaseIdType . 46
6.3.2.17 TriActionTemplateType . 46
6.3.2.18 TriStatusType . 47
6.4 Constants . 47
6.5 Mapping of interfaces . 48
6.5.0 Basic rules . 48
6.5.1 Out and InOut Parameter Passing Mode . 48
6.5.2 triCommunication - Interface . 48
6.5.2.0 Introduction . 48
6.5.2.1 triCommunicationSA . 48
6.5.2.2 triCommunicationTE. 49
6.5.3 triPlatform - Interface . 50
6.5.3.0 Introduction . 50
6.5.3.1 TriPlatformPA . 50
6.5.3.2 TriPlatformTE . 51
6.6 Optional parameters . 51
6.7 TRI initialization . 51
7 ANSI C language mapping. 51
7.1 Introduction . 51
7.2 Names and scopes . 51
7.2.0 Naming rules . 51
7.2.1 Abstract type mapping . 52
7.2.2 ANSI C type definitions . 53
7.2.3 IDL type mapping . 53
7.2.4 TRI operation mapping . 53
7.3 Memory management . 56
8 C++ language mapping . 56
8.1 Introduction . 56
8.2 Names and scopes . 56
8.3 Memory management . 56
8.4 Void . 56
8.5 Type mapping . 56
8.5.0 Basic rules . 56
8.5.1 Encapsulated C++ types. 56
8.5.2 Abstract data types . 57
8.5.2.1 QualifiedName . 57
8.5.2.2 TriAddress . 57
8.5.2.3 TriAddressList . 58
8.5.2.4 TriComponentId . 59
8.5.2.5 TriComponentIdList . 59
8.5.2.6 TriException. 60
8.5.2.7 TriFunctionId . 61
8.5.2.8 TriMessage . 61
8.5.2.9 TriParameter. 62
8.5.2.10 TriParameterList . 62
8.5.2.11 TriParameterPassingMode . 63
8.5.2.12 TriPortId . 63
8.5.2.13 TriPortIdList. 64
8.5.2.14 TriSignatureId . 65
8.5.2.15 TriStatus . 65
8.5.2.16 TriTestCaseId . 65
8.5.2.17 TriTimerDuration . 66
8.5.2.18 TriTimerId . 66
8.6 Mapping of interfaces . 67
8.6.1 TriCommunicationSA . 67
ETSI
6 ETSI ES 201 873-5 V4.8.1 (2017-05)
8.6.2 TriCommunicationTE . 68
8.6.3 TriPlatformPA . 69
8.6.4 TriPlatformTE . 69
9 C# language mapping . 70
9.1 Introduction . 70
9.2 Names and scopes . 70
9.2.1 Names . 70
9.2.2 Scopes . 70
9.3 Null value mapping . 70
9.4 Type mapping . 70
9.4.1 Basic type mapping . 70
9.4.1.0 IDL type mapping . 70
9.4.1.1 Boolean . 71
9.4.1.2 String . 71
9.4.2 Structured type mapping . 71
9.4.2.0 Mapping rules . 71
9.4.2.1 IQualifiedName . 71
9.4.2.2 TriPortIdType . 71
9.4.2.3 TriPortIdListType . 72
9.4.2.4 TriComponentIdType . 72
9.4.2.5 TriComponentIdListType . 73
9.4.2.6 TriMessageType . 73
9.4.2.7 TriAddressType . 74
9.4.2.8 TriAddressListType . 74
9.4.2.9 TriSignatureIdType . 75
9.4.2.10 TriParameterPassingModeType . 75
9.4.2.11 TriParameterType . 75
9.4.2.12 TriParameterListType . 75
9.4.2.13 TriExceptionType . 76
9.4.2.14 TriTimerIdType . 76
9.4.2.15 TriTimerDurationType . 77
9.4.2.16 TriFunctionIdType . 77
9.4.2.17 TriTestCaseIdType . 77
9.4.2.18 TriStatusType . 77
9.5 Mapping of interfaces . 77
9.5.0 Basic rules . 77
9.5.1 Out and inout parameter passing mode . 78
9.5.2 triCommunication interface . 78
9.5.2.0 Introduction . 78
9.5.2.1 ITriCommunicationSA . 78
9.5.2.2 ITriCommunicationTE . 79
9.5.2.3 ITriPlatformPA . 80
9.5.2.4 ITriPlatformTE . 80
9.6 Optional parameters . 80
Annex A (normative): IDL Summary . 81
Annex B (informative): Use scenarios . 85
B.0 Introduction . 85
B.1 First scenario . 86
B.1.0 Use case . 86
B.1.1 TTCN-3 fragment . 86
B.1.2 Message sequence chart . 87
B.2 Second scenario . 88
B.2.0 Use case . 88
B.2.1 TTCN-3 fragment . 88
B.2.2 Message sequence chart . 89
B.3 Third scenario . 90
B.3.0 Use case . 90
ETSI
7 ETSI ES 201 873-5 V4.8.1 (2017-05)
B.3.1 TTCN-3 fragment . 90
B.3.2 Message sequence chart . 91
Annex C (informative): Bibliography . 92
History . 93
ETSI
8 ETSI ES 201 873-5 V4.8.1 (2017-05)
Intellectual Property Rights
IPRs essential or potentially essential to the present document may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Foreword
This ETSI Standard (ES) has been produced by ETSI Technical Committee Methods for Testing and Specification
(MTS).
The present document is part 5 of a multi-part deliverable. Full details of the entire series can be found in part 1 [2].
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
Introduction
The present document consists of two distinct parts, the first part describing the structure of a TTCN-3 test system
implementation and the second part presenting the TTCN-3 Runtime Interface specification.
The first part introduces the decomposition of a TTCN-3 test system into four main entities: Test Management (TM),
TTCN-3 Executable (TE), SUT Adaptor (SA), and Platform Adaptor (PA). In addition, the interaction between these
entities, i.e. the corresponding interfaces, is defined.
The second part of the present document specifies the TTCN-3 Runtime Interface (TRI). The interface is defined in
terms of operations, which are implemented as part of one entity and called by other entities of the test system. For each
operation, the interface specification defines associated data structures, the intended effect on the test system and any
constraints on the usage of the operation. Note that this interface specification only defines interactions between the TSI
and the SUT as well as timer operations.
ETSI
9 ETSI ES 201 873-5 V4.8.1 (2017-05)
1 Scope
1.1 Scope of the present document
The present document provides the specification of the runtime interface for TTCN-3 test system implementations. The
TTCN-3 Runtime Interface provides a standardized adaptation for timing and communication of a test system to a
particular processing platform and the system under test, respectively. The present document defines the interface as a
set of operations independent of target language.
The interface is defined to be compatible with the TTCN-3 standard (see ETSI ES 201 873-1 [2]). The present
document uses the CORBA Interface Definition Language (IDL) to specify the TRI completely. Clauses 6, 7 and 8
TM
present language mappings for this abstract specification to the target languages Java , ANSI C, and C++. A summary
of the IDL based
...











