|
Re: TTCN-3 NBIOT Test Case Execution using Eclipse Titan [message #1829056 is a reply to message #1829027] |
Wed, 24 June 2020 12:07 |
|
Hi Mujeeb,
the Eclipse plug-ins part of Titan can be used in two distinct modes:
-as an IDE to the command line part which executes on Linux
-a stand-alone TTCN-3 tool, based on Java workflow , which can equally be executed on Linux and Windows
the latter being under construction , yet lacking some features the legacy Linux part has
It's unclear which functionality you are interested in among the above two ?
Best regards
Elemer
|
|
|
|
Re: TTCN-3 NBIOT Test Case Execution using Eclipse Titan [message #1829098 is a reply to message #1829062] |
Thu, 25 June 2020 07:32 |
|
Hi Mujeeb,
so, let's take it step by step:
First and foremost, there are two ways to encode message structures to binary/decode message structures from binary:
-using external functions aligned with the compiler technology; the command line Titan expects C/C++ functions as
external functions
-a more sophisticated and flexible way is to let the compiler generate the codec functions; for this, the TTCN-3 code has to be
decorated with instructions that tell the compiler how encoding/decoding should be done
very important: these instructions are not standardized, but vary from compiler to compiler, they are implementation dependent
-sometimes a mix of the two above is being used
So if you have encountered errors pointings to codecs, it might mean one of two things:
-Titan is missing the codec external functions
-the protocol module used contains encoding instructions specific to some other tool, unintelligible to Titan, hence the codec
functions cannot be generated (Titan will probably neglect the codec instructions)
Please mind that the Eclipse IDE plug-ins will not help in any of the above situations; semantical/syntax check is performed against
the TTCN-3 code and against Titan-conform encoding instructions only
Depending on the situation, a number of courses of action are possible:
-the missing external codec functions will have to be written
-the encoding instructions that are specific to a tool different from Titan will have to be scrapped, and if possible replaced
with Titan-conform instructions
-if the above is not possible then write a protocol module aligned with Titan
Some examples of such IoT protocol modules :
https://git.eclipse.org/c/titan/titan.ProtocolModules.MQTT
https://git.eclipse.org/c/titan/titan.ProtocolModules.CoAP
An IoT project using Titan and the above protocol modules:
https://projects.eclipse.org/projects/technology.iottestware
Test ports for UDP/TCP etc. can be downloaded from:
https://github.com/eclipse/titan.TestPorts.TCPasp
https://github.com/eclipse/titan.TestPorts.UDPasp
https://github.com/eclipse/titan.TestPorts.IPL4asp (this is a compsite UDP/TCP/SCTP etc. port)
(documentation is included)
Finally, all Titan documentation can be downloaded from
https://projects.eclipse.org/projects/tools.titan/downloads
the reference guide
https://www.eclipse.org/downloads/download.php?file=/titan/ReferenceGuide.pdf
contains detailed information about codec instructions
The below
https://www.eclipse.org/downloads/download.php?file=/titan/Eclipse_installationguide.pdf
https://www.eclipse.org/downloads/download.php?file=/titan/DesignerUserGuide.pdf
https://www.eclipse.org/downloads/download.php?file=/titan/ExecutorUserGuide.pdf
explain the usage of the IDE
However, as the Eclipse plug-ins will only play the role of a front-end in this setup, I would strongly encourage you to use the command line
with a text editor (e.g. Code Mirror) that has support for Titan, until you get familiar with the command line execution.
I wish you success in your project and in your game of criquet :)
BR
Elemer
[Updated on: Thu, 25 June 2020 07:45] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03046 seconds