[Previous] [Next] [Contents] [Index]


    The ITEX Simulator (on UNIX)

This chapter describes the ITEX Simulator in the UNIX version of ITEX. It gives an introduction to the concept of the ITEX Simulator, as well as a guide to its functionality and an introduction to using the ITEX Simulator for controlling real Executable Test Suites.

Note:  UNIX version

This is the UNIX version of the chapter. The Windows version is The ITEX Simulator (in Windows).

Table of Contents 

The Simulator

The ITEX Simulator allows you to:

The possibilities to pinpoint the cause of the test result beyond the test verdict fail are vast, and will undoubtedly help in improving the time needed for testing in the development phase.

Performing a Simulation

The steps necessary to simulate parts of a test suite are:

  1. Analyze the test suite and make sure it contains no errors. (This can be done using the ITEX CCG dialog.)
  2. Using the ITEX CCG dialog, build an executable test suite with the Use standard kernel radio button set, and with the Simulation kernel selected.


Extracted pic [1]
  1. Start the ITEX Simulator by pressing the simulator quick-button on the top of the ITEX Browser, or selecting Start Simulator from the Browser Tools menu.

Setting Up a Simulation with SDT

A complete test of a system design can be performed prior to building a prototype by designing the system in SDT using SDL, and using ITEX to write test specifications in TTCN, or using a tool to automatically or semi-automatically generate test suites from a system description in any language. The actual testing is then a matter of connecting the two simulators.

To achieve the connection, follow these steps:

  1. Generate and start the SDT Simulator.
  2. Start the ITEX Simulator by selecting the Simulator quick-button from the tool bar of the Browser.
  3. When the ITEX Simulator has appeared, along with a selection of executable test cases and test groups, enter the command
    start-itexin the SDT Simulator, followed by any of the start commands (Forever, Go...).
  4. Select one or more test cases or test groups in the ITEX Simulator Setup window, and press the Run Test button.

The loaded SDL system is now being simulated on the SDT side, and conformance tested from the ITEX side with the ITEX Simulator.

The ITEX Simulator User Interface

Figure 224 : The ITEX Simulator Test Setup window

Extracted pic [9]

The Test Setup window is the main window of the ITEX Simulator. It manages an Executable Test Suite and a number of associated documents. The main part of the window is used for test selection. The left list depicts the currently available tests, and the right list depicts a selection of test cases and/or test groups.

Managing Setup Documents

The menu choices in the File menu are used for creating and saving documents. For information on the operations not mentioned here, see the general description of a Telelogic Tau File menu in File Menu.

File >   New

Creates a new Setup document. The new setup inherits the Executable Test Suite from the current Setup.

File >   Open

Opens a previously saved Setup file in a new window.

File >   Save


Extracted pic [2]

Saves the current Setup file. If the Setup was not previously saved, a name will be prompted for. A saved Setup consists of the file names of the associated documents, as well as the ETS name.

File >   Save As...

Saves the Setup file with another file name. A running ETS might need to be restarted in order for changes to become effective.

File >   Restart ETS

Restarts the Executable Test Suite / Simulator. This may compromise the consistency of running test cases, but might be necessary in order to make changes to the Setup effective.

File >   Close

Closes the current view of the Setup document. If there are no more views of the Setup, the ETS will be terminated along with any test cases. If the Setup has been changed, a dialog will prompt for a file name for saving the Setup before it is closed. If the Setup is the only one currently open, the program will quit.

Selecting Test Cases and Groups

This section lists the Simulator commands available in the Edit menu.

Edit >  Documents > Select ETS

Enables you to select another ETS for the test Setup. This might be useful for selecting a new ETS, using the same Setup as the old one.

Edit >  Documents > Add Document

Enables you to add a document type to this Setup. A standard set of document types are provided by default at program start-up.

Edit >  Show > Test Cases

Sends a command to the ETS such that it lists all Test Cases in the Available list.

Edit >  Show > Test Groups

Sends a command to the ETS such that it lists the Test Groups.

Edit >   Add All

Adds all tests from the set of available tests to the set of selected tests.

Edit >   Add


Extracted pic [6]

Adds the tests currently selected in the Available list, to those present in the Selected list. Both test cases and test groups may be present in the Selected list at the same time.

Edit >   Remove


Extracted pic [7]

Removes the selected tests from the Selected list.

Edit >   Remove All

Removes all tests from the Selected list.

Executing a Test

This section lists the Simulator commands available in the Execute menu.

Execute >  Test > Cancel


Extracted pic [3]

Cancels a test in progress. All information will be lost and the ETS returns to its initial state. This might compromise the consistency of a test since it might leave the IUT in any state.

Execute >  Test > Pause


Extracted pic [4]

Temporarily pauses the test execution. This might be used to examine the state of the IUT or of the ETS.

Execute >  Test > Step


Extracted pic [8]

Steps one line of TTCN code. In a simulated environment this is a well-defined operation, as opposed to a real test system. In the latter case, timing might be compromised.

Execute >  Test > Run test


Extracted pic [5]

Runs/Continues a test at full speed until it is finished or until a breakpoint is reached.

Execute >  Breakpoints > Breakpoints


Extracted pic [17]

Shows the breakpoint editor, as described in The Simulator Editor. Notice: If the quick button is disabled, this is because no breakpoint document is currently associated with the Setup. Use this menu item to add such a breakpoint document to the Setup.

Execute >  Breakpoints > Enable

Enables all breakpoints (default).

Execute >  Breakpoints > Disable

Temporarily disables all breakpoints.

Execute >  Monitor > PCOs

Monitors all PCO Queues in a separate monitor window.

Execute >  Monitor > Timers

Monitors all Timers in a separate monitor window.

Execute >  Monitor > PTCs

Monitors all CPs in a separate monitor window.

Execute >  Monitor > CPs

Monitors all CPs in a separate monitor window.

Execute >   Enable ITEX Tracking

Highlights the next statement line to be executed in the Table Editor. This is on condition that you are running an ITEX Simulator session and that the Simulator was started from within ITEX.

Viewing Documents

This section lists the Simulator commands available in the Window menu.

Window >   New Window

Enables you to display a new view of the same Setup, with a possibly different test selection. No new Setup is created with this command.

Window >   Execution Trace


Extracted pic [18]

Shows a new view of the Test Execution trace. If the item is not accessible, select Document and then Add Trace Document in the Edit menu to add a document of this type to the current Setup.

Window >   Conformance Log


Extracted pic [19]

Shows a new view of the Test Conformance Log. If the item is not accessible, select Document and then Add Log Document in the Edit menu to add a document of this type to the current Setup.

Window >   Configuration Editor


Extracted pic [20]

Shows a new editor for the Test Configuration, see The Simulator Editor. If the item is not accessible, select Document and then Add Configuration Document in the Edit menu to add a document of this type to the current Setup. The Test configuration is system dependent and not used for simulation.

Window >   Parameter Editor


Extracted pic [21]

Shows a new editor for the Test Suite Parameters, see The Simulator Editor. If the item is not accessible, select Document and then Add Parameter Document in the Edit menu to add a document of this type to the current Setup.

The Simulator Editor

A generic editor is present for editing some of the documents, as for instance the Breakpoints, Parameter and the Configuration. It is of limited interest to those who are only interested in simulation, but it might be of more interest if you consider using the GUI for running real executable test suites.

Figure 225 : The Simulator editor for breakpoints

Extracted pic [16]

The editor is row oriented and the format of each row is determined by the current ETS. It is up to the ETS to warn the user for syntactic and/or semantic errors in the edited document. Please refer to the documentation of the ETS for more throughout definitions of the expected contents of each row.

Managing Documents in the Simulator Editor

The menu choices in the File menu are used for creating and saving documents. For more information, see the general description of a Telelogic Tau File menu in File Menu.

Editing Documents in the Simulator Editor

The following section lists the Simulator Editor commands available in the Edit menu.

Edit >   Undo


Extracted pic [10]

Undoes the last change of the document. This functionality is disabled when the document is saved or if a new document is opened. There are more than 200 undo steps.

Edit >   Redo


Extracted pic [11]

Redoes the next undone change to the document. Applying a new operation removes any non-redone steps.

Edit >   Cut


Extracted pic [12]

Cuts the currently selected row from the document. The row is placed in an internal clipboard.

Edit >   Copy


Extracted pic [13]

Copies the currently selected row from the document to the internal clipboard.

Edit >   Paste


Extracted pic [14]

Pastes the contents of the internal clipboard before the currently selected row.

Edit >   Add


Extracted pic [15]

Inserts an empty row before the currently selected row.

Files Handled by the Simulator

A total of 7 file types are handled by the Simulator User interface. Fortunately, most sessions involve only a subset of those file types. The file types and a short description are listed below:

Information Messages

The simulator can present messages to the user in three forms:

Informative Messages

Informative messages are normally presented at the status bar. These might be for instance progress reports or other simple messages, which are only of a temporary interest (such as the tool tips).

Warnings Messages

Warnings, also known as "non-critical errors", are events that indicate a problem during the preparation for a simulation, or during the actual simulation run. These are always presented in standard Motif warning dialogs. Warnings normally does not cause a simulation to halt.

Error Messages

Critical errors will halt the simulation. They are presented by an error dialog that appears in front of the application. The error dialog can often appear large and intimidating, but it simply gives a more verbose reason to why the error occurred, and what steps should be taken to avoid it.

Using the UI with an ETS

The user interface uses a publicly available format for communication with the ETS. Implementation of a management interface for an ETS is simple since the ETS only uses the standard I/O channels for communication with the GUI. Please request a protocol definition from Telelogic if you consider adapting your own test suite using this GUI. It is currently unlicensed and might be started using this command:

Type Mappings in Co-Simulation

This section specifies the data type mapping used by the co-simulation of the SDT and ITEX simulators. Specifically it identifies the transfer syntax used in the communication between the SDT and the ITEX simulators for each supported data type.

TTCN Types

This subsection describes the mapping from TTCN types to SDL types. For each TTCN type the corresponding SDL type and some examples of the transfer syntax is given.

Predefined Types

TTCN Type SDL Type Transfer Syntax Example
INTEGER
integer

1 -3

BOOLEAN
boolean

true false

BITSTRING
bit_string

`0101'B

HEXSTRING
-


OCTETSTRING
octet_string

`4BA0'O

NumericString
NumericString

`3295' (0..9 + space)

PrintableString
PrintableString

`ask38-'

TeletexString
-


VideotextString
-


VisibleString
VisibleString

`xy'

IA5String
charstring

`123 abc'

GraphicString
-


GeneralString
-


References Types

TTCN Type SDL Type Transfer Syntax Example
SimpleType
syntype

same as referenced type

Struct
struct

(. 1, true .)

PDU
struct

(. 1, true .)

ASP

- (ASPs maps to signals)


ASN.1 Types

This subsection describes the mapping from ASN.1 types to SDL types. For each ASN.1 type the corresponding SDL type and some examples of the transfer syntax is given.

ASN.1 Type SDL Type Transfer Syntax Example
BOOLEAN
boolean

true false

INTEGER
integer

1 0 -55

ENUMERATED

enumeration types

The enumerated values

REAL

- (Not supported in ITEX CCG)


BIT STRING
bit_string

`0100'B

OCTET STRING
octet_string

`4BA0'O

NULL
null

Null

SEQUENCE
struct

(. 1, true .)

SEQUENCE OF
array, string

(: 1, 2 :)

SET
-


SET OF
bag, powerset

[ 1, 2, 2 ]

CHOICE
choice

<name> : <value>

ANY
-


OBJECT IDENTIFIER
-


Selection type

-


Tagged type

-


SubType

syntype

same as referenced type

SDL Types

This subsection defines the mapping from SDL to TTCN and to ASN.1. For each SDL type first the TTCN type is given, then the ASN.1 type and finally an example of transfer syntax.

Predefined Sorts

SDL Type TTCN Type ASN.1 Type Transfer Syntax Example
Bit
BITSTRING
BIT STRING (SIZE (1))

`1'B

Bit_String
BITSTRING
BIT STRING

`1010'B

Boolean
BOOLEAN
BOOLEAN

true false

Character
IA5String
IA5String (SIZE (1))

`a'

Charstring
IA5String
IA5String

`123 abc'

IA5String
IA5String
IA5String

`123 abc'

NumericString
NumericString
NumericString

`123'

PrintableString
PrintableString
PrintableString

`ask38-'

VisibleString
VisibleString
VisibleString

`xy'

Duration
-
-


Time
-
-


Integer
INTEGER
INTEGER

0 4 -66

Natural
INTEGER
INTEGER

0 55

Null
-
NULL

Null

Object_Identifier
-
-


Octet
OCTETSTRING
OCTET STRING (SIZE (1))

`FE'O

Octet_String
OCTETSTRING
OCTET STRING

`F0E2'O

PId
-
-


Real
-
-


User Defined Sorts

SDL Type TTCN Type ASN.1 Type Transfer Syntax Example

Syntypes

SimpleTypes

SubType

same as referenced type

Enumeration Sorts

-
ENUMERATED

the enumerated values

Struct
struct
SEQUENCE

(. 1, true .)

    Bit Fields
-
-

(. 2, 3, 0 .)

    Optional
-
-


Choice
-
CHOICE

C1 : 1

Predefined Generators

SDL Type TTCN Type ASN.1 Type Transfer Syntax Example
Array
-
SEQUENCE OF

(: 1, 4, 7 :)

String
-
SEQUENCE OF

(: 1, 4, 7 :)

Powerset
-
SET OF

[ 1, 6, 8 ]

Bag
-
SET OF

[ 1, 6, 6 ]


[Previous] [Next] [Contents] [Index]