Newer
Older
/**
Bostjan Pintar
committed
* @author ETSI STF517 /TTF002
* @version $Url: https://oldforge.etsi.org/svn/ITS/tags/20170222_STF527_Final/ttcn/AtsMapemSpatem/ItsSpatem_TpFunctions.ttcn $
* $Id: ItsSpatem_TpFunctions.ttcn,v 1.4 2018/12/06 17:59:36 dte Exp $
* @desc SPATEM TP functions
* @copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
*
*/
module ItsSpatem_TpFunctions {
// LibCommon
import from LibCommon_BasicTypesAndValues all;
import from LibCommon_Sync all;
import from LibCommon_VerdictControl all;
import from LibCommon_Time all;
// LibItsCommon
import from LibItsCommon_Functions all;
import from LibItsCommon_TypesAndValues all;
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from MAPEM_PDU_Descriptions language "ASN.1:1997" all;
import from SPATEM_PDU_Descriptions language "ASN.1:1997" all;
import from DSRC language "ASN.1:1997" all;
// LibItsMapemSpatem
import from LibItsMapemSpatem_TestSystem all;
import from LibItsMapemSpatem_Functions all;
import from LibItsMapemSpatem_Templates all;
import from LibItsMapemSpatem_TypesAndValues all;
import from LibItsMapemSpatem_Pics all;
group spateMessageDissemination {
group spateMessageFormat {
/**
Bostjan Pintar
committed
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_01
*/
Bostjan Pintar
committed
function f_IS_TLM_GEN_MSGF_BV_01 () runs on ItsMapemSpatem {
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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_MSGF_BV_01
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_02
*/
function f_IS_TLM_GEN_MSGF_BV_02 () runs on ItsMapemSpatem {
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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
// Wait for SPATEM sent
tc_ac.start(2.0);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
?, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
- //MovementList p_states
)}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_MSGF_BV_02
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_03
*/
function f_IS_TLM_GEN_MSGF_BV_03 () runs on ItsMapemSpatem {
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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
// Wait for SPATEM sent
tc_ac.start(2.0);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
-, //IntersectionReferenceID p_id
?, //MsgCount p_revision
-, //IntersectionStatusObject p_status
- //MovementList p_states
)}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_MSGF_BV_03
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_04
*/
function f_IS_TLM_GEN_MSGF_BV_04 () runs on ItsMapemSpatem {
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for SPATEM sent
tc_ac.start(2.0);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_MSGF_BV_04
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_05
*/
function f_IS_TLM_GEN_MSGF_BV_05 () runs on ItsMapemSpatem {
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for SPATEM sent
tc_ac.start(2.0);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
-, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
)}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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
Bostjan Pintar
committed
Bostjan Pintar
committed
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_06
*/
function f_IS_TLM_GEN_MSGF_BV_06 () runs on ItsMapemSpatem {
var MapemInd v_mapem;
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Preamble
f_prInitialState();
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for MAPEM sent
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
?
)
}
))),
v_mapem
);
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_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
{
*,
mw_movementState(
?,//SignalGroupID,
? //MovementEventList,
),
*
} //MovementList p_states
)}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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
Bostjan Pintar
committed
Bostjan Pintar
committed
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_07
*/
function f_IS_TLM_GEN_MSGF_BV_07 () runs on ItsMapemSpatem {
Bostjan Pintar
committed
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
// Local variables
var MapemInd v_mapem;
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for MAPEM sent
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
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_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
{
*,
mw_movementState(
?,//SignalGroupID,
? //MovementEventList,
),
*
} //MovementList p_states
)}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_MSGF_BV_07
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_08
*/
Bostjan Pintar
committed
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
Bostjan Pintar
committed
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for MAPEM sent
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
{
*,
mw_movementState(
?,//SignalGroupID,
{
mw_movementEvent( //MovementEventList,
-,
mw_timeChangeDetails( //timing
? //minEndTime
)
)
}
),
*
} //MovementList p_states
)}
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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();
/**
*/
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for MAPEM sent
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
{
*,
mw_movementState(
?,//SignalGroupID,
{
mw_movementEvent( //MovementEventList,
-,
mw_timeChangeDetails( //timing
?, //minEndTime
*, //startTime
? //nextTime
)
)
}
),
*
} //MovementList p_states
)}
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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();
/**
*/
// Local variables
var ItsMapemSpatem v_mapem;
var ItsMapemSpatem v_spatem;
// Test control
if (not (PICS_SPATEM_GENERATION and PICS_SPATEM_PRIORITIZATION)) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION AND PICS_SPATEM_PRIORITIZATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cf02Up();
// Preamble
// Start components
v_mapem := f_getComponent(c_compMap);
v_spatem := f_getComponent(c_compSpat);
v_mapem.start(f_IS_TLM_GEN_MSGF_BV_10_MAPEM());
v_spatem.start(f_IS_TLM_GEN_MSGF_BV_10_SPATEM());
// Synchronization
f_serverSync2ClientsAndStop({c_prDone, c_tbDone});
// Cleanup
f_cf02Down();
} // End of function f_IS_TLM_GEN_MSGF_BV_10
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_10_CAM
*/
function f_IS_TLM_GEN_MSGF_BV_10_MAPEM () runs on ItsMapemSpatem {
// Local variables
var MapemInd v_mapem;
var IntersectionReferenceID v_id;
// Preamble
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{mw_intersectionGeometry(
?,//IntersectionReferenceId
-,
-,
{mw_roadLane(
-,//laneID
?,//laneAttributes
-,//p_ingressApproach
-,//egressApproach
? //connectsTo
)}
)}
)
)),
v_mapem
);
v_id := v_mapem.msgIn.map_.intersections[0].id;
log("IntersectionReferenceID = ", v_id);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} // End of function f_IS_TLM_GEN_MSGF_BV_10_MAPEM
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_10_SPATEM
*/
function f_IS_TLM_GEN_MSGF_BV_10_SPATEM () runs on ItsMapemSpatem {
// Local variables
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
f_prInitialState();
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Test Body
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState_regional(
?, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
-,
? //regional
)}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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();
/**
*/
// Local variables
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_SPATEM_PEDESTRIAN_MANOEUVRES) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION and PICS_SPATEM_PEDESTRIAN_MANOEUVRES required for executing the TC ***");
setverdict(inconc);
stop;
}
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for MAPEM sent
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
);
f_utTriggerEvent(m_utTriggerEvent(tlmPedestrianDetected));
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState_maneuverAssistList(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject,
-,
{
*,
mw_connectionManeuverAssist(
?, // connectionID
? // pedBicycleDetect
),
*
}
)
}
)
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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();
/**
*/
// Local variables
if (not (PICS_SPATEM_GENERATION and PICS_SPATEM_HAS_OPTIMAL_SPEED)) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_OPTIMAL_SPEED required for executing the TC ***");
f_utTriggerEvent(m_utTriggerEvent(spatProfile1));
// Wait for MAPEM sent
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
{
*,
mw_movementState(
?,//SignalGroupID,
{
mw_movementEvent( //MovementEventList,
-,
-,
{
mw_advisorySpeed( //speeds
(ecoDrive, transit), //type
? //speed
)
}
)
}
),
*
} //MovementList p_states
)}
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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_utTriggerEvent(m_utTriggerEvent(stopTLMService));
f_poDefault();
f_cfDown();
function f_IS_TLM_GEN_MSGF_BV_13 () runs on ItsMtc {
// Local variables
var MapemInd v_mapem;
var SpatemInd v_spatem;
// Test control
if (not (PICS_SPATEM_GENERATION and PICS_SPATEM_HAS_SIGNAL_PROGRESSION_SPEED)) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_SIGNAL_PROGRESSION_SPEED required for executing the TC ***");
setverdict(inconc);
stop;
}
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile2));
// Wait for MAPEM sent
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
{
*,
mw_movementState(
?,//SignalGroupID,
{
mw_movementEvent( //MovementEventList,
-,
-,
{
mw_advisorySpeed( //speeds
greenwave, //type
? //speed
)
}
)
}
),
*
} //MovementList p_states
)}
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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();
/**
*/
// Local variables
if (not (PICS_SPATEM_GENERATION and PICS_SPATEM_HAS_EGRESS_QUEUE)) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_EGRESS_QUEUE required for executing the TC ***");
Bostjan Pintar
committed
f_utTriggerEvent(m_utTriggerEvent(spatProfile3));
// Wait for MAPEM sent
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{
mw_intersectionGeometry(
-, -, -,
{ *, mw_roadLane(-, mw_laneAttributes_crosswak), * }
)
}
))),
v_mapem
);
// Wait for SPATEM sent
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
{mw_IntersectionState_maneuverAssistList(
v_mapem.msgIn.map_.intersections[0].id, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
-, //MovementList p_states
{ *, mw_connectionManeuverAssist_queueAndAvailableStorageLength, * }
)
}
)
)
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received SAPTEM PDU header. ***");
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);
}
}
Bostjan Pintar
committed
Bostjan Pintar
committed
} // End of group spateMessageFormat
Bostjan Pintar
committed
/**
* @desc TP Function for f_IS_TLM_GEN_EVGN_BV_01
*/
function f_IS_TLM_GEN_EVGN_BV_01() runs on ItsMapemSpatem {
// Local variables
Bostjan Pintar
committed
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
Bostjan Pintar
committed
// Test component configuration
f_cfUp();
Bostjan Pintar
committed
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received well-formed SPATEM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a SPATEM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
Bostjan Pintar
committed
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_EVGN_BV_01
/**
* @desc TP Function for f_IS_TLM_GEN_EVGN_BV_02
*/
function f_IS_TLM_GEN_EVGN_BV_02() runs on ItsMapemSpatem {
// Local variables
var SpatemInd v_spatem;
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
)
),
v_spatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatProfile0)); // FIXME Add parameters to update default profile or create a MamSpatUpdate message
tc_ac.start;
alt {
[] mapemSpatemPort.receive(v_spatem) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: The same SPATEM was received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received a new well-formed SPATE message. ***");
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_EVGN_BV_02
/**
* @desc TP Function for f_IS_TLM_GEN_EVGN_BV_03
*/
function f_IS_TLM_GEN_EVGN_BV_03() runs on ItsMapemSpatem {
// Local variables
Bostjan Pintar
committed
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
Bostjan Pintar
committed
// Test component configuration
f_cfUp();
Bostjan Pintar
committed
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
)
),
v_spatem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
mapemSpatemPort.clear;
tc_noac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
))) {
tc_noac.stop;
log("*** " & testcasename() & ": FAIL: No more SPATEM messages were expected. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: TLM Service terminated. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
} // End of function f_IS_TLM_GEN_EVGN_BV_03
/**
* @desc TP Function for f_IS_TLM_GEN_EVGN_BV_04
*/
function f_IS_TLM_GEN_EVGN_BV_04() runs on ItsMapemSpatem {
// Local variables
var SpatemInd v_spatem;
Bostjan Pintar
committed
// Test control
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
Bostjan Pintar
committed
// Test component configuration
f_cfUp();
// Preamble
tc_noac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
))) {
tc_noac.stop;
log("*** " & testcasename() & ": FAIL: Initial conditions do not expect SPATEM messages. ***");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_timeout);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No SPATEM messages received. ***");
}
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received a new well-formed SPATE message. ***");
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_EVGN_BV_04
group spateCommunication {
Bostjan Pintar
committed
/**
* @desc TP Function for f_IS_TLM_GEN_COM_BV_01
*/
function f_IS_TLM_GEN_COM_BV_01 () runs on ItsMapemSpatem {
// Local variables
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
// Test component configuration
f_cfUp();
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_with_region_id
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received MAPEM using GBC. ***");
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_COM_BV_01
/**
* @desc TP Function for f_IS_TLM_GEN_COM_BV_02_01
*/
function f_IS_TLM_GEN_COM_BV_02_01 () runs on ItsMapemSpatem {
// Local variables
const UInt8 c_gnNhBtpB := 2;
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
// Test component configuration
f_cfUp();
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithGnParameters(
mw_spatemPdu,
c_gnNhBtpB
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected SPATEM encapsultated in BTP-B packet received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(mw_spatemIndWithGnParameters(mw_spatemPdu(mw_defaultSpatem), omit)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: no GN NH information in SpatemInd ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
[] mapemSpatemPort.receive(mw_spatemInd(mw_spatemPdu(mw_defaultSpatem))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected SPATEM received, but not encapsulated in BTP-B packet ***");
f_selfOrClientSyncAndVerdict(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_COM_BV_02_01
/**
* @desc TP Function for f_IS_TLM_GEN_COM_BV_02
*/
function f_IS_TLM_GEN_COM_BV_02 () runs on ItsMapemSpatem {
// Local variables
const UInt16 c_gnNhBtpBPort := 2004;
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
// Test component configuration
f_cfUp();
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithBtpParameters(
mw_spatemPdu,
c_gnNhBtpBPort,
0
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected SPATEM encapsultated in BTP packet with port value 2004 received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(mw_spatemInd(mw_spatemPdu(mw_defaultSpatem))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected SPATEM received, but not addressed to the correct destination port. ***");
f_selfOrClientSyncAndVerdict(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_COM_BV_02
/**
* @desc TP Function for f_IS_TLM_GEN_COM_BV_03
*/
function f_IS_TLM_GEN_COM_BV_03 () runs on ItsMapemSpatem {
// Local variables
const UInt8 c_gnHtGbc := 4;
Bostjan Pintar
committed
if (not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION required for executing the TC ***");
// Test component configuration
f_cfUp();
// Preamble
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithGnParameters(
mw_spatemPdu(
mw_spatemWellFormatted
),
-,
c_gnHtGbc
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected SPATEM encapsulated in GBC packet received. ***");
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(
mw_spatemIndWithGnParameters(
mw_spatemPdu(
mw_spatemWellFormatted
),
-,
omit
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Eno GN HT information in SpatemInd. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected SPATEM received, but not encapsulated in GBC packet. ***");
f_selfOrClientSyncAndVerdict(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_COM_BV_03
} // End of group spateCommunication
} // End of group spateMessageDissemination
Bostjan Pintar
committed
group spateSecurityParameters {
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
/**
* @desc TP Function for TC_IS_TLM_GEN_SEC_BV_01
*/
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();
// 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();
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
} // 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();
// 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();
} // 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
// Preamble
f_prInitialState("CERT_SPAT_SSP_NONE");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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();
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
} // 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();
// Preamble
f_prInitialState("CERT_SPAT_SSP_ALL");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_spatemIndWithSecurityParameters(
mw_spatemPdu,
oct2bit('018000'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_02
/**
* @desc TP Function for TC_IS_TLM_GEN_SSP_BO_03
*/
function f_IS_TLM_GEN_SSP_BO_03 () 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);
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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_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();
// Preamble
f_prInitialState("CERT_SPAT_SSP_ALL");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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);
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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();
// Preamble
f_prInitialState("CERT_SPAT_SSP_ALL");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
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
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
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
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
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
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
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();
2197
2198
2199
2200
2201
2202
2203
2204
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
} // 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
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
/**
* @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
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
2354
// 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
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
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
// 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
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
// 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
2504
2505
2506
2507
2508
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
} // 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
2551
2552
2553
2554
2555
2556
2557
2558
2559
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
// 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
2607
2608
2609
2610
2611
2612
2613
2614
2615
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
} // 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
2656
2657
2658
2659
2660
2661
2662
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
// 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