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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:B.1.2.8, Ensure that the IUT correctly handles template matching of omit values
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 module Sem_B010208_omit_value_001 {
18 type enumerated EnumeratedType {e_black, e_white, e_green};
20 type record RecordType {
26 type union UnionType {
32 type record MessageType {
34 charstring field2 optional,
35 EnumeratedType field3 optional,
36 RecordType field4 optional,
37 UnionType field5 optional,
38 RecordType field6 optional,
39 UnionType field7 optional
42 type port loopbackPort message {
44 } with {extension "internal"}
47 type component GeneralComp {
48 port loopbackPort messagePort
51 testcase TC_Sem_B010208_omit_value_001() runs on GeneralComp {
53 template MessageType mw_matchingTemplate:=
64 var MessageType v_testMessage:= {
74 connect(self:messagePort, self:messagePort);
75 messagePort.send(v_testMessage);
78 [] messagePort.receive(mw_matchingTemplate) {
81 [] messagePort.receive {
88 execute(TC_Sem_B010208_omit_value_001());