@@ -22,30 +22,37 @@ protected void execute() throws Exception {
2222 * script for each peer
2323 */
2424
25- /**
26- * what works - independent tests - no interaction between test peers
27- * Test with one peer... test is executed - results are persistent in test peer
28- * Test with two peers... no script is executed, Clara even claims not to be able to stage a test.
29- */
25+ // what works - independent tests - no interaction between test peers
26+ // 2025-12-03
27+ String script0_0 = "sendMessage HiFromTest;wait 1000;lsMessages;" ;
28+ String script0_1 = "sendMessage HiFromTest;wait 1000;lsMessages;" ;
3029
31- // Orchestrator: orchestrateTest dummy; openTCP 9999
32- // dann Peers: connectTCP localhost 9999 ; scriptRQ
30+ // Orchestrator: orchestrateTest dummy; openTCP 6907
31+ // dann Peers: connectTCP localhost 6907 ; scriptRQ
3332
34- String script1_0 = "connectTCP localhost 9999;release A1;wait 5000;lsMessages;" ;
35- String script1_1 = "openTCP 9999;block A1;sendMessage HiFromBob;wait 5000;" ;
33+ // testing - seems orchestrator does not receive peerSettled release messages - it does sometimes, though.
34+ // Race condition - no doubt. S***.
35+ // check locks - getting even weirder - to test peer names are generated twice?
36+ // There is nothing but a good mystery :)
37+ // what the difference to scenario 0? no additional TCP connections(?)
38+ String script1_A = "wait 5000;connectTCP localhost 9999;release A1;wait 5000;lsMessages;" ;
39+ String script1_B = "openTCP 9999;block A1;sendMessage HiFromBob;wait 5000;" ;
3640
37- // works: 2025.12.03
38- String script0_0 = "sendMessage HiFromTest;wait 1000;lsMessages;" ;
39- String script0_1 = "sendMessage HiFromTest;wait 1000;lsMessages;" ;
41+ /* effective scripts
42+ // message sent but not received but at least scenario runs - it is a race condition causing the problem above.
43+ o: openTCP 1984;block peerSettled_0_0;block peerSettled_0_1;release launchTest_0;;exit;
44+ a: connectTCP 192.168.0.116 1984;release peerSettled_0_0;block launchTest_0;wait 1000;wait 5000;connectTCP localhost 9999;release A1;wait 5000;lsMessages;;exit;
45+ b: connectTCP 192.168.0.116 1984;release peerSettled_0_1;block launchTest_0;wait 1000;openTCP 9999;block A1;sendMessage HiFromBob;wait 5000;;exit;
46+ */
4047
4148 //List<PeerHostingEnvironmentDescription> requiredPeerEnvironment = new ArrayList<>();
4249 List <String > scripts = new ArrayList <>();
4350
4451 // fill with example data
4552 this .getSharkMessengerApp ().tellUI ("use sample data - todo: fill with real data" );
4653 // anything will do
47- scripts .add (script0_0 );
48- scripts .add (script0_1 );
54+ scripts .add (script1_A );
55+ scripts .add (script1_B );
4956
5057 this .snmTestSupport .orchestrateTest (scripts );
5158
0 commit comments