Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* @author STF 370
* @version $Id $
* @desc This module contains functions which implement the
* configuration of the SUT adapter and mapping of test
* components for establishing and tearing down different
* test configurations.
*/
module AtsImsIot_TestConfiguration {
import from LibCommon_VerdictControl { type FncRetCode; }
/*language "TTCN-3:2008 Amendment 1" - FSCOM/YGA*/
import from LibIms_UpperTester { modulepar PX_IMS_USER_DATA; }
import from LibIot_PIXITS { modulepar PX_EUT_A, PX_EUT_B, PX_PRODUCTS, PX_MAX_MSG_WAIT; }
import from LibIot_TypesAndValues {
type StartTrafficCaptureRsp, StopTrafficCaptureRsp, MonitorInterfaceInfo, InterfaceInfo, InterfaceInfoList, Product,
ProtocolFilter, StartTrafficCaptureRsp, StopTrafficCaptureRsp, SetFilterReq, SetFilterRsp, Status; }
/*language "TTCN-3:2008 Amendment 1" - FSCOM/YGA*/
import from LibIot_Functions { altstep a_receiveIOTVerdict; function f_setConformanceVerdict, f_setE2EVerdict; }
import from LibIot_TestConfiguration { function f_cf_oracle_up, f_cf_oracle_down; }
import from LibIot_TestInterface {type IotEquipmentUser;}
import from AtsImsIot_TestSystem {type ImsInterfaceMonitor, SipInterfaceMonitor, DiameterInterfaceMonitor, NaptrInterfaceMonitor, SgiInterfaceMonitor, ImsTestCoordinator, CF_INT_CALL, CF_INT_AS, CF_ROAM_AS, CF_EPC_CALL, CF_ATT, CF_ATT_old;}
import from LibIot_TestInterface {type InterfaceMonitor;}
import from AtsImsIot_Templates {
template m_generalConfigurationReq_offline, m_generalConfigurationReq_online, m_generalConfigurationReq_merge,
m_generalConfigurationRsp_success, m_generalConfigurationRsp_error, m_generalConfigurationRsp_timeout,
m_SetFilterReq, mw_SetFilterRsp, m_startTrafficCaptureReq, m_stopTrafficCaptureReq,
m_startTrafficCaptureRsp_any, m_stopTrafficCaptureRsp_any; }
import from AtsImsIot_Functions {function f_setInterfaceNameOnComponent, f_setInterfaceInfoComponent;}
group constantDefinitions {
//* interface monitor name Gm A
const charstring c_gm_A := "Gm A";
//* interface monitor name Gm B
const charstring c_gm_B := "Gm B";
//* interface monitor name Mx A
const charstring c_mx_A := "Mx A";
//* interface monitor name Mx B
const charstring c_mx_B := "Mx B";
//* interface monitor name Ic
const charstring c_ic := "Ici";
//* interface monitor name Isc A
const charstring c_isc_A := "Isc A";
//* interface monitor name Isc B
const charstring c_isc_B := "Isc B";
//* interface monitor name NAPTR
const charstring c_naptr := "NAPTR";
//* eut trigger name User A
const charstring c_trigger_A := "User A";
//* eut trigger name User B
const charstring c_trigger_B := "User B";
//* eut trigger name User A
const charstring c_userUE_A := "User A";
const charstring c_userUE_A_emergency := "User A Emergency";
const charstring c_userUE_A2 := "User A2";
//* eut trigger name User B
const charstring c_userUE_B := "User B";
const charstring c_userUE_B2 := "User B2";
//* eut trigger name User C
const charstring c_userUE_C := "User C";
//* interface monitor name Gm C
const charstring c_gm_C := "Gm C";
//* eut trigger name User D
const charstring c_userUE_D := "User D";
//* interface monitor name Gm D
const charstring c_gm_D := "Gm D";
//* interface monitor name Rx
const charstring c_rx := "Rx"; // See ETSI TS 103 029 V3.1.1 clause 5.4.2
//* interface monitor name Mw
const charstring c_mw := "Mw";
//* interface monitor name Mx
const charstring c_mx := "Mx";
//* interface monitor name Sgi
const charstring c_sgi := "Sgi";
//* interface monitor name Rx
const charstring c_s6a := "S6a";
//* interface monitor name Rx
const charstring c_gx := "Gx";
//* interface monitor name Mm/Mx/Mw
const charstring c_psap := "Psap";
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
}
group mappingFunctions {
/**
*
* @desc initialize the adapter port of MTC
*/
function f_cf_adapter_up() runs on ImsTestCoordinator {
map(self:acPort, system:acPort);
}
/**
*
* @desc uninitialize the adapter port of MTC
*/
function f_cf_adapter_down() runs on ImsTestCoordinator {
unmap(self:acPort, system:acPort);
}
/**
*
* @desc initialize trigger component ports
* @param p_driver trigger component
*/
function f_cf_user_up(in IotEquipmentUser p_driver) runs on ImsTestCoordinator {
// connect sync ports
connect(p_driver:syncPort, self:syncPort);
// connect TSI ports
map(p_driver:eaPort, system:eaPort);
// configure oracle
f_cf_oracle_up(p_driver);
}
/**
*
* @desc uninitialize trigger component ports
* @param p_driver trigger component
*/
function f_cf_user_down(in IotEquipmentUser p_driver) runs on ImsTestCoordinator {
// disconnect sync ports
disconnect(p_driver:syncPort, self:syncPort);
// disconnect TSI ports
unmap(p_driver:eaPort, system:eaPort);
// release oracle ports
f_cf_oracle_down(p_driver);
}
/**
* @desc configures monitor component: connects to the synchronnization
* port, maps to the TSI port and connects to the oracle
* @param p_monitor monitor component
*/
function f_cf_monitor_up(in ImsInterfaceMonitor p_monitor) runs on ImsTestCoordinator {
// connect sync ports
connect(p_monitor:syncPort, self:syncPort);
connect(p_monitor:icpPort, self:icpPort);
// mapp TSI port
map(p_monitor:dPort, system:dPort);
map(p_monitor:acPort, system:acPort);
// configure oracle
f_cf_oracle_up(p_monitor);
}
/**
* @desc configures monitor component: connects to the synchronnization
* port, maps to the TSI port and connects to the oracle
* @param p_monitor monitor component
*/
function f_cf_monitor_up_sip(in SipInterfaceMonitor p_monitor) runs on ImsTestCoordinator {
// connect sync ports
connect(p_monitor:syncPort, self:syncPort);
connect(p_monitor:icpPort, self:icpPort);
// mapp TSI port
map(p_monitor:sipPort, system:sipPort);
map(p_monitor:acPort, system:acPort);
// configure oracle
f_cf_oracle_up(p_monitor);
}
/**
* @desc configures monitor component: connects to the synchronnization
* port, maps to the TSI port and connects to the oracle
* @param p_monitor monitor component
*/
function f_cf_monitor_up_diameter(in DiameterInterfaceMonitor p_monitor) runs on ImsTestCoordinator {
// connect sync ports
connect(p_monitor:syncPort, self:syncPort);
connect(p_monitor:icpPort, self:icpPort);
// mapp TSI port
map(p_monitor:diameterPort, system:diameterPort);
map(p_monitor:acPort, system:acPort);
// configure oracle
f_cf_oracle_up(p_monitor);
}
/**
* @desc configures monitor component: connects to the synchronnization
* port, maps to the TSI port and connects to the oracle
* @param p_monitor monitor component
*/
function f_cf_monitor_up_naptr(in NaptrInterfaceMonitor p_monitor) runs on ImsTestCoordinator {
// connect sync ports
connect(p_monitor:syncPort, self:syncPort);
connect(p_monitor:icpPort, self:icpPort);
// mapp TSI port
map(p_monitor:naptrPort, system:naptrPort);
map(p_monitor:acPort, system:acPort);
// configure oracle
f_cf_oracle_up(p_monitor);
}
/**
* @desc configures monitor component: connects to the synchronnization
* port, maps to the TSI port and connects to the oracle
* @param p_monitor monitor component
*/
function f_cf_monitor_up_sgi(in SgiInterfaceMonitor p_monitor) runs on ImsTestCoordinator {
// connect sync ports
connect(p_monitor:syncPort, self:syncPort);
connect(p_monitor:icpPort, self:icpPort);
// mapp TSI port
map(p_monitor:sgiPort, system:sgiPort);
Loading full blame...