Newer
Older
} // End of function f_IS_RLT_EVGN_BV_01
/**
* @desc TP Function for TC_IS_RLT_EVGN_BV_02
*/
function f_IS_RLT_EVGN_BV_02 () runs on ItsMapemSpatem {
// Local variables
var MapemInd v_mapem;
// Test control
if (not PICS_MAPEM_GENERATION) {
log("*** " & testcasename() & ": PICS_MAPEM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_defaultMapem
)),
v_mapem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(mapemNewContent));
tc_ac.start;
alt {
[] mapemSpatemPort.receive(v_mapem) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: The same MAPEM was received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received a new MAPEM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
mw_defaultMapem
))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a MAPEM with incorrect information. ***");
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_RLT_EVGN_BV_02
Bostjan Pintar
committed
* @desc TP Function for TC_IS_RLT_GEN_FRAG_BV_01
Bostjan Pintar
committed
function f_IS_RLT_GEN_FRAG_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_FRAG_BV_01
/**
* @desc TP Function for TC_IS_RLT_GEN_FRAG_BV_02
*/
function f_IS_RLT_GEN_FRAG_BV_02 () runs on ItsMapemSpatem {
if (not PICS_MAPEM_GENERATION) {
log("*** " & testcasename() & ": PICS_MAPEM_GENERATION required for executing the TC ***");
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_prInitialState();
f_awaitMapeMessage(
mw_mapemInd(
mw_mapemPdu(
mw_defaultMapem
)),
v_mapem
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(m_utTriggerEvent(mapemNewContentWithFragmentation));
tc_ac.start;
alt {
[not v_firstFragmentReceived] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
mw_mapemLayerType
))) -> value v_mapem {
log("*** " & testcasename() & ": INFO: Successfully received the first fragment of MAPEM. ***");
[v_firstFragmentReceived] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
mw_mapemLayerType(
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
v_mapem.msgIn.map_.layerID + 1
)
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received the last fragment of MAPEM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
mw_defaultMapem
))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a MAPEM with incorrect information. ***");
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_RLT_GEN_FRAG_BV_02
group mapeCommunication {
/**
Bostjan Pintar
committed
* @desc TP Function for TC_IS_RLT_GEN_COM_BV_01
*/
Bostjan Pintar
committed
function f_IS_RLT_GEN_COM_BV_01 () runs on ItsMapemSpatem {
// Local variables
var boolean v_tlmServiceStarted := false;
// Test control
if (not PICS_SPATEM_GENERATION or not PICS_SPATEM_GENERATION) {
log("*** " & testcasename() & ": PICS_MAPEM_GENERATION and 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 {
[v_tlmServiceStarted == false] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
))) {
tc_ac.stop;
log("*** " & testcasename() & ": INFO: Successfully received well-formed MAPEM. ***");
f_utTriggerEvent(m_utTriggerEvent(startTLMService));
v_tlmServiceStarted := true;
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
tc_ac.start;
repeat;
}
[] mapemSpatemPort.receive(
mw_spatemInd(
mw_spatemPdu(
mw_spatemWellFormatted
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received well-formed MAPEM & SPATEM. ***");
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_RLT_GEN_COM_BV_01
/**
Bostjan Pintar
committed
* @desc TP Function for TC_IS_RLT_GEN_COM_BV_02
*/
Bostjan Pintar
committed
function f_IS_RLT_GEN_COM_BV_02 () runs on ItsMapemSpatem {
Bostjan Pintar
committed
// TODO
Bostjan Pintar
committed
} // End of function f_IS_RLT_GEN_COM_BV_02
/**
Bostjan Pintar
committed
* @desc TP Function for TC_IS_RLT_GEN_COM_BV_03
*/
Bostjan Pintar
committed
function f_IS_RLT_GEN_COM_BV_03 () runs on ItsMapemSpatem {
// Local variables
const UInt16 c_gnNhBtpBPort := 2003;
if (not PICS_MAPEM_GENERATION) {
log("*** " & testcasename() & ": PICS_MAPEM_GENERATION required for executing the TC ***");
// Test component configuration
f_cfUp();
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
tc_ac.start;
alt {
[] mapemSpatemPort.receive(
mw_mapemIndWithBtpParameters(
mw_mapemPdu,
c_gnNhBtpBPort,
0
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected MAPEM encapsultated in BTP packet with port value 2003 received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(mw_mapemInd(mw_mapemPdu(mw_defaultMapem))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected MAPEM 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_RLT_GEN_COM_BV_03
/**
Bostjan Pintar
committed
* @desc TP Function for TC_IS_RLT_GEN_COM_BV_04
*/
Bostjan Pintar
committed
function f_IS_RLT_GEN_COM_BV_04 () runs on ItsMapemSpatem {
// Local variables
const UInt8 c_gnHtGbc := 4;
// Test control
if (not PICS_MAPEM_GENERATION) {
log("*** " & testcasename() & ": PICS_MAPEM_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_mapemIndWithGnParameters(
mw_mapemPdu(
),
-,
c_gnHtGbc
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected MAPEM encapsulated in GBC packet received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] mapemSpatemPort.receive(
mw_mapemIndWithGnParameters(
mw_mapemPdu(
),
-,
omit
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: no GN HT information in MapemInd. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] mapemSpatemPort.receive(
mw_mapemInd(
mw_mapemPdu(
))) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected MAPEM 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_RLT_GEN_COM_BV_04
} // End of group mapeCommunication
} // End of group mapeMessageDissemination
group mapeMessageProcessing {
Bostjan Pintar
committed
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
/**
* @desc TP Function for TC_IS_RLT_GEN_SEC_BV_01
*/
function f_IS_RLT_GEN_SEC_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SEC_BV_01
/**
* @desc TP Function for TC_IS_RLT_GEN_SEC_BV_02
*/
function f_IS_RLT_GEN_SEC_BV_02 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SEC_BV_02
/**
* @desc TP Function for TC_IS_RLT_GEN_SSP_BV_01
*/
function f_IS_RLT_GEN_SSP_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SSP_BV_01
/**
* @desc TP Function for TC_IS_RLT_GEN_SSP_BV_02
*/
function f_IS_RLT_GEN_SSP_BV_02 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SSP_BV_02
/**
* @desc TP Function for TC_IS_RLT_GEN_SSP_BO_03
*/
function f_IS_RLT_GEN_SSP_BO_03 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SSP_BO_03
/**
* @desc TP Function for TC_IS_RLT_GEN_SSP_BV_04
*/
function f_IS_RLT_GEN_SSP_BV_04 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SSP_BV_04
/**
* @desc TP Function for TC_IS_RLT_GEN_SSP_BO_05
*/
function f_IS_RLT_GEN_SSP_BO_05 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_SSP_BO_05
/**
* @desc TP Function for TC_IS_RLT_GEN_RATE_BV_01
*/
function f_IS_RLT_GEN_RATE_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_GEN_RATE_BV_01
/**
Bostjan Pintar
committed
* @desc TP Function for TC_IS_RLT_GEN_RCV_BV_03
*/
Bostjan Pintar
committed
function f_IS_RLT_GEN_RCV_BV_03 () runs on ItsMapemSpatem {
// Local variables
var MapemReq v_mapemReq;
var integer i;
if (not PICS_MAPEM_RECEPTION) {
log("*** " & testcasename() & ": PICS_MAPEM_RECEPTION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_mapemReq := valueof(m_mapemReq(m_mapemPdu(m_defaultMapem)));
mapemSpatemPort.send(v_mapemReq) ;
f_sleep(PX_TAC);
for (i := 0; i < lengthof(vc_utMapemEvents) and not match (v_mapemReq.msgOut , vc_utMapemEvents[i].mapeMsg); i := i + 1) {
// empty on purpose
}
if (i < lengthof(vc_utMapemEvents) ) {
log("*** " & testcasename() & ": PASS: MAPEM was transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: MAPEM was not transmitted to upper layer***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
// Postamble
f_poDefault();
f_cfDown();
Bostjan Pintar
committed
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
} // End of function f_IS_RLT_GEN_RCV_BV_03
/**
* @desc TP Function for TC_IS_RLT_RCV_SEC_BV_01
*/
function f_IS_RLT_RCV_SEC_BV_01 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_RCV_SEC_BV_01
/**
* @desc TP Function for TC_IS_RLT_RCV_SEC_BO_02
*/
function f_IS_RLT_RCV_SEC_BO_02 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_RCV_SEC_BO_02
/**
* @desc TP Function for TC_IS_RLT_RCV_SEC_BO_03
*/
function f_IS_RLT_RCV_SEC_BO_03 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_RCV_SEC_BO_03
/**
* @desc TP Function for TC_IS_RLT_RCV_SEC_BO_04
*/
function f_IS_RLT_RCV_SEC_BO_04 () runs on ItsMapemSpatem {
// TODO
} // End of function f_IS_RLT_RCV_SEC_BO_04