Newer
Older
tc_noac.stop;
log("*** " & testcasename() & ": FAIL: Unexpected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No SPAT message received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// 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();
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
// 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('014000'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();
} // 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 {
// 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
// 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_noac.stop;
log("*** " & testcasename() & ": FAIL: Unexpected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No SPAT message received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// 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();
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
// 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('012000'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();
} // 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 {
// 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
// Preamble
f_prInitialState("CERT_SPAT_SSP_ALL");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
Bostjan Pintar
committed
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatemNewContent));
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithSecurityParameters(
mw_spatemPdu,
oct2bit('012000'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_07
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BO_08
*/
function f_IS_TLM_GEN_SSP_BO_08 () 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
// Preamble
f_prInitialState("CERT_SPAT_SSP_NONE");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
Bostjan Pintar
committed
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
// 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_noac.stop;
log("*** " & testcasename() & ": FAIL: Unexpected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No SPAT message received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // 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 {
// 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
// Preamble
f_prInitialState("CERT_SPAT_SSP_NONE");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
Bostjan Pintar
committed
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
// 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_noac.stop;
log("*** " & testcasename() & ": FAIL: Unexpected secured SPATEM received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No SPAT message received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_poDefault();
f_cfDown();
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
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
} // 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 {
// Local variables
var SpatemInd v_spatem;
timer t_minTransInterval := PICS_T_GEN_SPATEM_MIN * 0.90;
timer t_maxTransInterval := PICS_T_GEN_SPATEM_MAX * 1.10;
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_SPATEM_TRANSMISSION_RATE) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION and PICS_SPATEM_TRANSMISSION_RATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
)
),
v_spatem
);
t_minTransInterval.start;
t_maxTransInterval.start;
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu
)) {
tc_ac.stop;
if (t_minTransInterval.running) {
log("*** " & testcasename() & ": PASS: Successfully received SPATEM PDU header. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: SPAT message was received before t_minTransInterval expiry. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
}
[] t_minTransInterval.timeout {
repeat;
}
[] t_maxTransInterval.timeout {
log("*** " & testcasename() & ": FAIL: SPAT message was not received within the t_minTransInterval/t_maxTransInterval expiration ***");
f_selfOrClientSyncAndVerdictPreamble(c_tbDone, e_error);
}
[] 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_RATE_BV_01
}// end group spateSecurityParameters
group spateMessageProcessing {
Bostjan Pintar
committed
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
/**
* @desc TP Function for f_IS_TLM_RCV_MSGF_BV_01
*/
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_prInitialState();
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);
}
Bostjan Pintar
committed
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
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 (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);
}
Bostjan Pintar
committed
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
Bostjan Pintar
committed
// Test component configuration
f_cfUp("TLM_RCV_SEC_BO_01");
Bostjan Pintar
committed
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
Bostjan Pintar
committed
// Test Body
v_spatemReq := valueof(m_spatemReq(m_spatemPdu(m_defaultSpatem)));
mapemSpatemPort.send(v_spatemReq) ;
Bostjan Pintar
committed
f_sleep(PX_TAC);
if (0 == lengthof(vc_utSpatemEvents) ) {
log("*** " & testcasename() & ": PASS: SPATEM was not transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: SPATEM was transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
Bostjan Pintar
committed
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(
m_spatemPdu(
m_spatem(
{m_intersection}
)
)
));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (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);
}
Bostjan Pintar
committed
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(
m_spatemPdu(
m_spatem(
{m_intersection}
)
)
));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (v_spatemReq.msgOut , vc_utSpatemEvents[i].spateMsg); i := i + 1) {
// empty on purpose
}
if(lengthof(vc_utSpatemEvents)==0) {
log("*** " & testcasename() & ": PASS: SPATEM was NOT transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
else {
log("*** " & testcasename() & ": FAIL: SPATEM was transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
Bostjan Pintar
committed
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(
m_spatemPdu(
m_spatem(
{m_intersection_regional}
)
)
));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (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);
}
Bostjan Pintar
committed
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(
m_spatemPdu(
m_spatem(
{m_intersection_regional}
)
)
));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (v_spatemReq.msgOut , vc_utSpatemEvents[i].spateMsg); i := i + 1) {
// empty on purpose
}
if(lengthof(vc_utSpatemEvents)==0) {
log("*** " & testcasename() & ": PASS: SPATEM was NOT transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
else {
log("*** " & testcasename() & ": FAIL: SPATEM was transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
Bostjan Pintar
committed
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(
m_spatemPdu(
m_spatem(
{m_intersection_maneuverAssistList(
{ m_connectionManeuverAssist(2) }
)}
)
)
));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (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);
}
Bostjan Pintar
committed
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
// Postamble
f_poDefault();
f_cfDown();
} // 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 {
// Local variables
var SpatemReq v_spatemReq;
var integer i;
if (not PICS_SPATEM_RECEPTION or not PICS_IS_IUT_SECURED) {
log("*** " & testcasename() & ": PICS_SPATEM_RECEPTION and PICS_IS_IUT_SECURED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_spatemReq := valueof(m_spatemReq(
m_spatemPdu(
m_spatem(
{m_intersection_maneuverAssistList(
{ m_connectionManeuverAssist(2) }
)}
)
)
));
mapemSpatemPort.send(v_spatemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utSpatemEvents) and not match (v_spatemReq.msgOut , vc_utSpatemEvents[i].spateMsg); i := i + 1) {
// empty on purpose
}
if(lengthof(vc_utSpatemEvents)==0) {
log("*** " & testcasename() & ": PASS: SPATEM was NOT transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
else {
log("*** " & testcasename() & ": FAIL: SPATEM was transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
Bostjan Pintar
committed
// Postamble
f_poDefault();
f_cfDown();
} // End of function f_IS_TLM_RCV_SSP_BO_06
} // End of group spateMessageProcessing
} // End of module ItsSpatem_TpFunctions