Net-test-suites include a few TCP test suites written in TTCN-3 for Eclipse titan.core (open source TTCN-3 compiler and runtime).
Test suite | Description |
---|---|
tcp_suite.ttcn | This is an example TCP suite using black box testing approach. |
tcp2_check.ttcnpp | This is a sanity check suite for experimental TCP (TCP2) realizing a white box testing model with the help of JSON based test protocol. |
Both suites will be merged and use a hybrid approach, i.e. black box model with optionally enablable white box features.
Test protocol will be transformed into reusable component (at both sides), suitable for testing of other network protocols/technologies.
Ubuntu: # sudo apt-get install g++ libxml2-dev libssl-dev expect
Fedora: # sudo dnf install gcc-c++ libxml2-devel openssl-devel expect
Options to install titan.core onto your Linux host:
- Install with the supplied script (
~/titan
):# . titan-install.sh
- Get a suitable version from project's download page.
- Install from the source.
- Ubuntu's default titan.core (packaged incorrectly, not recommended):
# sudo apt-get install eclipse-titan
# . titan-env.sh
For Ubuntu's packaged titan.core, TTCN3_DIR=/usr
.
# cd src
# . make.sh
Test suite | Command |
---|---|
tcp_suite.ttcn | # ttcn3_start test_suite tcp_suite.cfg |
tcp2_check.ttcnpp | # ttcn3_start test_suite tcp2_check_3_runs.cfg |
To run any single test from the suite:
# ttcn3_start test_suite tcp2_check_3_runs.cfg tcp2_check.test_tcp_connect_data_close
Test suites send Ethernet frames over UDP/IPv4 to net-test-tools that support:
SUT interface | Default | Encapsulation |
---|---|---|
AF_UNIX | /tmp/slip.sock | SLIP |
PTY | - | SLIP |
TAP | - | - |
IPv4/UDP Endpoint | Purpose |
---|---|
localhost:7771 | net-test-tools interfaced to system under test |
localhost:7777 | Test suite |
Ethernet MAC | TCP Endpoint | Purpose | Manual |
---|---|---|---|
00:00:00:00:00:01 | 192.0.2.1:4242 | System under test | echo app manual/TCP2 manual |
00:00:00:00:00:02 | 192.0.2.2:4242 | Test suite | tcp_suite.ttcn/tcp2_check.ttcnpp |
All endpoints are configurable.
If you have information about a security issue or vulnerability, please follow the process.