IBM
Contents Index Previous Next



TTCN Test Logs in MSC Format


The TTCN standard conformance log, though it is a relatively complete logging format, has a few drawbacks for some purposes:

In order to get a more high-level view, the log must either be filtered or another approach needs to be taken - in this case the MSC log format. The current version of the TTCN Suite has support for an additional logging mode, to generate MSC/PR standard conformant logs - automatically saved in files and also directly to the MSC Editor.

For limitations in the MSC logging, see "MSC Logging" on page 42 in chapter 1, Compatibility Notes, in the Release Guide.

MSC Logging Applications

There are several applications of MSC logging. Here are some:

MSC Logging Modes

There are three major modes of logging, which can be toggled between the test cases. It is not possible to change the logging mode in a running test case since that would cause an inconsistency in the MSC file. The modes are:

MSC Instances Generated

Entity Composed Decomposed Comment

SUT

Yes

No


PCO

Yes

Yes


MTC

No

Yes


PTC

No

Yes

Dynamic

Events Logged

Event Composed Decomposed Comment

Final Verdict

Yes

Yes

MSC Text

Preliminary Verdict

No

Yes

MSC Condition

Create

No

Yes


Done

No

Yes


Send to PCO

Yes

Yes


Send to CP

No

Yes


Receive from PCO

Yes

Yes


Receive from CP

No

Yes


Implicit send

No

Yes


Start Timer

No

Yes


Cancel Timer

No

Yes


Timeout Timer

No

Yes


Implicit Cancel

No

Yes

End of TC

Implicit Receive

No

Yes

End of TC

Message Values

Yes

Yes


Compiling an ETS with MSC Generation

The ETS Generator can be compiled for a workstation or an embedded environment. Some modifications need to be done for applying it in the embedded environment if it lacks a file system. By default the tool will allow for any of these combinations at code generation time. For more information see "MSC Generation Modifications" on page 1336.

Definitions that may be changed to customize the MSC generation:

Definitions Explanation

MSC_DEFAULT_SYSTEM_NAME

Name of IUT instance in composed mode.

MSC_MAX_VALUE_LEN

Maximum length of an encoded message value.

MSC_NO_VALUE_LOGGING

If defined, no message values are displayed - this may make the ETS more efficient and the MSC logs more readable when using complex messages.

MSC Generation Modifications

Modifications to the MSC generation for running on an embedded environment include:


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