From OpenTTCN DocZone

Jump to: navigation, search

  OpenTTCN DocZone

  Home | Developer's corner | Knowledge base | Working documents | Documentation | Tutorials | Training | How do I | Frequently asked questions | Technical support

Last modified November 30, 2007

How do I integrate OpenTTCN Tester with TRex Editor?



OpenTTCN Tester for TTCN-3 can be integrated with TRex TTCN-3 Editor, so that TTCN-3 test cases edited with TRex can be compiled and imported straight to OpenTTCN Tester repository of precompiled TTCN-3 modules.

Step 1

  • Make sure you have OpenTTCN Tester for TTCN-3 installed on your system.
  • Start OpenTTCN server, if you did not do this already. From the command line, this is done this way:
ot start
  • Leave OpenTTCN Tester running in the background.

Step 2

Download TRex from here and install it.

Step 3

Create external tool launch configuration for OpenTTCN using TRex menu: Run > External Tools > External Tools...

Image:Trex_integration_start.jpg

Step 4

Press the 'New' button and fill in necessary fields of the external launch configuration screen using the example in the screenshot below:

Image:Trex_integration.jpg

Save the settings by pressing the 'Apply' button and try the modifications by pressing the 'Run' button.

Step 5

You can use the newly created launch configuration called 'Load TTCN-3 modules' by selecting the TTCN-3 modules that you want to load from the Navigator view and then invoking the 'Load TTCN-3 modules' command by selecting it from the menu.

Image:Trex_integration_load.jpg

The 'Load TTCN-3 modules' command uses importer3 command-line tool. Loading means compiling TTCN-3 modules into precompiled form and putting the result of compilation into OpenTTCN repository of precompiled modules under the specified session name. Session is an OpenTTCN-specific term that means project in terms of TRex.

Step 6

When the load process starts, the console tab of TRex shall indicate the following:

Load TTCN-3 modules [Program] C:\Program Files\OpenTTCN\Tester3\bin\importer3.exe

If the load process was successful, the console tab of TRex shall indicate the following:

<terminated> Load TTCN-3 modules [Program] C:\Program Files\OpenTTCN\Tester3\bin\importer3.exe

Step 7

You can use commands session list and session status SESSION to check if the load process has succeeded. Here is an example of output of the command-line window:

C:\>session list
Demo3
dnsc

C:\>session status Demo3

General
-----------------------------------------------------------------------------
Entity                          Status

Parameter repository            REGISTERED
Main test component             IDLE

Adapters
-----------------------------------------------------------------------------
Name                            Status          Description

Bindings
-----------------------------------------------------------------------------
Name                            Value

Properties
-----------------------------------------------------------------------------
Name                            Value

Suites and modules
-----------------------------------------------------------------------------
Name                            Storage    Type      Last modified

OpenTTCN_TTCN3                  MODULE     TTCN-3    Fri Nov 30 11:42:05 2007


C:\>
Views
Personal tools