Home | Developer's corner | Knowledge base | Working documents | Documentation | Tutorials | Training | How do I | Frequently asked questions | Technical support |
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.
ot start
Download TRex from here and install it.
Create external tool launch configuration for OpenTTCN using TRex menu: Run > External Tools > External Tools...
Press the 'New' button and fill in necessary fields of the external launch configuration screen using the example in the screenshot below:
Save the settings by pressing the 'Apply' button and try the modifications by pressing the 'Run' button.
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.
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.
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
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:\>