Newer
Older
Bostjan Pintar
committed
function f_IS_TLM_GEN_SEC_BV_01 () runs on ItsMapemSpatem {
// Local variables
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
Bostjan Pintar
committed
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
// Preamble
f_prInitialState();
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
)
),
v_spatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithSecurityParameters(
mw_spatemPdu,
-,
c_its_aid_SPAT
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_SEC_BV_01
/**
* @desc TP Function for TC_IS_TLM_GEN_SEC_BV_02
*/
function f_IS_TLM_GEN_SEC_BV_02 () runs on ItsMapemSpatem {
// Local variables
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
Bostjan Pintar
committed
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
// Preamble
f_prInitialState();
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
)
),
v_spatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithSecurityParameters(
mw_spatemPdu,
-,
c_its_aid_SPAT
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_SEC_BV_02
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BV_01
*/
function f_IS_TLM_GEN_SSP_BV_01 () runs on ItsMapemSpatem {
// Local variables
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
Bostjan Pintar
committed
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
// Preamble
f_prInitialState("CERT_SPAT_SSP_NONE");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatemNewContent));
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithSecurityParameters(
mw_spatemPdu,
oct2bit('010000'O),
c_its_aid_SPAT
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_SSP_BV_01
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BV_02
*/
function f_IS_TLM_GEN_SSP_BV_02 () runs on ItsMapemSpatem {
// Local variables
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
Bostjan Pintar
committed
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
// Preamble
f_prInitialState("CERT_SPAT_SSP_ALL");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatemNewContent));
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithSecurityParameters(
mw_spatemPdu,
oct2bit('010000'O),
c_its_aid_SPAT
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
} // End of function f_IS_TLM_GEN_SSP_BV_02
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BO_03
*/
function f_IS_TLM_GEN_SSP_BO_03 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BO_03
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BV_04
*/
function f_IS_TLM_GEN_SSP_BV_04 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BV_04
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BO_05
*/
function f_IS_TLM_GEN_SSP_BO_05 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BO_05
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BV_06
*/
function f_IS_TLM_GEN_SSP_BV_06 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BV_06
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BV_07
*/
function f_IS_TLM_GEN_SSP_BV_07 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BV_07
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BO_08
*/
function f_IS_TLM_GEN_SSP_BO_08 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BO_08
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BO_09
*/
function f_IS_TLM_GEN_SSP_BO_09 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_SSP_BO_09
/**
* @desc TP Function for TC_IS_TLM_GEN_RATE_BV_01
*/
function f_IS_TLM_GEN_RATE_BV_01() runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_GEN_RATE_BV_01
}
group spateMessageProcessing {
/**
Bostjan Pintar
committed
* @desc TP Function for f_IS_TLM_RCV_MSGF_BV_01
*/
Bostjan Pintar
committed
function f_IS_TLM_RCV_MSGF_BV_01 () runs on ItsMapemSpatem {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(m_spatemPdu(m_defaultSpatem)));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (valueof(v_spatemReq.msgOut) , vc_utSpatemEvents[i].spateMsg); i := i + 1) {
// empty on purpose
}
if (i < lengthof(vc_utSpatemEvents) ) {
log("*** " & testcasename() & ": PASS: SPATEM was transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: SPATEM was not transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
} // End of function f_IS_TLM_RCV_MSGF_BV_01
/**
* @desc TP Function for TC_IS_TLM_RCV_SEC_BV_01
*/
function f_IS_TLM_RCV_SEC_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SEC_BV_01
/**
* @desc TP Function for TC_IS_TLM_RCV_SEC_BO_01
*/
function f_IS_TLM_RCV_SEC_BO_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SEC_BO_01
/**
* @desc TP Function for TC_IS_TLM_RCV_SSP_BV_01
*/
function f_IS_TLM_RCV_SSP_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SSP_BV_01
/**
* @desc TP Function for TC_IS_TLM_RCV_SSP_BO_02
*/
function f_IS_TLM_RCV_SSP_BO_02 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SSP_BO_02
/**
* @desc TP Function for TC_IS_TLM_RCV_SSP_BV_03
*/
function f_IS_TLM_RCV_SSP_BV_03 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SSP_BV_03
/**
* @desc TP Function for TC_IS_TLM_RCV_SSP_BO_04
*/
function f_IS_TLM_RCV_SSP_BO_04 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SSP_BO_04
/**
* @desc TP Function for TC_IS_TLM_RCV_SSP_BV_05
*/
function f_IS_TLM_RCV_SSP_BV_05 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SSP_BV_05
/**
* @desc TP Function for TC_IS_TLM_RCV_SSP_BO_06
*/
function f_IS_TLM_RCV_SSP_BO_06 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_TLM_RCV_SSP_BO_06