Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Titan compiler for windows
Titan compiler for windows [message #1831711] Thu, 27 August 2020 08:20 Go to next message
Faezeh Khorram is currently offline Faezeh KhorramFriend
Messages: 9
Registered: June 2020
Junior Member
Hi,

I am a beginner in using Titan.
I've followed the steps with this youtube video to install titan eclipse plugin but the problem is that the compiler is not installed.
https://www.youtube.com/watch?v=Fx4Dc5pm_Q0&t=410s

I am using Windows 10 and I couldn't find an answer on how can I install compiler on windows. Could anyone kindly help me?

bests,
Faezeh

Re: Titan compiler for windows [message #1831725 is a reply to message #1831711] Thu, 27 August 2020 14:05 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Faezeh,

Titan can be used in 3 different modes:

1) standalone command line; this will execute in a Linux distribution or a Windows Subsystem For Linux(WSL)
For installation and usage see:

https://www.eclipse.org/downloads/download.php?file=/titan/installationguide.pdf
https://www.eclipse.org/downloads/download.php?file=/titan/UserGuide.pdf

2) Command line with the Eclipse IDE (which can be used for editing, execution etc. and has to be installed on top of the command line part)

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

3) Stand-alone Java
This is yet an experimental mode, not all features are working yet, so I would not recommend you as a beginner to start with this.

I suggest you install WSL on your Windows 10 and start with the command line to get familiar with Titan.
When the basic concepts are in place , you can add the Eclipse Java part.

Needless to say , some knowledge of the TTCN-3 language will be required regardless of which mode you chose.

Best regards
Elemer



Re: Titan compiler for windows [message #1831902 is a reply to message #1831725] Wed, 02 September 2020 08:14 Go to previous messageGo to next message
Faezeh Khorram is currently offline Faezeh KhorramFriend
Messages: 9
Registered: June 2020
Junior Member
Dear Elemer,

Thank you very much, the compiler is correctly set.
I am working with the TITAN eclipse plugin and I try to write some test cases, but I have a basic question:
How the test cases written in TTCN-3 language are executed on the real system?
I couldn't understand how the ports and message exchanges are mapped to the SUT interface? as far as I see, everything should be implemented manually, so there is a high probability of inconsistency between the interfaces. Did I get it right?

In general, if there is any sample project with its test suites written in TTCN-3, kindly share with me.

Bests,
Faezeh
Re: Titan compiler for windows [message #1831908 is a reply to message #1831902] Wed, 02 September 2020 11:56 Go to previous message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Faezeh,


in a real-life situation we have a Node N communicating with the SUT over some protocol stack,
say Application/TCP/IP/Ethernet/Cable. The protocol stack appears in both nodes.

+---------------------+              +--------------------+
|                     |              |                    |
|                     |              |                    |
|                     |              |                    |
+         Node N      +              |                    |
|                     |              |                    |
|                     |              |       SUT          |
|                     |              |                    |
|                     |              |                    |
|                     |              |                    |
|                     |              |                    |
+----------+----------+              +-------+------------+
           |                                 ^
           |         PHY(e.g. Cable)         |
           +---------------------------------+	


When we want to test the SUT, we replace Node N with a simulation, in our case written in TTCN-3. The simulation is usually written in the Application layer which is connected to the top of the communication stack (using function calls which are available and published as the stack API) with test ports.

+---------------------+              +--------------------+
|                     |              |                    |
|        Application  |              |                    |
|                     |              |                    |
+---------------------+              |                    |
|        Test Port    |              |                    |  
+---------------------+              |                    |
|        Ln           |              |       SUT          |
|        ...          |              |                    |
|        L1           |              |                    |
|        L0           |              |                    |
|                     |              |                    |
+----------+----------+              +-------+------------+
           |                                 ^
           |                                 |
           +---------------------------------+	   


So test ports are just glue code that connect the test suite written in TTCN-3 to one of the upper layers of the protocol stack.
The protocol stack can be for instance the TCP/IP stack which resides in Linux.

So the simulated application layer will start messaging via the test port to the protocol stack which will then convey the messages to the SUT node.


"as far as I see, everything should be implemented manually, so there is a high probability of inconsistency between the interfaces. Did I get it right?"

Well, if you do it right , it will work; if not, it will not; but this is no different from other life experiences you may have. :)

I have published many working examples with instructions included of TTCN-3 code in this forum that you will only have to download, build and execute.
They should help you understand the details of test suite to SUT interworking.

Please look through the posts (especially the ones with attached code).

Best regards
Elemer

[Updated on: Wed, 02 September 2020 14:11]

Report message to a moderator

Previous Topic:Eclipse Titan Issue The executable file does not exist
Next Topic:Using GDB debugger for debugging CC files
Goto Forum:
  


Current Time: Thu Oct 10 12:04:30 GMT 2024

Powered by FUDForum. Page generated in 0.03584 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top