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.

16 TTCN-3 469<br />

d<strong>in</strong>osaur entry is given as a collection of <strong>in</strong>formation about the d<strong>in</strong>osaur. It<br />

isdescribed<strong>in</strong>termsofthename,time, place, length and location. The web<br />

service <strong>in</strong>terface offers different functionalities like search, add, remove, update<br />

of d<strong>in</strong>osaur registrations. The purpose of our TTCN-3 based test system is to<br />

validate the correct behavior of these operations. In TTCN-3 we def<strong>in</strong>e the test<br />

data which the test cases <strong>in</strong>terchange with the SUT, the test configuration by<br />

means of test components and ports, and the validated test behavior.<br />

The data format of the entries <strong>in</strong> the D<strong>in</strong>o web service is given <strong>in</strong> form of<br />

XML Schema. All entries <strong>in</strong> the D<strong>in</strong>o web service must follow this structure.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

A web service is a URL-addressable resource return<strong>in</strong>g <strong>in</strong>formation <strong>in</strong> response<br />

to client requests. Web services are <strong>in</strong>tegrated <strong>in</strong>to other applications or<br />

web sites, even though they exist on other servers. So for example, a web site<br />

provid<strong>in</strong>g quotes for car <strong>in</strong>surance could make requests beh<strong>in</strong>d the scenes to a<br />

web service to get the estimated value of a particular car model and to another<br />

web service to get the current <strong>in</strong>terest rate.<br />

This example will be used <strong>in</strong> all follow<strong>in</strong>g sections <strong>in</strong> order to exemplify<br />

the presented concepts. We will <strong>in</strong>troduce the language by enumerat<strong>in</strong>g its ma<strong>in</strong><br />

elements and <strong>in</strong> parallel we will design a complete test system for our web service<br />

example. Similarly, we describe the components of the execution environment<br />

by show<strong>in</strong>g, on top of this example, how these components are applicable <strong>in</strong><br />

practice.<br />

16.3 TTCN-3 Based Test Specification<br />

This section is an overview of the TTCN-3 core language and it <strong>in</strong>troduces almost<br />

all its key elements. The chapter groups the concepts <strong>in</strong> four parts: Section<br />

1.3.1 presents the structure of a TTCN-3 test suite, 1.3.2 discuses the test system<br />

configuration, 1.3.3 groups together all possibilities to specify test data <strong>in</strong><br />

TTCN-3, and 1.3.4 describes how the test behavior can be def<strong>in</strong>ed <strong>in</strong> TTCN-3.

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

Saved successfully!

Ooh no, something went wrong!