conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 16_functions_altsteps_testcases / 1602_altsteps / 160201_invoking_altsteps / Sem_160201_invoking_altsteps_001.ttcn
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
7 *
8 * Contributors:
9 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.1
12 ** @purpose 1:16.2.1, Ensure that the IUT recognizes altstep definitions and correctly evaluates them
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_160201_invoking_altsteps_001 {
16
17 type record MessageType {
18 integer field1,
19 charstring field2
20 }
21
22 type port loopbackPort message {
23 inout MessageType
24 } with {extension "internal"}
25
26 type component GeneralComp {
27 port loopbackPort messagePort
28 }
29
30 altstep AltSet1() runs on GeneralComp {
31
32 [] messagePort.receive {
33 setverdict(pass);
34 }
35
36 }
37
38 testcase TC_Sem_160201_invoking_altsteps_001 () runs on GeneralComp {
39 var MessageType v_testMessage;
40 timer t_timer;
41
42 v_testMessage:= {
43 field1 := 1,
44 field2 := "test string"
45 }
46
47 connect(self:messagePort,self:messagePort);
48
49 messagePort.send(v_testMessage);
50 t_timer.start( 1.0 );
51
52 alt {
53 [] AltSet1();
54 [] t_timer.timeout {
55 setverdict(pass);
56 }
57 }
58
59 }
60
61 control{
62
63 execute(TC_Sem_160201_invoking_altsteps_001());
64
65 }
66
67 }
This page took 0.032614 seconds and 5 git commands to generate.