IBM
Contents Index Previous Next



Creating a Test Suite


What You Will Learn

Creating a New Test Suite

Start by creating a new test suite:

The first step when you have created the new test suite, is to use TTCN Link to generate the declarations. Before you can do this, you have to tell the TTCN Suite what state space generator to use.

Specifying the Link Executable

Before you can generate the declarations, you have to tell the TTCN Suite which link executable to use. You can do this in two ways:

One way is to associate the test suite with the SDL system:

  1. In the Organizer, select the top icon in System inres.
  2. Select Associate from the Edit menu.
    The Associate dialog is opened.
  3. Select the test suite that you have created.
  4. Click the OK button.
    The association is illustrated by a new icon placed under the test suite icon.

Another way is to explicitly specify the state space generator to use:

  1. In the TTCN Suite, select Select Link Executable from the SDT Link menu. (On UNIX, it is the menu in the Browser.)
    The Select Link Executable dialog is opened.
  2. Select inres_stx.exe.
    All generators will by default be given the name <sdl system name>_st<x>.exe, where <x> is depending on which compiler was used when the executable was created.
  3. Click OK.

Note:

In case a link executable has been selected both in the Organizer and in the TTCN Suite, the one selected in the TTCN Suite is the link executable that will be used.

Generating the TTCN Declarations

Since the SDL specification contains all information about the interfaces, this information is available to you when using TTCN Link. When you generate the TTCN declarations, the interface information is extracted from the SDL specification and included in the TTCN test suite as PCO, ASP and data type tables.

To generate the TTCN declarations:

  1. In the TTCN Suite, select Generate Declarations from the SDT Link menu. (On UNIX, it is the menu in the Browser.)
  2. Expand the declarations part of the test suite and have a look at the generated declarations.
    Objects of the following types have been generated:
    • ASN.1 type definitions
    • PCO type declarations
    • PCO declarations
    • ASN.1 ASP type definitions
      The PCO declarations, and the PCO type declarations, are generated from the channels to/from environment in the SDL system.
      The ASP definitions are generated from the SDL signals that can be transported on the channels to/from the environment.
      The ASN.1 type definitions are generated from the types of the parameters of the above mentioned signals.
      Generated declarations will be analyzed automatically.
  3. Expand the dynamic part of the test suite.
    A defaults library is generated. It contains the table OtherwiseFail with an otherwise statement for each PCO, and in addition a timeout statement that match any timeout event.

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