Commits (2)
......@@ -1173,15 +1173,157 @@ module NGAP_TCFunctions {
group Trace_Procedures{
//8.11.1
group Trace_Start{
/**
* @desc Testcase function for TC_NGAP_gNB_TRP_01
*/
function f_TC_NGAP_GNB_TRP_01() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
//f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_TraceStart(
-,
-,
m_traceActivation(
'0000000000000001'O,//in template (value) NGRANTraceID p_nGRANTraceID,
'00000000'B,//in template (value) InterfacesToTrace p_interfacesToTrace,
m_traceDepth(minimum),
PX_TRANSPORT_LAYER_ADDRESS,
omit//in template (omit) TraceActivation.iE_Extensions p_iE_Extensions := omit
)
)
)
);
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_TraceFailureIndication(
-,
-,
?,
?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_TRP_01
} // End of group Trace_Start
//8.11.2
group Trace_Failure_Indication{
} // End of group Trace_Failure_Indication
//8.11.3
group Deactivate_Trace{
/**
* @desc Testcase function for TC_NGAP_gNB_TRP_02
*/
function f_TC_NGAP_GNB_TRP_02() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
//f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_DeactivateTrace(
-,
-,
'0000000000000001'O//in template (value) NGRANTraceID p_NGRANTraceID
)
)
);
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_TraceFailureIndication(
-,
-,
?,
?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_TRP_02
} // End of group Deactivate_Trace
//8.11.4
group Cell_Traffic_Trace{
/**
* @desc Testcase function for TC_NGAP_gNB_TRP_03
*/
function f_TC_NGAP_GNB_TRP_03() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
//f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger CELL TRAFFIC TRACE!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_CellTrafficTrace(
?,
?,
?,
?,
?,
?,
?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_TRP_03
} // End of group Cell_Traffic_Trace
} // End of group Trace_Procedures
//8.12
......@@ -1785,12 +1927,86 @@ module NGAP_TCFunctions {
group Trace_Procedures{
//8.11.1
group Trace_Start{
/**
* @desc Testcase function for TC_NGAP_aMF_TRP_01
*/
function f_TC_NGAP_AMF_TRP_01() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger TRACE START!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_TraceStart(
?,
?,
?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_TRP_01
} // End of group Trace_Start
//8.11.2
group Trace_Failure_Indication{
} // End of group Trace_Failure_Indication
//8.11.3
group Deactivate_Trace{
/**
* @desc Testcase function for TC_NGAP_aMF_TRP_02
*/
function f_TC_NGAP_AMF_TRP_02() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger DEACTIVATE TRACE!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_DeactivateTrace(
?,
?,
?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_TRP_02
} // End of group Deactivate_Trace
//8.11.4
group Cell_Traffic_Trace{
......
......@@ -736,15 +736,99 @@ module NGAP_TestCases {
group Trace_Procedures{
//8.11.1
group Trace_Start{
/**
* @desc Test objective "Verify that the IUT can send a TRACE_FAILURE_INDICATION to inform AMF that Trace Start procedure has failed due to an interaction with handover procedure."
*/
testcase TC_NGAP_GNB_TRP_01() runs on aMFNGAPComponent system TestAdapter {
// Local variables
var aMFNGAPComponent v_ngap_amf;
// Test control
if ((not PICS_NGAP_GNB_IUT) and (not PICS_A3_10_1) and (not PICS_A3_10_2)){
log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_10_1 and PICS_A3_10_2' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_NGAP_aMF_Up(v_ngap_amf);
// Start
v_ngap_amf.start(f_TC_NGAP_GNB_TRP_01());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
f_cf_Down/*gNBoraMF*/();
} // End of testcase TC_NGAP_GNB_TRP_01
} // End of group Trace_Start
//8.11.2
group Trace_Failure_Indication{
} // End of group Trace_Failure_Indication
//8.11.3
group Deactivate_Trace{
/**
* @desc Test objective "Verify that the IUT can send a TRACE_FAILURE_INDICATION to inform AMF that a Deactivate Trace procedure has failed due to an interaction with handover procedure."
*/
testcase TC_NGAP_GNB_TRP_02() runs on aMFNGAPComponent system TestAdapter {
// Local variables
var aMFNGAPComponent v_ngap_amf;
// Test control
if ((not PICS_NGAP_GNB_IUT) and (not PICS_A3_10_2) and (not PICS_A3_10_3)){
log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_10_2 and PICS_A3_10_3' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_NGAP_aMF_Up(v_ngap_amf);
// Start
v_ngap_amf.start(f_TC_NGAP_GNB_TRP_02());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
f_cf_Down/*gNBoraMF*/();
} // End of testcase TC_NGAP_GNB_TRP_02
} // End of group Deactivate_Trace
//8.11.4
group Cell_Traffic_Trace{
/**
* @desc Test objective "Verify that the IUT can send a CELL_TRAFFIC_TRACE to send the allocated Trace Recording Session Reference and Trace Reference to AMF."
*/
testcase TC_NGAP_GNB_TRP_03() runs on aMFNGAPComponent system TestAdapter {
// Local variables
var aMFNGAPComponent v_ngap_amf;
// Test control
if ((not PICS_NGAP_GNB_IUT) and (not PICS_A3_10_4)){
log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_10_4' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_NGAP_aMF_Up(v_ngap_amf);
// Start
v_ngap_amf.start(f_TC_NGAP_GNB_TRP_03());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
f_cf_Down/*gNBoraMF*/();
} // End of testcase TC_NGAP_GNB_TRP_03
} // End of group Cell_Traffic_Trace
} // End of group Trace_Procedures
//8.12
......@@ -1162,12 +1246,68 @@ module NGAP_TestCases {
group Trace_Procedures{
//8.11.1
group Trace_Start{
/**
* @desc "Verify that the IUT can send a TRACE_START to initiate a trace session for a UE."
*/
testcase TC_NGAP_AMF_TRP_01() runs on gNBNGAPComponent system TestAdapter {
// Local variables
var gNBNGAPComponent v_ngap_gnb;
// Test control
if ((not PICS_NGAP_AMF_IUT) and (not PICS_A4_10_1)){
log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_10_1' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_NGAP_gNB_Up(v_ngap_gnb);
// Start
v_ngap_gnb.start(f_TC_NGAP_AMF_TRP_01());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
f_cf_Down/*gNBoraMF*/();
} // End of testcase TC_NGAP_AMF_TRP_01
} // End of group Trace_Start
//8.11.2
group Trace_Failure_Indication{
} // End of group Trace_Failure_Indication
//8.11.3
group Deactivate_Trace{
/**
* @desc "Verify that the IUT can send a DEACTIVATE_TRACE to deactivate a trace session for a UE."
*/
testcase TC_NGAP_AMF_TRP_02() runs on gNBNGAPComponent system TestAdapter {
// Local variables
var gNBNGAPComponent v_ngap_gnb;
// Test control
if ((not PICS_NGAP_AMF_IUT) and (not PICS_A4_10_3)){
log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_10_3' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_NGAP_gNB_Up(v_ngap_gnb);
// Start
v_ngap_gnb.start(f_TC_NGAP_AMF_TRP_02());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
f_cf_Down/*gNBoraMF*/();
} // End of testcase TC_NGAP_AMF_TRP_02
} // End of group Deactivate_Trace
//8.11.4
group Cell_Traffic_Trace{
......
......@@ -5831,7 +5831,7 @@ module LibNGAP_Templates {
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.1 TRACE START
*/
template (value) InitiatingMessage m_n2_TraceStart := {
template (value) InitiatingMessage m_n2_TraceStart_ie := {
procedureCode := id_TraceStart,
criticality := ignore,
value_ := {
......@@ -5839,12 +5839,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template m_n2_TraceStart
} // End of template m_n2_TraceStart_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.1 TRACE START
*/
template (value) InitiatingMessage m_n2_TraceStart_ids(
template (value) InitiatingMessage m_n2_TraceStart(
in template (value) AMF_UE_NGAP_ID p_amfUeNgapID := PX_AMF_UE_NGAP_ID,
in template (value) RAN_UE_NGAP_ID p_ranUeNgapID := PX_RAN_UE_NGAP_ID,
in template (value) TraceActivation p_traceActivation
......@@ -5872,7 +5872,7 @@ module LibNGAP_Templates {
}
}
}
} // End of template m_n2_TraceStart_ids
} // End of template m_n2_TraceStart
}
 
group Receive {
......@@ -5880,7 +5880,7 @@ module LibNGAP_Templates {
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.1 TRACE START
*/
template (present) InitiatingMessage mw_n2_TraceStart := {
template (present) InitiatingMessage mw_n2_TraceStart_ie := {
procedureCode := id_TraceStart,
criticality := ignore,
value_ := {
......@@ -5888,12 +5888,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template mw_n2_TraceStart
} // End of template mw_n2_TraceStart_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.1 TRACE START
*/
template (present) InitiatingMessage mw_n2_TraceStart_ids(
template (present) InitiatingMessage mw_n2_TraceStart(
template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
template (present) TraceActivation p_traceActivation := ?
......@@ -5921,7 +5921,7 @@ module LibNGAP_Templates {
}
}
}
} // End of template mw_n2_TraceActivation_ids
} // End of template mw_n2_TraceStart
 
}
}
......@@ -5933,7 +5933,7 @@ module LibNGAP_Templates {
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.2 TRACE FAILURE INDICATION
*/
template (value) InitiatingMessage m_n2_TraceFailureIndication := {
template (value) InitiatingMessage m_n2_TraceFailureIndication_ie := {
procedureCode := id_TraceFailureIndication,
criticality := ignore,
value_ := {
......@@ -5941,12 +5941,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template m_n2_TraceFailureIndication
} // End of template m_n2_TraceFailureIndication_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.2 TRACE FAILURE INDICATION
*/
template (value) InitiatingMessage m_n2_TraceFailureIndication_ids(
template (value) InitiatingMessage m_n2_TraceFailureIndication(
in template (value) AMF_UE_NGAP_ID p_amfUeNgapID := PX_AMF_UE_NGAP_ID,
in template (value) RAN_UE_NGAP_ID p_ranUeNgapID := PX_RAN_UE_NGAP_ID,
in template (value) NGRANTraceID p_NGRANTraceID,
......@@ -5980,14 +5980,14 @@ module LibNGAP_Templates {
}
}
}
} // End of template m_n2_TraceFailureIndication_ids
} // End of template m_n2_TraceFailureIndication
}
group Receive {
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.2 TRACE FAILURE INDICATION
*/
template (present) InitiatingMessage mw_n2_TraceFailureIndication := {
template (present) InitiatingMessage mw_n2_TraceFailureIndication_ie := {
procedureCode := id_TraceFailureIndication,
criticality := ignore,
value_ := {
......@@ -5995,12 +5995,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template mw_n2_TraceFailureIndication
} // End of template mw_n2_TraceFailureIndication_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.2 TRACE FAILURE INDICATION
*/
template (present) InitiatingMessage mw_n2_TraceFailureIndication_ids(
template (present) InitiatingMessage mw_n2_TraceFailureIndication(
template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
template (present) NGRANTraceID p_NGRANTraceID := ?,
......@@ -6034,7 +6034,7 @@ module LibNGAP_Templates {
}
}
}
} // End of template mw_n2_TraceFailureIndication_ids
} // End of template mw_n2_TraceFailureIndication
}
}
//9.2.10.3
......@@ -6044,7 +6044,7 @@ module LibNGAP_Templates {
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.3 DEACTIVATE TRACE
*/
template (value) InitiatingMessage m_n2_DeactivateTrace := {
template (value) InitiatingMessage m_n2_DeactivateTrace_ie := {
procedureCode := id_DeactivateTrace,
criticality := ignore,
value_ := {
......@@ -6057,7 +6057,7 @@ module LibNGAP_Templates {
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.3 DEACTIVATE TRACE
*/
template (value) InitiatingMessage m_n2_DeactivateTrace_ids(
template (value) InitiatingMessage m_n2_DeactivateTrace(
in template (value) AMF_UE_NGAP_ID p_amfUeNgapID := PX_AMF_UE_NGAP_ID,
in template (value) RAN_UE_NGAP_ID p_ranUeNgapID := PX_RAN_UE_NGAP_ID,
in template (value) NGRANTraceID p_NGRANTraceID
......@@ -6085,14 +6085,14 @@ module LibNGAP_Templates {
}
}
}
} // End of template m_n2_DeactivateTrace_ids
} // End of template m_n2_DeactivateTrace
}
group Receive {
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.3 DEACTIVATE TRACE
*/
template (present) InitiatingMessage mw_n2_DeactivateTrace := {
template (present) InitiatingMessage mw_n2_DeactivateTrace_ie := {
procedureCode := id_DeactivateTrace,
criticality := ignore,
value_ := {
......@@ -6100,12 +6100,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template mw_n2_DeactivateTrace
} // End of template mw_n2_DeactivateTrace_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.3 DEACTIVATE TRACE
*/
template (present) InitiatingMessage mw_n2_DeactivateTrace_ids(
template (present) InitiatingMessage mw_n2_DeactivateTrace(
template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
template (present) NGRANTraceID p_NGRANTraceID := ?
......@@ -6133,7 +6133,7 @@ module LibNGAP_Templates {
}
}
}
} // End of template mw_n2_DeactivateTrace_ids
} // End of template mw_n2_DeactivateTrace
}
}
//9.2.10.4
......@@ -6143,7 +6143,7 @@ module LibNGAP_Templates {
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.4 CELL TRAFFIC TRACE
*/
template (value) InitiatingMessage m_n2_CellTrafficTrace := {
template (value) InitiatingMessage m_n2_CellTrafficTrace_ie := {
procedureCode := id_CellTrafficTrace,
criticality := ignore,
value_ := {
......@@ -6151,12 +6151,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template m_n2_CellTrafficTrace
} // End of template m_n2_CellTrafficTrace_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.4 CELL TRAFFIC TRACE
*/
template (value) InitiatingMessage m_n2_CellTrafficTrace_ids(
template (value) InitiatingMessage m_n2_CellTrafficTrace(
in template (value) AMF_UE_NGAP_ID p_amfUeNgapID := PX_AMF_UE_NGAP_ID,
in template (value) RAN_UE_NGAP_ID p_ranUeNgapID := PX_RAN_UE_NGAP_ID,
in template (value) NGRANTraceID p_NGRANTraceID,
......@@ -6208,14 +6208,14 @@ module LibNGAP_Templates {
}
}
}
} // End of template m_n2_CellTrafficTrace_ids
} // End of template m_n2_CellTrafficTrace
}
group Receive {
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.4 CELL TRAFFIC TRACE
*/
template (present) InitiatingMessage mw_n2_CellTrafficTrace := {
template (present) InitiatingMessage mw_n2_CellTrafficTrace_ie := {
procedureCode := id_CellTrafficTrace,
criticality := ignore,
value_ := {
......@@ -6223,12 +6223,12 @@ module LibNGAP_Templates {
protocolIEs := { }
}
}
} // End of template mw_n2_CellTrafficTrace
} // End of template mw_n2_CellTrafficTrace_ie
 
/**
* @see ETSI TS 138 413 V16.12.0 (2023-05) Clause 9.2.10.4 CELL TRAFFIC TRACE
*/
template (present) InitiatingMessage mw_n2_CellTrafficTrace_ids(
template (present) InitiatingMessage mw_n2_CellTrafficTrace(
template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
template (present) NGRANTraceID p_NGRANTraceID := ?,
......@@ -6280,7 +6280,7 @@ module LibNGAP_Templates {
}
}
}
} // End of template mw_n2_CellTrafficTrace_ids
} // End of template mw_n2_CellTrafficTrace
}
}
} // End of group Trace_Messages