Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)

RES/MTS-201873-5 T3ed491

Metode za preskušanje in specificiranje (MTS) - 3. različica zapisa preskušanja in krmiljenja preskusov - 5. del: Vmesnik za čas izvajanja (TRI) TTCN-3

Ta dokument določa specificiranje vmesnika za čas izvajanja za preskusne izvedbe sistema TTCN-3. Vmesnik za čas izvajanja TTCN-3 zagotavlja standardizirano prilagoditev za časovni razpored in komunikacijo preskusnega sistema v povezavi z določeno obdelovalno platformo ter sistemom za preskušanje. V tem dokumentu je vmesnik opredeljen kot niz postopkov, neodvisnih od ciljnega jezika. Vmesnik je opredeljen kot združljiv s standardom TTCN-3 (glej ETSI ES 201 873-1 [2]). Za popolno določitev TRI je v tem dokumentu uporabljen jezik za definicijo vmesnikov (IDL) CORBA. V točkah 6, 7 in 8 so predstavljene jezikovne preslikave za to abstraktno specificiranje v ciljne jezike Java™, ANSI C in C++. Povzetek specifikacij vmesnikov na osnovi jezika IDL je podan v dodatku A.
OPOMBA: Java™ je tržno ime programskega jezika, ki ga je razvila družba Oracle Corporation. Te informacije so navedene za boljše razumevanje standarda s strani uporabnikov in ne pomenijo, da ETSI podpira imenovani programski jezik. Uporabljajo se lahko enakovredni programski jeziki, ki zagotavljajo enake rezultate.

General Information

Status
Not Published
Current Stage
12 - Completion
Due Date
09-May-2022
Completion Date
27-Apr-2022

Buy Standard

Standard
ETSI ES 201 873-5 V4.9.1 (2022-04) - Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)
English language
92 pages
sale 15% off
Preview
sale 15% off
Preview
Standard
ETSI ES 201 873-5 V4.9.1 (2022-02) - Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)
English language
93 pages
sale 15% off
Preview
sale 15% off
Preview
Standardization document
ES 201 873-5 V4.9.1:2022
English language
92 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day

Standards Content (Sample)

ETSI ES 201 873-5 V4.9.1 (2022-04)






ETSI STANDARD
Methods for Testing and Specification (MTS);
The Testing and Test Control Notation version 3;
Part 5: TTCN-3 Runtime Interface (TRI)

---------------------- Page: 1 ----------------------
2 ETSI ES 201 873-5 V4.9.1 (2022-04)

Reference
RES/MTS-201873-5 T3ed491
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 - APE 7112B
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° w061004871

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 prevailing version of an ETSI
deliverable is the one made publicly available in PDF format at www.etsi.org/deliver.
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
If you find a security vulnerability in the present document, please report it through our
Coordinated Vulnerability Disclosure Program:
https://www.etsi.org/standards/coordinated-vulnerability-disclosure
Notice of disclaimer & limitation of liability
The information provided in the present deliverable is directed solely to professionals who have the appropriate degree of
experience to understand and interpret its content in accordance with generally accepted engineering or
other professional standard and applicable regulations.
No recommendation as to products and services or vendors is made or should be implied.
No representation or warranty is made that this deliverable is technically accurate or sufficient or conforms to any law
governmental rule and/or regulation and further, no representation or warranty is made of merchantability or fitness
and/or
for any particular purpose or against infringement of intellectual property rights.
In no event shall ETSI be held liable for loss of profits or any other incidental or consequential damages.

Any software contained in this deliverable is provided "AS IS" with no warranties, express or implied, including but not
limited to, the warranties of merchantability, fitness for a particular purpose and non-infringement of intellectual property
rights and ETSI shall not be held liable in any event for any damages whatsoever (including, without limitation, damages
for loss of profits, business interruption, loss of information, or any other pecuniary loss) arising out of or related to the use
of or inability to use the software.
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.

© ETSI 2022.
All rights reserved.

ETSI

---------------------- Page: 2 ----------------------
3 ETSI ES 201 873-5 V4.9.1 (2022-04)
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 Definition of terms, symbols and abbreviations . 10
3.1 Terms . 10
3.2 Symbols . 11
3.3 Abbreviations . 11
4 General Structure of a TTCN-3 Test System . 12
4.1 Entities in a TTCN-3 test syst em . 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
ETSI

---------------------- Page: 3 ----------------------
4 ETSI ES 201 873-5 V4.9.1 (2022-04)
5.5.2.1 triExecuteTestCase (TE → SA) . 21
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) . 22
5.5.2.6 triEndTestCase (TE → SA) . 23
5.5.3 Message based communication operations . 23
5.5.3.1 triSend (TE → SA) . 23
5.5.3.2 triSendBC (TE → SA) . 23
5.5.3.3 triSendMC (TE → SA) . 24
5.5.3.4 triEnqueueMsg (SA → TE) . 24
5.5.4 Procedure based communication operations . 25
5.5.4.1 triCall (TE → SA) . 25
5.5.4.2 triCallBC (TE → SA) . 26
5.5.4.3 triCallMC (TE → SA) . 27
5.5.4.4 triReply (TE → SA) . 28
5.5.4.5 triReplyBC (TE → SA) . 29
5.5.4.6 triReplyMC (TE → SA) . 30
5.5.4.7 triRaise (TE → SA) . 30
5.5.4.8 triRaiseBC (TE → SA) . 31
5.5.4.9 triRaiseMC (TE → SA) . 31
5.5.4.10 triEnqueueCall (SA → TE) . 32
5.5.4.11 triEnqueueReply (SA → TE) . 32
5.5.4.12 triEnqueueException (SA → TE) . 33
5.5.5 Miscellaneous operations . 33
5.5.5.1 triSUTActionInformal (TE → SA) . 33
5.5.5.2 triSUTActionParam (TE → SA) . 33
5.6 Platform interface operations . 34
5.6.1 triPAReset (TE → PA) . 34
5.6.2 Timer operations . 34
5.6.2.1 triStartTimer (TE → PA) . 34
5.6.2.2 triStopTimer (TE → PA). 34
5.6.2.3 triReadTimer (TE → PA) . 35
5.6.2.4 triTimerRunning (TE → PA) . 35
5.6.2.5 triTimeout (PA → TE) . 35
5.6.3 Miscellaneous operations . 36
5.6.3.1 triExternalFunction (TE → PA) . 36
5.6.3.2 triSelf (PA → TE) . 36
5.6.3.3 triRnd (PA → TE) . 36
TM
6 Java language mapping . 37
6.1 Introduction . 37
6.2 Names and scopes . 37
6.2.1 Names . 37
6.2.2 Scopes . 37
6.3 Type mapping . 37
6.3.1 Basic type mapping . 37
6.3.1.0 IDL type mapping . 37
6.3.1.1 Boolean . 38
6.3.1.2 String . 38
6.3.2 Structured type mapping . 38
6.3.2.0 Mapping rules . 38
6.3.2.1 TriPortIdType . 38
6.3.2.2 TriPortIdListType . 39
6.3.2.3 TriComponentIdType . 39
6.3.2.4 TriComponentIdListType . 40
6.3.2.5 TriMessageType . 40
6.3.2.6 TriAddressType . 41
6.3.2.7 TriAddressListType . 41
6.3.2.8 TriSignatureIdType . 42
ETSI

---------------------- Page: 4 ----------------------
5 ETSI ES 201 873-5 V4.9.1 (2022-04)
6.3.2.9 TriParameterType . 42
6.3.2.10 TriParameterPassingModeType . 43
6.3.2.11 TriParameterListType . 43
6.3.2.12 TriExceptionType . 44
6.3.2.13 TriTimerIdType . 44
6.3.2.14 TriTimerDurationType . 44
6.3.2.15 TriFunctionIdType . 45
6.3.2.16 TriTestCaseIdType . 45
6.3.2.17 TriActionTemplateType . 45
6.3.2.18 TriStatusType . 46
6.4 Constants . 46
6.5 Mapping of interfaces . 47
6.5.0 Basic rules . 47
6.5.1 Out and InOut Parameter Passing Mode . 47
6.5.2 triCommunication - Interface . 47
6.5.2.0 Introduction . 47
6.5.2.1 triCommunicationSA . 47
6.5.2.2 triCommunicationTE. 49
6.5.3 triPlatform - Interface . 49
6.5.3.0 Introduction . 49
6.5.3.1 TriPlatformPA . 49
6.5.3.2 TriPlatformTE . 50
6.6 Optional parameters . 50
6.7 TRI initialization . 50
7 ANSI C language mapping. 50
7.1 Introduction . 50
7.2 Names and scopes . 50
7.2.0 Naming rules . 50
7.2.1 Abstract type mapping . 51
7.2.2 ANSI C type definitions . 52
7.2.3 IDL type mapping . 52
7.2.4 TRI operation mapping . 52
7.3 Memory management . 55
8 C++ language mapping . 55
8.1 Introduction . 55
8.2 Names and scopes . 55
8.3 Memory management . 55
8.4 Void . 55
8.5 Type mapping . 55
8.5.0 Basic rules . 55
8.5.1 Encapsulated C++ types. 55
8.5.2 Abstract data types . 56
8.5.2.1 QualifiedName . 56
8.5.2.2 TriAddress . 56
8.5.2.3 TriAddressList . 57
8.5.2.4 TriComponentId . 58
8.5.2.5 TriComponentIdList . 58
8.5.2.6 TriException. 59
8.5.2.7 TriFunctionId . 60
8.5.2.8 TriMessage . 60
8.5.2.9 TriParameter. 61
8.5.2.10 TriParamete
...

Final draft ETSI ES 201 873-5 V4.9.1 (2022-02)






ETSI STANDARD
Methods for Testing and Specification (MTS);
The Testing and Test Control Notation version 3;
Part 5: TTCN-3 Runtime Interface (TRI)

---------------------- Page: 1 ----------------------
2 Final draft ETSI ES 201 873-5 V4.9.1 (2022-02)
Reference
RES/MTS-201873-5 T3ed491
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 - APE 7112B
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° w061004871

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 prevailing version of an ETSI
deliverable is the one made publicly available in PDF format at www.etsi.org/deliver.
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
Notice of disclaimer & limitation of liability
The information provided in the present deliverable is directed solely to professionals who have the appropriate degree of
experience to understand and interpret its content in accordance with generally accepted engineering or
other professional standard and applicable regulations.
No recommendation as to products and services or vendors is made or should be implied.
No representation or warranty is made that this deliverable is technically accurate or sufficient or conforms to any law
and/or governmental rule and/or regulation and further, no representation or warranty is made of merchantability or fitness
for any particular purpose or against infringement of intellectual property rights.
In no event shall ETSI be held liable for loss of profits or any other incidental or consequential damages.

Any software contained in this deliverable is provided "AS IS" with no warranties, express or implied, including but not
limited to, the warranties of merchantability, fitness for a particular purpose and non-infringement of intellectual property
rights and ETSI shall not be held liable in any event for any damages whatsoever (including, without limitation, damages
for loss of profits, business interruption, loss of information, or any other pecuniary loss) arising out of or related to the use
of or inability to use the software.
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.

© ETSI 2022.
All rights reserved.

ETSI

---------------------- Page: 2 ----------------------
3 Final draft ETSI ES 201 873-5 V4.9.1 (2022-02)
Contents
Intellectual Property Rights . 8
Foreword . 8
Modal verbs terminology . 8
Introduction . 8
1 Scope . 10
1.1 Scope of the present document . 10
1.2 Compliance. 10
2 References . 10
2.1 Normative references . 10
2.2 Informative references . 11
3 Definition of terms, symbols and abbreviations . 11
3.1 Terms . 11
3.2 Symbols . 12
3.3 Abbreviations . 12
4 General Structure of a TTCN-3 Test System . 13
4.1 Entities in a TTCN-3 test system . 13
4.1.0 Types of entities . 13
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) . 14
4.1.1.2 Test Logging (TL) . 14
4.1.1.3 Coding and Decoding (CD) . 14
4.1.1.4 Component Handling (CH) . 14
4.1.2 TTCN-3 Executable (TE) . 14
4.1.2.0 TTCN-3 Executable Entity . 14
4.1.2.1 Executable Test Suite (ETS) . 14
4.1.2.2 TTCN-3 RunTime System (T3RTS) . 14
4.1.2.3 Encoding/Decoding System (EDS) . 15
4.1.2.4 Timers in the TTCN-3 Executable . 15
4.1.3 SUT Adaptor (SA) . 15
4.1.4 Platform Adaptor (PA) . 15
4.2 Interfaces in a TTCN-3 Test System . 16
4.3 Execution requirements for a TTCN-3 test system . 16
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 . 17
5.1.2 The triPlatform Interface . 17
5.1.3 Correlation between TTCN-3 and TRI Operation Invocations . 17
5.2 Error handling . 18
5.2.0 Basic rules . 18
5.2.1 triSAErrorReq (SA → TE) . 19
5.2.2 triPAErrorReq (PA → TE) . 19
5.3 Data interface . 19
5.3.0 Basic rules . 19
5.3.1 Connection . 19
5.3.2 Communication . 20
5.3.3 Timer . 21
5.3.4 Miscellaneous . 21
5.4 Operation descriptions . 21
5.5 Communication interface operations . 21
5.5.1 triSAReset (TE → SA) . 21
ETSI

---------------------- Page: 3 ----------------------
4 Final draft ETSI ES 201 873-5 V4.9.1 (2022-02)
5.5.2 Connection handling operations . 22
5.5.2.1 triExecuteTestCase (TE → SA) . 22
5.5.2.2 triMap (TE → SA) . 22
5.5.2.3 triMapParam (TE → SA) . 22
5.5.2.4 triUnmap (TE → SA) . 23
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.5.5.2 triSUTActionParam (TE → SA) . 34
5.6 Platform interface operations . 35
5.6.1 triPAReset (TE → PA) . 35
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) . 36
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
ETSI

---------------------- Page: 4 ----------------------
5 Final draft ETSI ES 201 873-5 V4.9.1 (2022-02)
6.3.2.8 TriSignatureIdType . 43
6.3.2.9 TriParameterType . 43
6.3.2.10 TriParameterPassingModeType . 44
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 T
...

SLOVENSKI STANDARD
SIST ES 201 873-5 V4.9.1:2022
01-julij-2022
Metode za preskušanje in specificiranje (MTS) - 3. različica zapisa preskušanja in
krmiljenja preskusov - 5. del: Vmesnik za čas izvajanja (TRI) TTCN-3
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.9.1 (2022-04)
ICS:
33.040.01 Telekomunikacijski sistemi Telecommunication systems
na splošno in general
SIST ES 201 873-5 V4.9.1:2022 en
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.

---------------------- Page: 1 ----------------------
SIST ES 201 873-5 V4.9.1:2022

---------------------- Page: 2 ----------------------
SIST ES 201 873-5 V4.9.1:2022
ETSI ES 201 873-5 V4.9.1 (2022-04)






ETSI STANDARD
Methods for Testing and Specification (MTS);
The Testing and Test Control Notation version 3;
Part 5: TTCN-3 Runtime Interface (TRI)

---------------------- Page: 3 ----------------------
SIST ES 201 873-5 V4.9.1:2022

2 ETSI ES 201 873-5 V4.9.1 (2022-04)

Reference
RES/MTS-201873-5 T3ed491
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 - APE 7112B
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° w061004871

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 prevailing version of an ETSI
deliverable is the one made publicly available in PDF format at www.etsi.org/deliver.
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
If you find a security vulnerability in the present document, please report it through our
Coordinated Vulnerability Disclosure Program:
https://www.etsi.org/standards/coordinated-vulnerability-disclosure
Notice of disclaimer & limitation of liability
The information provided in the present deliverable is directed solely to professionals who have the appropriate degree of
experience to understand and interpret its content in accordance with generally accepted engineering or
other professional standard and applicable regulations.
No recommendation as to products and services or vendors is made or should be implied.
No representation or warranty is made that this deliverable is technically accurate or sufficient or conforms to any law
governmental rule and/or regulation and further, no representation or warranty is made of merchantability or fitness
and/or
for any particular purpose or against infringement of intellectual property rights.
In no event shall ETSI be held liable for loss of profits or any other incidental or consequential damages.

Any software contained in this deliverable is provided "AS IS" with no warranties, express or implied, including but not
limited to, the warranties of merchantability, fitness for a particular purpose and non-infringement of intellectual property
rights and ETSI shall not be held liable in any event for any damages whatsoever (including, without limitation, damages
for loss of profits, business interruption, loss of information, or any other pecuniary loss) arising out of or related to the use
of or inability to use the software.
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.

© ETSI 2022.
All rights reserved.

ETSI

---------------------- Page: 4 ----------------------
SIST ES 201 873-5 V4.9.1:2022

3 ETSI ES 201 873-5 V4.9.1 (2022-04)
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 Definition of terms, symbols and abbreviations . 10
3.1 Terms . 10
3.2 Symbols . 11
3.3 Abbreviations . 11
4 General Structure of a TTCN-3 Test System . 12
4.1 Entities in a TTCN-3 test syst em . 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
ETSI

---------------------- Page: 5 ----------------------
SIST ES 201 873-5 V4.9.1:2022

4 ETSI ES 201 873-5 V4.9.1 (2022-04)
5.5.2.1 triExecuteTestCase (TE → SA) . 21
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) . 22
5.5.2.6 triEndTestCase (TE → SA) . 23
5.5.3 Message based communication operations . 23
5.5.3.1 triSend (TE → SA) . 23
5.5.3.2 triSendBC (TE → SA) . 23
5.5.3.3 triSendMC (TE → SA) . 24
5.5.3.4 triEnqueueMsg (SA → TE) . 24
5.5.4 Procedure based communication operations . 25
5.5.4.1 triCall (TE → SA) . 25
5.5.4.2 triCallBC (TE → SA) . 26
5.5.4.3 triCallMC (TE → SA) . 27
5.5.4.4 triReply (TE → SA) . 28
5.5.4.5 triReplyBC (TE → SA) . 29
5.5.4.6 triReplyMC (TE → SA) . 30
5.5.4.7 triRaise (TE → SA) . 30
5.5.4.8 triRaiseBC (TE → SA) . 31
5.5.4.9 triRaiseMC (TE → SA) . 31
5.5.4.10 triEnqueueCall (SA → TE) . 32
5.5.4.11 triEnqueueReply (SA → TE) . 32
5.5.4.12 triEnqueueException (SA → TE) . 33
5.5.5 Miscellaneous operations . 33
5.5.5.1 triSUTActionInformal (TE → SA) . 33
5.5.5.2 triSUTActionParam (TE → SA) . 33
5.6 Platform interface operations . 34
5.6.1 triPAReset (TE → PA) . 34
5.6.2 Timer operations . 34
5.6.2.1 triStartTimer (TE → PA) . 34
5.6.2.2 triStopTimer (TE → PA). 34
5.6.2.3 triReadTimer (TE → PA) . 35
5.6.2.4 triTimerRunning (TE → PA) . 35
5.6.2.5 triTimeout (PA → TE) . 35
5.6.3 Miscellaneous operations . 36
5.6.3.1 triExternalFunction (TE → PA) . 36
5.6.3.2 triSelf (PA → TE) . 36
5.6.3.3 triRnd (PA → TE) . 36
TM
6 Java language mapping . 37
6.1 Introduction . 37
6.2 Names and scopes . 37
6.2.1 Names . 37
6.2.2 Scopes . 37
6.3 Type mapping . 37
6.3.1 Basic type mapping . 37
6.3.1.0 IDL type mapping . 37
6.3.1.1 Boolean . 38
6.3.1.2 String . 38
6.3.2 Structured type mapping . 38
6.3.2.0 Mapping rules . 38
6.3.2.1 TriPortIdType . 38
6.3.2.2 TriPortIdListType . 39
6.3.2.3 TriComponentIdType . 39
6.3.2.4 TriComponentIdListType . 40
6.3.2.5 TriMessageType . 40
6.3.2.6 TriAddressType . 41
6.3.2.7 TriAddressListType . 41
6.3.2.8 TriSignatureIdType . 42
ETSI

---------------------- Page: 6 ----------------------
SIST ES 201 873-5 V4.9.1:2022

5 ETSI ES 201 873-5 V4.9.1 (2022-04)
6.3.2.9 TriParameterType . 42
6.3.2.10 TriParameterPassingModeType . 43
6.3.2.11 TriParameterListType . 43
6.3.2.12 TriExceptionType . 44
6.3.2.13 TriTimerIdType . 44
6.3.2.14 TriTimerDurationType . 44
6.3.2.15 TriFunctionIdType . 45
6.3.2.16 TriTestCaseIdType . 45
6.3.2.17 TriActionTemplateType . 45
6.3.2.18 TriStatusType . 46
6.4 Constants . 46
6.5 Mapping of interfaces . 47
6.5.0 Basic rules . 47
6.5.1 Out and InOut Parameter Passing Mode . 47
6.5.2 triCommunication - Interface . 47
6.5.2.0 Introduction . 47
6.5.2.1 triCommunicationSA . 47
6.5.2.2 triCommunicationTE. 49
6.5.3 triPlatform - Interface . 49
6.5.3.0 Introduction . 49
6.5.3.1 TriPlatformPA . 49
6.5.3.2 TriPlatformTE . 50
6.6 Optional parameters . 50
6.7 TRI initialization . 50
7 ANSI C language mapping. 50
7.1 Introduction . 50
7.2 Names and scopes . 50
7.2.0 Naming rules . 50
7.2.1 Abstract type mapping . 51
7.2.2 ANSI C type definitions . 52
7.2.3 IDL type mapping . 52
7.2.4 TRI operation mapping . 52
7.3 Memory management . 55
8 C++ language mapping . 55
8.1 Introduction . 55
8.2 Names and scopes . 55
8.3 Memory management . 55
8.4 Void . 55
8.5 Type mapping . 55
8.5.0 Basic rules . 55
8.5.1 Encapsulated C++ types. 55
8.5.2 Abstract data types . 56
8.5.2.1 QualifiedName . 56
8.5.2.2 TriAddress . 56
8.5.2.3 TriAddressList . 57
8.5.2.4 TriComponentId .
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.