TTCN-3 NBIOT Test Case Execution using Eclipse Titan [message #1829027] |
Wed, 24 June 2020 03:37  |
Eclipse User |
|
|
|
Dear Members,
I have followed the Titan executer and designer installation guides for eclipse and was able to install Titan plugin for eclipse. Now I need to execute NBIOT TTCN-3 Test case using Eclipse in order to debug it. Mean while I have been able to execute the NBIOT TTTCN-3 test using Cmd line execution using a TTCN-3 precompiled binary.
Can you guys kindly guide me how I can execute NBIOT Test case using Pre-compiled binary using Eclipse? and How I can compile TTCN-3 NBIOT Test suite using Eclipse on Linux. Please share all relevant resources and help on this.
Thanks for your kind support.
Regards,
Mujeeb
|
|
|
|
|
Re: TTCN-3 NBIOT Test Case Execution using Eclipse Titan [message #1829098 is a reply to message #1829062] |
Thu, 25 June 2020 03:32   |
Eclipse User |
|
|
|
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 03:45] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03425 seconds