1 /******************************************************************************
2 * Copyright (c) 2000-2014 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
7 ******************************************************************************/
8 // TTCN-3 version of "Hello, world!"
11 type port PCOType message
16 type component MTCType
18 port PCOType MyPCO_PT;
21 testcase tc_HelloW() runs on MTCType system MTCType
23 map(mtc:MyPCO_PT, system:MyPCO_PT);
24 MyPCO_PT.send("Hello, world!");
28 testcase tc_HelloW2() runs on MTCType system MTCType
31 map(mtc:MyPCO_PT, system:MyPCO_PT);
32 MyPCO_PT.send("Hello, world!");
35 [] MyPCO_PT.receive("Hello, TTCN-3!") { TL_T.stop; setverdict(pass); }
36 [] TL_T.timeout { setverdict(inconc); }
37 [] MyPCO_PT.receive { TL_T.stop; setverdict(fail); }
44 execute(tc_HelloW2());