conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 21_configuration_operations / 2101_connection_operations / 210101_connect_and_map_operations / NegSem_210101_map_operation_002.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:21.1.1, Ensure that IUT cannot map input port with output port
13 ** @verdict pass reject
14 ***************************************************/
15
16 // Mycompport A P1 is output port mapped to SUT in port
17 module NegSem_210101_map_operation_002{
18
19 type port loopbackPort message {
20 in integer
21 } with {extension "internal"}
22
23 type port IntegerOutputPortType message {
24 out integer
25 } with {extension "internal"}
26
27 type component GeneralComp
28 {
29 port IntegerOutputPortType MycomportA
30 }
31
32 type component MyTestSystemInterface
33 {
34 port loopbackPort messagePort
35 }
36
37 // MyTestSystemInterface is the test system interface
38 testcase TC_NegSem_210101_map_operation_002() runs on GeneralComp system MyTestSystemInterface {
39
40 // establishing the port connections
41 map(mtc:MycomportA, system:messagePort);
42 //not allowed: MycomportA is out port, meanwhile MySysteminterface port is input
43
44 setverdict(fail);
45
46 }
47
48 control{
49 execute(TC_NegSem_210101_map_operation_002());
50 }
51 }
This page took 0.038133 seconds and 5 git commands to generate.