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:21.3.1, Ensure that named components can be created
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
16 module Sem_210301_CreateOperation_002 {
18 type component GeneralComp {
19 var NewComp vc_NewComp;
23 type component NewComp { }
25 function f_testComp() runs on GeneralComp {
26 var NewComp v_NewComp := NewComp.create("1 & * 5abc");
32 function f_createComp() return NewComp {
33 return NewComp.create("some name");
36 altstep a_createComp() runs on GeneralComp {
38 vc_NewComp := NewComp.create("component#" & int2str(2));
43 testcase TC_Sem_210301_CreateOperation_002() runs on GeneralComp system GeneralComp {
44 var GeneralComp ptc := GeneralComp.create("a component name");
45 ptc.start(f_testComp());
50 execute(TC_Sem_210301_CreateOperation_002());