![]() |
![]() |
![]() |
![]() |
![]() |
Importing a TTCN-MP Document
By using the menu choice Convert to GR in the Organizer, you can convert a TTCN-MP document to TTCN-GR and open it in the TTCN Suite. However, note that it is also possible to simply open an MP document.
The Convert to GR tool is flexible, it will read any TTCN-MP file that has been successfully generated by the Convert to MP tool, even if the MP file only contain parts of a test suite. Convert to GR will also read TTCN-MP from other products which support TTCN assuming that this TTCN-MP follows the ISO standard.
For a full EBNF supported by the Convert to GR tool, see The TTCN-MP Syntax Productions in BNF.
An optional but non-standard TTCN-MP for converting TTCN documents that use compact tables and ASN.1 references with an explicit definition, is also supported.
Converting a TTCN Document
For a full description of this command see Convert to GR (TTCN).
MP File Format Problem
When converting certain TTCN documents, a problem with transferring the information (e.g. Description) in the Overview tables to the tables in Dynamic Part, may occur.
The TTCN standard allow path specifications to optionally include the document name first. This has the unfortunate effect that if the TTCN document contains a top level group with the same name as the TTCN document there is, in general, no way of knowing if the first part of the paths is a group identifier or the TTCN document identifier.
The TTCN Suite assumes that if the first part of the path is equal to the document name, it is the optional document name and, when converting, strips it away. When exporting, the document name is always added to the front of all paths. That way the TTCN Suite is always able to convert the MP files it exports. Note that ITEX 2.0 did not add the document name at export, and therefore the problem described here may also apply when converting MP files exported by ITEX 2.0.
If the TTCN document contains top level group identifiers equal to the document name, and the TTCN Suite is unable to resolve the paths, temporarily change the document name in the MP file and change it back once inside the TTCN Suite.
Converting Fields Containing the Dollar Character
Normally the Convert to GR tool ignores the content of the fields of tables in the MP file but, to allow converting of non-BoundedFreeText fields (e.g. TS_VarValue field) with embedded dollar characters (e.g. "$") the Convert to GR tool has been enhanced with a simple syntax checker of the fields. This has the implication that it is no longer possible to convert TTCN documents containing unmatched single or double quotes in non-BoundedFreeText fields, i.e. Convert to GR is less tolerant about syntax errors in the fields.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |