OpenTTCN/How do I/Compile test cases for OpenTTCN runtime

From OpenTTCN

Jump to: navigation, search

  OpenTTCN DocZone

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

Last modified April 1, 2008

How do I compile test cases for OpenTTCN runtime?



Contents

The tool functionality explained in this article is available in OpenTTCN Tester for TTCN-3 Professional Edition only.

This article gives instructions on how to compile TTCN-3, TTCN-2, and ASN.1 modules using OpenTTCN Tester for TTCN-3 Professional Edition tool into intermediate compiled OpenTTCN FS format to be distributed and used with royalty free OpenTTCN Runtime.

Information in this article applies only to OpenTTCN Tester for TTCN-3 Professional Edition as the use of the feature described in this article requires the use of OpenTTCN Runtime licenses that are provided only with the Professional Edition. The OpenTTCN Tester for TTCN-3 Professional Edition license allows the use of OpenTTCN Runtime only within the organization; external redistribution option is available separately.

OpenTTCN Runtime is the tester part of OpenTTCN Tester for TTCN-3 Standard Edition with special runtime license key that does not activate the parser and compiler functionality of the tool and without OpenTTCN SDK. OpenTTCN Runtime allows only the use of pre-compiled test cases (OpenTTCN FS format) and compiled TTCN-3 adapters. This compilation can be done with OpenTTCN Tester for TTCN-3 Professional Edition.

Subsequent sections explain how to compile redistributable modules using OpenTTCN Tester for TTCN-3 Professional Edition and use the compiled result with OpenTTCN Runtime.

Compilation of redistributable modules

To compile TTCN-3, TTCN-2, and ASN.1 modules into intermediate compiled OpenTTCN FS format, the following steps need to be performed using OpenTTCN Tester for TTCN-3 Professional Edition:

  1. Stop the Server Part of OpenTTCN Tester. See chapter 5.1.2 in the Command reference for more information.
  2. Remove the content of <installation location>/Tester3/var directory to start from a clean state (removes all testing sessions and their content). Use “del” command in Windows, and “rm” command in Linux to remove all “.fs” files from the above mentioned var directory.
  3. Start Server Part of OpenTTCN Tester. See chapter 5.1.1 in the Command reference for more information.
  4. Create needed testing sessions by invoking “session create” commands. See chapter 5.2.1 in the Command reference for more information.
  5. Compile desired TTCN-3, TTCN-2, and ASN.1 modules to intermediate compiled format by invoking “importer3 load” command for TTCN-3, and ASN.1 modules, and “importer2 load” command for TTCN-2 modules.
  6. Stop the Server Part of OpenTTCN Tester. See chapter 5.1.2 in the Command reference for more information.
  7. Copy the content of <installation location>/Tester3/var directory files and make a zip package out of them if necessary. The “.fs” files in the var directory contain testing session information and TTCN-3, TTCN-2, and ASN.1 modules compiled to intermediate compiled OpenTTCN FS format created during Step 5.
  8. Deliver the “.fs” files, for example as a zip package, to the user having OpenTTCN Runtime installation. The following section explains how these compiled OpenTTCN FS files are used with OpenTTCN Runtime.

Use of compiled modules with OpenTTCN Runtime

To use compiled TTCN-3, TTCN-2, and ASN.1 modules in intermediate compiled OpenTTCN FS format, the following steps need to be performed using OpenTTCN Runtime:

  1. Stop the Server Part of OpenTTCN Tester. See chapter 5.1.2 in the Command reference for more information.
  2. Remove the content of <installation location>/Tester3/var directory to start from a clean state (removes all testing sessions and their content) Use “del” command in Windows, and “rm” command in Linux to remove all “.fs” files from the above mentioned var directory.
  3. Copy compiled OpenTTCN FS files to the <installation location>/Tester3/var directory. Creation of these files is explained in the previous section.
  4. Start the Server Part of OpenTTCN Tester. See chapter 5.1.1 in the Command reference for more information.
  5. OpenTTCN Runtime has now information of the compiled testing sessions and the TTCN-3, TTCN-2, and ASN.1 modules they contain, and you can run the available TTCN-3 and TTCN-2 test cases.
Views
Personal tools