USING TTCN-3 EXPRESS
           // TTCN-3 // TUTORIAL // USAGE // INTERFACES // DOWNLOAD // ABOUT

USAGE

// TOOLS // TTCN-3 EXPRESS // TTCN-3 STUDIO // C# EXAMPLE // JAVA EXAMPLE

TTCN-3 EXPRESS

Use the command
   ttxp
to compile and exececute TTCN-3 modules from the command line (the command is in directory ttcn-3, which you should include into your path).

Compiling TTCN-3 modules

To compile a TTCN-3 module MyModule (in file MyModule.ttcn3) use
ttxp /compile MyModule

Compiling adapters and codecs

To process adapters and codecs use the compiler for their implementation language: compile them into one or more (arbitraryly named) dlls; these must be present in the actual directory when running the TTCN-3 module.

When compiling adapters and codecs you have to provide a reference to the standard library which defines the TRI and TCI interfaces: this is named etsi.dll and located in the distrubution directory.

For example, to compile MyAdapter.cs and MyCodec.cs written in C# use

csc /target:library /out:MyConfig.dll /reference:C:\ESPRESSO\ttcn-3\etsi.dll MyAdapter.cs MyCodec.cs

Running TTCN-3 modules

To execute the control part of module MyModule use
ttxp /run MyModule

To execute the a particular test case MyTestCase of module MyModule use

ttxp /run MyModule MyTestCase

Examples

Example with adapter and codec in C#

Example with adapter and codec in Java