TTCN-3 in a nutshell
Cut your sofware testing expenses
Functional black-box tests automation
What is TTCN-3? (1/2)
► TTCN-3 (Testing and Test Control Notation version 3) is a
strongly typed test scripting language. It is a precessor of
older TTCN standards that have been developed for more
than 15 years by now.
► TTCN has been developed and is maintained by the Methods
for Testing and Specification Technical Committee (TC-MTS)
at ETSI (European Telecommunications Standards Institute).
See more about ETSI...
► TTCN-3 is internationally standardized testing language that
is designed purely for black-box testing and certification.
What is TTCN-3? (2/2)
► TTCN-3 is not restricted to conformance testing and can be
used for many other kinds of testing including interoperability,
robustness, regression, system and integration testing.
► TTCN-3 is platform independent testing technology and there
are many TTCN-3 test tool vendords available.
► TTCN-3 is ‘living’ language and is constantly under
development receiving new input from the whole TTCN-3
community (users, vendors and other stakeholders).
How is TTCN-3 different?
► From conventional programming or scripting language?
► Dedicated language for testing
► Rich type system including native list types and support for subtyping
► Built-in matching mechanism
► Snapshot semantics, i.e., well defined handling of port and timeout queues
during their access
► Concept of verdicts and a verdict resolution mechanism
► Support for specification of concurrent test behaviour
► Support for timers
► Allows test configuration at run-time
► From a test tool or vendor proprietary testing language?
► Not tied to particular application or its interface(s)
► Not tied to any specific test execution environment, compiler or operating
► TTCN-3 as such is not executable, it requires a compiler/interpreter, adapter
as well as codec implementations
TTCN-3 generic framework
Test System User
TM: Test Management TL: Test Logging
TE: TEST EXECUTABLE
SA: System Adapter PA: Platform Adapter
System Under Test (SUT)
TRI and TCI
TTCN-3 Runtime Interface (TRI) is a standardized interface that
helps to connect system adapter with the system under test
TTCN-3 Control Interface (TCI) is a standardized interface helps
to connect external logger, test management and codecs
TTCN-3 application areas
► TTCN-3 popularity is constantly increasing and new users are joining the
► It has been chosen to be the testing language in various large scale
projects, e.g. WIMAX, 3GPP LTE, IPv6, AUTOSAR etc.
► Application areas differentiate greatly, e.g. telecommunication, automotive,
railway, financial etc.
► The levels of applying and using TTCN-3 vary from module to high level
Distributed Telecom Internet Transport
Figure structure: www.etsi.org
TTCN-3 test system requirements
► A TTCN-3 test suite
►A TTCN-3 tool, i.e., a TTCN-3 compiler (or interpreter) plus
► Optionally: implementations for test execution control, logging
and codecs (usually tools offer default implementations for
► A SUT Adapter implementing the means of communication
required by SUT interfaces
► A Platform Adapter implementing a timing model and external
functions (if there are any defined in the test suite)
► Part 1: "TTCN-3 Core Language";
► Part 2: "TTCN-3 Tabular presentation Format (TFT)- not
supported as of version 4.2.1." ;
► Part 3: "TTCN-3 Graphical presentation Format (GFT)";
► Part 4: "TTCN-3 Operational Semantics";
► Part 5: "TTCN-3 Runtime Interface (TRI)";
► Part 6: "TTCN-3 Control Interface (TCI)";
► Part 7: "Using ASN.1 with TTCN-3";
► Part 8: "The IDL to TTCN-3 Mapping";
► Part 9: "Using XML schema with TTCN-3";
► Part 10: "TTCN-3 Documentation Comment Specification"
Public TTCN-3 test suites
► Session Initiation Protocol (SIP)
► IP Multimedia Subsystem (IMS)
► Internet Protocol Version 6 (Ipv6)
► WiMax MAC
► Digital Mobile Radio (DMR)
► Digital Public Mobile Radio (dPMR)
► Dynamic Host Configuration Protocol (DHCPv6)
► 3GPP LTE Test Suite
See more on www.ttcn-3.org
More information available...
ETSI's official TTCN-3 web site: www.ttcn-3.org
► Public TTCN-3 test suites, useful TTCN-3 modules
► Links to commercial as well as open source tools
► Communicating Systems (TESTCOM)
► Presentations of yearly TTCN-3 User Conferences in Europe or Asia (see
www.ttcn-3.org and T3UC)
► Google for various TTCN-3 case studies
An Introduction to TTCN-3 Book
► Willcock, Deiss, Tobies, Keil, Engler, Schulz
► ISBN 0-470-01224-2