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:6.2.12, Ensure that address type cannot be used in a to part of sender operation with connected ports
13 ** @verdict pass reject
14 ***************************************************/
16 /* The following requirements are tested:
17 * Restrictions c) The address data type shall not be used in the to,
18 * from and sender parts of receive and send operations of connected ports,
19 * i.e, ports used for the communication among test components.*/
22 module NegSem_060212_AddressingEntitiesInsideSut_004 {
24 type integer MyAddress;
25 type integer MyMessType;
29 type port PortType message {
32 } with {extension "internal"}
34 type component TestCaseComp {
39 function CheckConnected() runs on TestCaseComp
41 if(p1.checkstate("Connected")) {
42 setverdict(pass,"Connected");
44 setverdict(fail,"Not connected");
48 testcase TC_NegSem_060212_AddressingEntitiesInsideSut_004() runs on TestCaseComp system TestCaseComp {
50 var PortType.address MySUTentity := 1;
53 connect(mtc:p1, mtc:p2);
55 p1.send(MyMessType: 1) to MySUTentity; //error: address type is allowed in to part send operation
61 execute(TC_NegSem_060212_AddressingEntitiesInsideSut_004());