Newer
Older
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();
/**
*/
// Local variables
var ItsMapemSpatem v_mapem;
var ItsMapemSpatem v_spatem;
if (not (PICS_SPATEM_GENERATION and PICS_SPATEM_PEDESTRIAN_MANOEUVRES)) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION AND PICS_SPATEM_PEDESTRIAN_MANOEUVRES required for executing the TC ***");
// 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_13_MAPEM());
v_spatem.start(f_IS_TLM_GEN_MSGF_BV_13_SPATEM());
// Synchronization
f_serverSync2ClientsAndStop({c_prDone, c_tbDone});
// Cleanup
f_cf02Down();
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_13_MAPEM
function f_IS_TLM_GEN_MSGF_BV_13_MAPEM () runs on ItsMapemSpatem {
// Local variables
var MapemInd v_mapem;
// Preamble
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{mw_intersectionGeometry(
-,
-,
{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);
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_13_SPATEM
function f_IS_TLM_GEN_MSGF_BV_13_SPATEM () runs on ItsMapemSpatem {
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for SPATEM sent
tc_ac.start(2.0);
// 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
{mw_movementEvent( //MovementEventList,
-,
-,//timing
{mw_advisorySpeed( //speeds
greenwave,//type (greenwave (1))
? //speed
)}
)}
)}
)) {
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();
/**
*/
// Local variables
var ItsMapemSpatem v_mapem;
var ItsMapemSpatem v_spatem;
if (not (PICS_SPATEM_GENERATION and PICS_SPATEM_HAS_EGRESS_QUEUE)) {
log("*** " & testcasename() & ": PICS_SPATEM_GENERATION AND PICS_SPATEM_PEDESTRIAN_MANOEUVRES required for executing the TC ***");
// Test component configuration
// Preamble
// Start components
v_mapem := f_getComponent(c_compMap);
v_spatem := f_getComponent(c_compSpat);
v_mapem.start(f_IS_TLM_GEN_MSGF_BV_14_MAPEM());
v_spatem.start(f_IS_TLM_GEN_MSGF_BV_14_SPATEM());
Bostjan Pintar
committed
// Synchronization
f_serverSync2ClientsAndStop({c_prDone, c_tbDone});
Bostjan Pintar
committed
Bostjan Pintar
committed
Bostjan Pintar
committed
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_14_MAPEM
Bostjan Pintar
committed
*/
function f_IS_TLM_GEN_MSGF_BV_14_MAPEM () runs on ItsMapemSpatem {
// Local variables
var MapemInd v_mapem;
Bostjan Pintar
committed
// Preamble
f_prInitialState();
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_mapem(
{mw_intersectionGeometry(
-,
-,
{mw_roadLane(
-,//laneID
?,//laneAttributes
-,//p_ingressApproach
-,//egressApproach
? //connectsTo
)}
)}
)
)),
v_mapem
);
v_id := v_mapem.msgIn.map_.intersections[0].id;
log("IntersectionReferenceID = ", v_id);
Bostjan Pintar
committed
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
Bostjan Pintar
committed
Bostjan Pintar
committed
/**
* @desc TP Function for TC_IS_TLM_GEN_MSGF_BV_14_SPATEM
Bostjan Pintar
committed
*/
function f_IS_TLM_GEN_MSGF_BV_14_SPATEM () runs on ItsMapemSpatem {
Bostjan Pintar
committed
Bostjan Pintar
committed
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
Bostjan Pintar
committed
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
// Wait for SPATEM sent
tc_ac.start(2.0);
// Test Body
tc_ac.start;
Bostjan Pintar
committed
alt {
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatem_intersections(
?, //IntersectionReferenceID p_id
-, //MsgCount p_revision
-, //IntersectionStatusObject p_status
-,
{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
//f_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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));
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
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_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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);
}
[] 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);
}
}
// Postamble
//f_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
//f_utTriggerEvent(m_utTriggerEvent(stopTLMService));
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
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
f_utTriggerEvent(m_utTriggerEvent(spatProfile0));
f_awaitSpateMessage(
mw_spatemInd(
mw_spatemPdu(
mw_defaultSpatem
)
),
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: A different SPATE message was expected. ***");
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);
}
[] 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);
}
}
// Postamble
//f_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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));
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
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_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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. ***");
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
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_utTriggerEvent(m_utTriggerEvent(stopTLMService));
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 {
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
/**
* @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();
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
} // 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();
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
} // 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));