Skip to content

Basic encounter tests

Thomas Schwotzer edited this page Nov 25, 2025 · 14 revisions

We use the word basic to label the following test scenarios.

Two peers exchange a single message in variants.

Scenario #bytes Action Sequence Expected Result shorthand Scripts Tests
CSx (fkna: CoreA) <100 B opens port; A connects to B; A sends message B received message Cab;Sa:1;Eb:1 v1 plan&results
SCx (fkna: CoreA) <100 A sends message; B opens port; A connects B B received message Sa:1;Cab;Eb:1 v1 plan&results

In a real test, x must be replace by a message len. Default is 1: A single byte is sent during a CS test.

test plan generation

Tests must cover all reasonable configurations. Basis tests involve two peers. They should run on the same machine, on different machines with different Operating systems switching positions.

Lets assume three operating systems, like windows, ubuntu and mac (we should better work with specific OS versions). It's enough to get the picture, though. TCP connections are assumed. Peers can run on the same machine - no network would involved. They can run on different machine in the same local network. They can run on different machine in different networks using Internet to communicate.

That would be the test plan for Basic:CS

Test# Peer A OS Peer B OS network
1 windows windows non - same machine
2 ubuntu ubuntu non - same machine
3 mac mac non - same machine
4 windows windows local network
5 windows ubuntu local network
6 windows mac local network
7 ubuntu windows local network
8 ubuntu ubuntu local network
9 ubuntu mac local network
10 mac windows local network
11 mac ubuntu local network
12 mac mac local network
13 windows windows Internet
14 windows ubuntu Internet
15 windows mac Internet
16 ubuntu windows Internet
17 ubuntu ubuntu Internet
18 ubuntu mac Internet
19 mac windows Internet
20 mac ubuntu Internet
21 mac mac Internet

We need the tests for Basic:SC. We also need to test wih different message length.

Let's define:

  • Small (default message length: 1)
  • Medium: 1000 Byte (appr. 1kbyte)
  • Long: 100,000 Byte (appr. 100kbyte)
  • Very long: 100,000,000 Byte (appr. 100Mbyte)

Alpha Tested Features

Version 1.0

The following scenarios are successfully alpha tested:

CS, CS1k, CS100k, CS100M, SC, SC1k, SC100k, SC100M on Windows 11, Ubuntu (todo), Mac (todo)

Clone this wiki locally