IBM
Contents Index Previous Next



A Case Study


The Test Case

For the purposes of this guideline we shall invent a simple case study for an imaginary protocol, which we shall call the X-Protocol. The case study is based on the architecture introduced in the previous section. The IUT is an implementation of the X-protocol.

We shall assume that there is an underlying service provider that provides a network service (N), over which we shall run the test. This leads to the following:

Description of the Case Study

Our examples will introduce the TTCN features necessary to specify the simple scenario described below:

Purpose of the Test Case

The case study has two test purposes, these can be stated as:

  1. The IUT shall accept and return a given number of data packets within the time limitations of the protocol over a single X-connection.
  2. The IUT shall accept and return a given number of data packets within the time limitations of the protocol over two simultaneous X-connections.

Each test purpose will be expressed as a separate test case.

Case Study Road-Map

We shall create a TTCN complete mini-test suite that contains all the TTCN necessary to specify the above test cases. The following table (this is not a TTCN table!) shows the main sections of this example in the order in which they would appear in a real test suite. The complete study can be found in The Complete Case Study. The right-hand column of the table tells you where these sections are described in this guideline:

Section of test suite Described in this guideline

Overview

Suite Overview Part

Configurations

The Test Configuration

Test Suite Parameterization

Test Case Selection

Global Type Definitions

TTCN Types and Values

Global Declarations

Constants and Variables

PCO and CP declarations

PCOs and CPs

Timer Declarations

Timer Statements

ASP, PDU and CM Definitions

Defining ASP, PDU and CM Types

ASP, PDU and CM Values

Specifying ASP, PDU and CM Values

Behaviour Descriptions

Dynamic Behaviour Descriptions


http://www.ibm.com/rational
Contents Index Previous Next