TTCN-3
   HOME

TheInfoList



OR:

TTCN-3 ''(Testing and Test Control Notation version 3)'' is a
strongly typed In computer programming, one of the many ways that programming languages are colloquially classified is whether the language's type system makes it strongly typed or weakly typed (loosely typed). However, there is no precise technical definition ...
testing language used in
conformance testing Conformance testing — an element of conformity assessment, and also known as compliance testing, or type testing — is testing or other activities that determine whether a process, product, or service complies with the requirements of a specifi ...
of communicating systems. TTCN-3 is written by
ETSI The European Telecommunications Standards Institute (ETSI) is an independent, not-for-profit, standardization organization in the field of information and communications. ETSI supports the development and testing of global technical standard ...
in the ES 201 873 series, and standardized by
ITU-T The ITU Telecommunication Standardization Sector (ITU-T) is one of the three sectors (divisions or units) of the International Telecommunication Union (ITU). It is responsible for coordinating standards for telecommunications and Information Co ...
in the Z.160 Series. TTCN-3 has its own data types and can be combined with
ASN.1 Abstract Syntax Notation One (ASN.1) is a standard interface description language for defining data structures that can be serialized and deserialized in a cross-platform way. It is broadly used in telecommunications and computer networking, and ...
, IDL and
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing arbitrary data. It defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. T ...
type definitions.


Standard organization

ITU-T TTCN-3 standard is part of the Z Series and is organized in several parts: * Z.161 - Core Language defining the core textual notation * Z.162 - Tabular presentation format (TFT) - a way to present the tests in a tabular presentation * Z.163 - Graphical presentation format (GFT) - a way to present the tests graphically with a representation that is similar to the MSC * Z.164 - Operational Semantics - Defines how TTCN-3 is executed * Z.165 - TRI - Defines the API provided and required with a tester * Z.166 - TCI - Defines the API provided and required with a test controller * Z.167 - ASN.1 - Defines how to use ASN.1 data types in a TTCN-3 test suite * Z.168 - IDL to TTCN-3 mapping * Z.169 - Using XML schema with TTCN-3


Language organization

; Module: The top level container in a test suite is a module. It is usually a file. ; Component: component is an execution entity. A test case or a function is executed on a component. ; Port: Components communicate with each other or with the SUT through ports that are mapped to each other. ; Test case: A test case is a sequence of sends and receives. When a message is sent to the SUT (System Under Test) several possibles replies can be received. ; Alternative: Since a test case is a sequence of stimuli followed by a set of possible responses, the notation includes alternatives. It is a compact way to list all the possible alternatives in a scenario. ; Template :When sending or receiving information the value of the parameters are of paramount importance. They must be defined when sent and they must be verified when received. The template construct aims at defining the parameters values when sent or verifying the parameter values when received. Since parameters can be quite complex, defining and verifying the values is not a matter of a single line. The template allow complex verification in a single statement so that the test case stays legible. ; Verdict: The verdict is the result of a test case execution. It has 5 possible values: none, pass, inconc, fail, error.


Applications

TTCN-3 has been used to define conformance test suites to SIP,
WiMAX Worldwide Interoperability for Microwave Access (WiMAX) is a family of wireless broadband communication standards based on the IEEE 802.16 set of standards, which provide physical layer (PHY) and media access control (MAC) options. The WiMAX ...
, and
DSRC Dedicated short-range communications (DSRC) are one-way or two-way short-range to medium-range wireless communication channels specifically designed for automotive use and a corresponding set of protocols and standards. History In October 1999, ...
standard protocols. The
Open Mobile Alliance OMA SpecWorks, previously the Open Mobile Alliance (OMA) is a standards organization which develops open, international technical standards for the mobile phone industry. It is a nonprofit Non-governmental organization (NGO), not a formal gov ...
adopted in 2008 a strategy of using TTCN-3 for translating some of the test cases in an enabler test specification into an executable representation. The AUTOSAR project promoted (2008) the use of TTCN-3 within the automotive industry. The 3GPP project promoted the use of TTCN-3 within the mobile industry.3GPP RAN5 Mobile Competence Centre
/ref>


Architecture

When executing the architecture is organized as follow: * TE: TTCN-3 Executable is the executable form of the test suite. * TRI: TTCN-3 Runtime Interface is the interface between the TE and the SUT. It is divided in 2 parts: ** SA: System Adaptor ** PA: Platform Adaptor * TCI: TTCN-3 Control Interfaces is the interface to control the test execution. It is divided in: ** TM: Test Management ** TL: Test Logging ** CD: Coding and Decoding ** CH: Component Handling


Example code

This is an TTCN-3 example with its graphical equivalent in MSC (
Message Sequence Chart A message sequence chart (or MSC) is an interaction diagram from the SDL family standardized by the International Telecommunication Union. The purpose of recommending MSC (Message Sequence Chart) is to provide a trace language for the specificat ...
). module TestSystem


See also

*
TTCN TTCN is a programming language used for testing of communication protocols and web services. A TTCN test suite consists of many test cases written in the TTCN programming language. Until version 2 the language was written in tables and called ''Tre ...
*
ETSI The European Telecommunications Standards Institute (ETSI) is an independent, not-for-profit, standardization organization in the field of information and communications. ETSI supports the development and testing of global technical standard ...


References

{{reflist


External links


ETSI TTCN-3 web site

ETSI TTCN-3 User Conference

A video introduction to TTCN-3

TTCN-3 Quick Reference Card

List of TTCN-3 tools

Exporting of Use Case Map models (ITU-T Z.151) to TTCN-3 (ITU-T Z.161)

A history of TTCN
Programming languages Software testing ASN.1