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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

• Tabular Presentation Format. TTCN-3 offers optional presentation formats.<br />

The tabular format is similar <strong>in</strong> appearance and functionality to earlier versions<br />

of TTCN. It was designed for users that prefer the TTCN-2 style of<br />

writ<strong>in</strong>g test suites. A TTCN-3 module is presented <strong>in</strong> the tabular format as<br />

a collection of tables [Ins03].<br />

• Graphical Presentation Format. It is the second presentation format of<br />

TTCN-3 and is based on the MSC format [ITU99] (Message Sequence<br />

Charts). The graphical format is used to represent graphically the TTCN-3<br />

behavior def<strong>in</strong>itions as a sequence of diagrams [Ins03].<br />

• Operational semantics. This document describes the mean<strong>in</strong>g of TTCN-3<br />

behavior constructs and provides a state oriented view of the execution of a<br />

TTCN-3 module [Ins03].<br />

• The TTCN-3 Runtime Interface (TRI). A complete test system implementation<br />

requires also a platform specific adaptation layer. The TRI document<br />

conta<strong>in</strong>s the specification of a common API <strong>in</strong>terface to adapt TTCN-3 test<br />

systems to SUT [Ins03].<br />

• The TTCN-3 Control Interfaces (TCI). This part provides an implementation<br />

guide-l<strong>in</strong>e for the execution environments of TTCN-3. It specifies the<br />

API the TTCN-3 execution environments should implement <strong>in</strong> order to ensure<br />

the communication, management, component handl<strong>in</strong>g, external data<br />

control and logg<strong>in</strong>g [Ins03].<br />

16.1.4 Chapter Overview<br />

The rest of the chapter is structured as it follows: Section1.2 <strong>in</strong>troduces a webservice<br />

test example which will be used among all sections to exemplify the<br />

TTCN-3 concepts, Section1.3 <strong>in</strong>troduces the semantic of the TTCN-3 language<br />

artifacts, next, Section1.4 presents some issues on TTCN-3 compil<strong>in</strong>g. Section1.5<br />

<strong>in</strong>troduces TCI and TRI specifications and presents how the TTCN-3 test systems<br />

can be realized on top of these <strong>in</strong>terfaces. Section1.6 concentrates on test<br />

configuration and deployment reveal<strong>in</strong>g some of the related problems. Summary<br />

and an outlook are presented <strong>in</strong> Section1.7<br />

16.2 Web Service Test<strong>in</strong>g Example<br />

In this section we try to show how easy or how complex it is to use TTCN-3 by<br />

us<strong>in</strong>g an web service test as example. The ma<strong>in</strong> idea is to def<strong>in</strong>e a test system for<br />

<strong>in</strong>teraction with the system under test (the web service) and validate its basic<br />

functionality (i.e. simple queries). TTCN-3 test components are used to emulate<br />

system clients. These test components perform the basic functional tests <strong>in</strong> order<br />

to evaluate the reaction of the system to selected service requests or complex<br />

service request scenarios. The comb<strong>in</strong>ation of test components perform<strong>in</strong>g different<br />

basic functional tests and their parallel execution leads to different test<br />

scenarios for the system under test.<br />

In our example we use a d<strong>in</strong>osaurian database web service (D<strong>in</strong>o web service)<br />

which conta<strong>in</strong>s d<strong>in</strong>osaurian <strong>in</strong>formation stored <strong>in</strong> form of database entries. A

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

Saved successfully!

Ooh no, something went wrong!