|
|
|
Re: Titan compiler for windows [message #1831908 is a reply to message #1831902] |
Wed, 02 September 2020 11:56 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03584 seconds