1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
11 * Szabo, Janos Zoltan – initial implementation
13 ******************************************************************************/
14 // TTCN-3 version of "Hello, world!"
17 type port PCOType message
22 type component MTCType
27 testcase HelloW() runs on MTCType system MTCType
29 map(mtc:MyPCO, system:MyPCO);
30 MyPCO.send("Hello, world!");
34 testcase HelloW2() runs on MTCType system MTCType
37 map(mtc:MyPCO, system:MyPCO);
38 MyPCO.send("Hello, world!");
41 [] MyPCO.receive("Hello, TTCN-3!") { T.stop; setverdict(pass); }
42 [] T.timeout { setverdict(inconc); }
43 [] MyPCO.receive { T.stop; setverdict(fail); }
51 //1 pass, 1 inconc expected