Newer
Older
/*
* @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 {
/*language "TTCN-3:2008 Amendment 1" - FSCOM/YGA*/
import from LibIms_UpperTester all;
import from LibIot_PIXITS all;
import from LibIot_TypesAndValues all;
/*language "TTCN-3:2008 Amendment 1" - FSCOM/YGA*/
import from LibIot_Functions all;
import from LibIot_TestConfiguration all;
import from LibIot_TestInterface all;
import from AtsImsIot_TestSystem all;
import from LibIot_TestInterface all;
import from AtsImsIot_Templates all;
import from AtsImsIot_Functions all;
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";
76
77
78
79
80
81
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);
map(p_monitor:acPort, system:acPort);
// configure oracle
f_cf_oracle_up(p_monitor);
}
/**
Loading full blame...