07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 TTCN-3<br />

George D<strong>in</strong><br />

Fraunhofer Fokus – Institute for Open Communication Systems<br />

d<strong>in</strong>@fokus.fraunhofer.de<br />

16.1 Introduction<br />

This chapter presents TTCN-3, the Test<strong>in</strong>g and Test Control Notation, which<br />

is the most used technology <strong>in</strong> the protocol test<strong>in</strong>g field. Many of the previous<br />

chapters concern the problem of how to create tests for a system we want to<br />

test. In this chapter we consider the problem of test execution. Test execution<br />

comprises the follow<strong>in</strong>g activities: test data is applied to a SUT, the behavior<br />

of the SUT is monitored, and expected and actual behaviors are compared <strong>in</strong><br />

order to yield a verdict.<br />

Before present<strong>in</strong>g details about test execution with TTCN-3 we consider it<br />

is worth present<strong>in</strong>g shortly the evolution of TTCN-3. The creation of TTCN-3<br />

was an <strong>in</strong>cremental process start<strong>in</strong>g from a version which was adequate only<br />

for protocol test<strong>in</strong>g and f<strong>in</strong>ish<strong>in</strong>g with a standardized, full-featured language<br />

applicable for many test<strong>in</strong>g doma<strong>in</strong>s.<br />

16.1.1 Evolution of TTCN-3<br />

The design process of TTCN language is presented by ITU (International Organization<br />

for Standardization) <strong>in</strong> [ITU02]. TTCN was first published <strong>in</strong> 1992,<br />

as an ISO standard. S<strong>in</strong>ce then, TTCN language has been <strong>in</strong>tensively used to<br />

specify tests for different technologies like Global System for Mobile Communication<br />

(GSM), Digital Enhanced Cordless Technologies (DECT), Inteligent<br />

Network Application Protocol (INAP), Integrated Services Digital Network (N-<br />

ISDN, B-ISDN). This first version of TTCN was not a proper language, but a<br />

tabular notation. It was not possible to describe concurrent behaviors with<strong>in</strong><br />

the test system, which was an impediment to apply TTCN to test <strong>in</strong> parallel<br />

the different facets of the system under test. There were miss<strong>in</strong>g concepts like<br />

packag<strong>in</strong>g, encapsulation and there was also no support for manipulat<strong>in</strong>g external<br />

data like ASN1 1 (Abstract Syntax Notation One). All these became possible<br />

<strong>in</strong> the TTCN-2 (Tree and Tabular Comb<strong>in</strong>ed Notation) version proposed<br />

<strong>in</strong> ISO/IEC (International Organization for Standardization and International<br />

Electrotechnical Commission) and <strong>in</strong> ITU-T (InternationalTelecommunications<br />

Union-Telecommunications Standard Sector) <strong>in</strong> 1998.<br />

Although the language was improved, TTCN-2 was rather associated with<br />

conformance test<strong>in</strong>g and was not suitable for various k<strong>in</strong>ds of test<strong>in</strong>g such as<br />

1<br />

ASN.1 is the language used by the Open System Interconnection (OSI) protocols for<br />

describ<strong>in</strong>g abstract syntax.<br />

M. Broy et al. (Eds.): Model-Based Test<strong>in</strong>g of Reactive Systems, LNCS <strong>3472</strong>, pp. 465-496, 2005.<br />

© Spr<strong>in</strong>ger-Verlag Berl<strong>in</strong> Heidelberg 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!