Loading ttcn/AtsNGAP/NGAP_TCFunctions.ttcn +204 −125 Original line number Diff line number Diff line Loading @@ -817,6 +817,128 @@ module NGAP_TCFunctions { group UE_Context_Management_Procedures{ //8.3.1 group Initial_Context_Setup{ } // End of group Initial_Context_Setup //8.3.2 group UE_Context_Release_Request_NG_RAN_node_initiated{ } // End of group UE_Context_Release_Request_NG_RAN_node_initiated //8.3.3 group UE_Context_Release_AMF_initiated{ /** * @desc Testcase function for TP_NGAP_GNB_CMP_08 */ function f_TC_NGAP_GNB_CMP_08() runs on aMFNGAPComponent { // 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_UEContextReleaseCommand ( m_uE_NGAP_IDs_uE_NGAP_ID_pair ( m_uE_NGAP_ID_pair ), - ))); f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); 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_CMP_08 /** * @desc Testcase function for f_TC_NGAP_GNB_CMP_09 */ function f_TC_NGAP_GNB_CMP_09() runs on aMFNGAPComponent { // 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_UEContextReleaseCommand ( m_uE_NGAP_IDs_aMF_UE_NGAP_ID ( - ), - ))); f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); 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_CMP_09 } // End of group UE_Context_Release_AMF_initiated //8.3.4 group UE_Context_Modification{ } // End of group UE_Context_Modification //8.3.5 group RRC_Inactive_Transition_Report{ } // End of group RRC_Inactive_Transition_Report //8.3.6 group Connection_Establishment_Indication{ } // End of group Connection_Establishment_Indication //8.3.7 group AMF_CP_Relocation_Indication{ } // End of group AMF_CP_Relocation_Indication //8.3.8 group RAN_CP_Relocation_Indication{ } // End of group RAN_CP_Relocation_Indication //8.3.9 group Retrieve_UE_Information{ } // End of group Retrieve_UE_Information //8.3.10 group UE_Information_Transfer{ } // End of group UE_Information_Transfer //8.3.11 group UE_Context_Suspend{ } // End of group UE_Context_Suspend //8.3.12 group UE_Context_Resume{ } // End of group UE_Context_Resume } // End of group UE_Context_Management_Procedures //8.4 group UE_Mobility_Management_Procedures{ //8.4.1 group Handover_Preparation{ function f_TC_NGAP_GNB_MMP_01() runs on aMFNGAPComponent { // Local variables Loading Loading @@ -857,9 +979,9 @@ module NGAP_TCFunctions { } // End of function f_TC_NGAP_GNB_MMP_01 } // End of group Initial_Context_Setup //8.3.2 group UE_Context_Release_Request_NG_RAN_node_initiated{ } // End of group Handover_Preparation //8.4.2 group Handover_Resource_Allocation{ function f_TC_NGAP_GNB_MMP_02() runs on aMFNGAPComponent { // Local variables Loading Loading @@ -1021,59 +1143,77 @@ module NGAP_TCFunctions { } // End of function f_TC_NGAP_GNB_MMP_03 function f_TC_NGAP_GNB_MMP_04() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_04 function f_TC_NGAP_GNB_MMP_05() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_05 function f_TC_NGAP_GNB_MMP_06() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_06 function f_TC_NGAP_GNB_MMP_07() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_07 function f_TC_NGAP_GNB_MMP_08() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_08 } // End of group UE_Context_Release_Request_NG_RAN_node_initiated //8.3.3 group UE_Context_Release_AMF_initiated{ /** * @desc Testcase function for TP_NGAP_GNB_CMP_08 */ function f_TC_NGAP_GNB_CMP_08() runs on aMFNGAPComponent { // Local variables // Preamble f_NGAP_amf_init(); f_NGAP_amf_UE_Register(); f_NGAP_amf_UE_PDU_ResourceSetup(); f_NGAP_amf_UE_MMP_Initiate_Handover_Completed(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body f_send_NGAP_PDU( m_ngap_initMsg( m_n2_UEContextReleaseCommand ( m_uE_NGAP_IDs_uE_NGAP_ID_pair ( m_uE_NGAP_ID_pair ), - m_n2_HandoverRequest_full( -, -, -, m_uEAggregateMaximumBitRate, m_uESecurityCapabilities, m_securityContext, { m_pDUSessionResourceSetupItemHOReq( -, m_s_NSSAI('00'O, '000000'O), bit2oct( encvalue( m_pDUSessionResourceSetupRequestTransfer( m_pDUSessionResourceSetupRequestTransfer_mandatories( m_pDUSessionType(ipv4), { m_qosFlowSetupRequestItem( PX_QOS_FLOW_IDENTIFIER, m_qosFlowLevelQosParameters( m_qosCharacteristics_dynamic5QI( m_dynamic5QIDescriptor( 1,//in template (value) PriorityLevelQos p_priorityLevelQos, 0,//in template (value) PacketDelayBudget p_packetDelayBudget, m_PacketErrorRate( 0,//in template (value) PacketErrorRate.pERScalar p_pERScalar, 0//in template (value) PacketErrorRate.pERExponent p_pERExponent ))), m_allocationAndRetentionPriority( 1,//in template (value) PriorityLevelARP p_priorityLevelARP, shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability, not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability, ))) }, m_uPTransportLayerInformation_gTPTunnel( m_gTPTunnel )))))) }, { m_allowedNSSAI_Item( m_s_NSSAI('00'O, '000000'O) ) }, PX_SOURCE_TO_TARGET_TRANSPARENT_CONTAINER, // FIXME FSCOM Should be a bit2oct(enc(???)) m_gUAMI ))); f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); mw_n2_HandoverRequestAcknowledge( PX_AMF_UE_NGAP_ID, PX_RAN_UE_NGAP_ID, { *, mw_pDUSessionResourceAdmittedItem( // TODO FSCOM Make the template more restrictive PX_PDU_SESSION_ID ), * } ))); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); Loading @@ -1083,85 +1223,24 @@ module NGAP_TCFunctions { f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); } // End of function f_TC_NGAP_GNB_CMP_08 /** * @desc Testcase function for f_TC_NGAP_GNB_CMP_09 */ function f_TC_NGAP_GNB_CMP_09() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_04 // 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. ***"); function f_TC_NGAP_GNB_MMP_05() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_05 // Body f_send_NGAP_PDU( m_ngap_initMsg( m_n2_UEContextReleaseCommand ( m_uE_NGAP_IDs_aMF_UE_NGAP_ID ( - ), - ))); function f_TC_NGAP_GNB_MMP_06() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_06 f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); function f_TC_NGAP_GNB_MMP_07() runs on aMFNGAPComponent { f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); } // End of function f_TC_NGAP_GNB_MMP_07 // Postamble f_postamble_NGAP_gNB(); f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); function f_TC_NGAP_GNB_MMP_08() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_CMP_09 } // End of function f_TC_NGAP_GNB_MMP_08 } // End of group UE_Context_Release_AMF_initiated //8.3.4 group UE_Context_Modification{ } // End of group UE_Context_Modification //8.3.5 group RRC_Inactive_Transition_Report{ } // End of group RRC_Inactive_Transition_Report //8.3.6 group Connection_Establishment_Indication{ } // End of group Connection_Establishment_Indication //8.3.7 group AMF_CP_Relocation_Indication{ } // End of group AMF_CP_Relocation_Indication //8.3.8 group RAN_CP_Relocation_Indication{ } // End of group RAN_CP_Relocation_Indication //8.3.9 group Retrieve_UE_Information{ } // End of group Retrieve_UE_Information //8.3.10 group UE_Information_Transfer{ } // End of group UE_Information_Transfer //8.3.11 group UE_Context_Suspend{ } // End of group UE_Context_Suspend //8.3.12 group UE_Context_Resume{ } // End of group UE_Context_Resume } // End of group UE_Context_Management_Procedures //8.4 group UE_Mobility_Management_Procedures{ //8.4.1 group Handover_Preparation{ } // End of group Handover_Preparation //8.4.2 group Handover_Resource_Allocation{ } // End of group Handover_Resource_Allocation //8.4.3 group Handover_Notification{ Loading ttcn/LibNGAP/lib/LibNGAP_Templates.ttcn +85 −0 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
ttcn/AtsNGAP/NGAP_TCFunctions.ttcn +204 −125 Original line number Diff line number Diff line Loading @@ -817,6 +817,128 @@ module NGAP_TCFunctions { group UE_Context_Management_Procedures{ //8.3.1 group Initial_Context_Setup{ } // End of group Initial_Context_Setup //8.3.2 group UE_Context_Release_Request_NG_RAN_node_initiated{ } // End of group UE_Context_Release_Request_NG_RAN_node_initiated //8.3.3 group UE_Context_Release_AMF_initiated{ /** * @desc Testcase function for TP_NGAP_GNB_CMP_08 */ function f_TC_NGAP_GNB_CMP_08() runs on aMFNGAPComponent { // 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_UEContextReleaseCommand ( m_uE_NGAP_IDs_uE_NGAP_ID_pair ( m_uE_NGAP_ID_pair ), - ))); f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); 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_CMP_08 /** * @desc Testcase function for f_TC_NGAP_GNB_CMP_09 */ function f_TC_NGAP_GNB_CMP_09() runs on aMFNGAPComponent { // 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_UEContextReleaseCommand ( m_uE_NGAP_IDs_aMF_UE_NGAP_ID ( - ), - ))); f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); 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_CMP_09 } // End of group UE_Context_Release_AMF_initiated //8.3.4 group UE_Context_Modification{ } // End of group UE_Context_Modification //8.3.5 group RRC_Inactive_Transition_Report{ } // End of group RRC_Inactive_Transition_Report //8.3.6 group Connection_Establishment_Indication{ } // End of group Connection_Establishment_Indication //8.3.7 group AMF_CP_Relocation_Indication{ } // End of group AMF_CP_Relocation_Indication //8.3.8 group RAN_CP_Relocation_Indication{ } // End of group RAN_CP_Relocation_Indication //8.3.9 group Retrieve_UE_Information{ } // End of group Retrieve_UE_Information //8.3.10 group UE_Information_Transfer{ } // End of group UE_Information_Transfer //8.3.11 group UE_Context_Suspend{ } // End of group UE_Context_Suspend //8.3.12 group UE_Context_Resume{ } // End of group UE_Context_Resume } // End of group UE_Context_Management_Procedures //8.4 group UE_Mobility_Management_Procedures{ //8.4.1 group Handover_Preparation{ function f_TC_NGAP_GNB_MMP_01() runs on aMFNGAPComponent { // Local variables Loading Loading @@ -857,9 +979,9 @@ module NGAP_TCFunctions { } // End of function f_TC_NGAP_GNB_MMP_01 } // End of group Initial_Context_Setup //8.3.2 group UE_Context_Release_Request_NG_RAN_node_initiated{ } // End of group Handover_Preparation //8.4.2 group Handover_Resource_Allocation{ function f_TC_NGAP_GNB_MMP_02() runs on aMFNGAPComponent { // Local variables Loading Loading @@ -1021,59 +1143,77 @@ module NGAP_TCFunctions { } // End of function f_TC_NGAP_GNB_MMP_03 function f_TC_NGAP_GNB_MMP_04() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_04 function f_TC_NGAP_GNB_MMP_05() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_05 function f_TC_NGAP_GNB_MMP_06() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_06 function f_TC_NGAP_GNB_MMP_07() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_07 function f_TC_NGAP_GNB_MMP_08() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_08 } // End of group UE_Context_Release_Request_NG_RAN_node_initiated //8.3.3 group UE_Context_Release_AMF_initiated{ /** * @desc Testcase function for TP_NGAP_GNB_CMP_08 */ function f_TC_NGAP_GNB_CMP_08() runs on aMFNGAPComponent { // Local variables // Preamble f_NGAP_amf_init(); f_NGAP_amf_UE_Register(); f_NGAP_amf_UE_PDU_ResourceSetup(); f_NGAP_amf_UE_MMP_Initiate_Handover_Completed(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body f_send_NGAP_PDU( m_ngap_initMsg( m_n2_UEContextReleaseCommand ( m_uE_NGAP_IDs_uE_NGAP_ID_pair ( m_uE_NGAP_ID_pair ), - m_n2_HandoverRequest_full( -, -, -, m_uEAggregateMaximumBitRate, m_uESecurityCapabilities, m_securityContext, { m_pDUSessionResourceSetupItemHOReq( -, m_s_NSSAI('00'O, '000000'O), bit2oct( encvalue( m_pDUSessionResourceSetupRequestTransfer( m_pDUSessionResourceSetupRequestTransfer_mandatories( m_pDUSessionType(ipv4), { m_qosFlowSetupRequestItem( PX_QOS_FLOW_IDENTIFIER, m_qosFlowLevelQosParameters( m_qosCharacteristics_dynamic5QI( m_dynamic5QIDescriptor( 1,//in template (value) PriorityLevelQos p_priorityLevelQos, 0,//in template (value) PacketDelayBudget p_packetDelayBudget, m_PacketErrorRate( 0,//in template (value) PacketErrorRate.pERScalar p_pERScalar, 0//in template (value) PacketErrorRate.pERExponent p_pERExponent ))), m_allocationAndRetentionPriority( 1,//in template (value) PriorityLevelARP p_priorityLevelARP, shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability, not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability, ))) }, m_uPTransportLayerInformation_gTPTunnel( m_gTPTunnel )))))) }, { m_allowedNSSAI_Item( m_s_NSSAI('00'O, '000000'O) ) }, PX_SOURCE_TO_TARGET_TRANSPARENT_CONTAINER, // FIXME FSCOM Should be a bit2oct(enc(???)) m_gUAMI ))); f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); mw_n2_HandoverRequestAcknowledge( PX_AMF_UE_NGAP_ID, PX_RAN_UE_NGAP_ID, { *, mw_pDUSessionResourceAdmittedItem( // TODO FSCOM Make the template more restrictive PX_PDU_SESSION_ID ), * } ))); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); Loading @@ -1083,85 +1223,24 @@ module NGAP_TCFunctions { f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); } // End of function f_TC_NGAP_GNB_CMP_08 /** * @desc Testcase function for f_TC_NGAP_GNB_CMP_09 */ function f_TC_NGAP_GNB_CMP_09() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_04 // 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. ***"); function f_TC_NGAP_GNB_MMP_05() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_05 // Body f_send_NGAP_PDU( m_ngap_initMsg( m_n2_UEContextReleaseCommand ( m_uE_NGAP_IDs_aMF_UE_NGAP_ID ( - ), - ))); function f_TC_NGAP_GNB_MMP_06() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_MMP_06 f_recv_NGAP_PDU( mw_ngap_succMsg( mw_n2_UEContextReleaseComplete )); function f_TC_NGAP_GNB_MMP_07() runs on aMFNGAPComponent { f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); } // End of function f_TC_NGAP_GNB_MMP_07 // Postamble f_postamble_NGAP_gNB(); f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); function f_TC_NGAP_GNB_MMP_08() runs on aMFNGAPComponent { } // End of function f_TC_NGAP_GNB_CMP_09 } // End of function f_TC_NGAP_GNB_MMP_08 } // End of group UE_Context_Release_AMF_initiated //8.3.4 group UE_Context_Modification{ } // End of group UE_Context_Modification //8.3.5 group RRC_Inactive_Transition_Report{ } // End of group RRC_Inactive_Transition_Report //8.3.6 group Connection_Establishment_Indication{ } // End of group Connection_Establishment_Indication //8.3.7 group AMF_CP_Relocation_Indication{ } // End of group AMF_CP_Relocation_Indication //8.3.8 group RAN_CP_Relocation_Indication{ } // End of group RAN_CP_Relocation_Indication //8.3.9 group Retrieve_UE_Information{ } // End of group Retrieve_UE_Information //8.3.10 group UE_Information_Transfer{ } // End of group UE_Information_Transfer //8.3.11 group UE_Context_Suspend{ } // End of group UE_Context_Suspend //8.3.12 group UE_Context_Resume{ } // End of group UE_Context_Resume } // End of group UE_Context_Management_Procedures //8.4 group UE_Mobility_Management_Procedures{ //8.4.1 group Handover_Preparation{ } // End of group Handover_Preparation //8.4.2 group Handover_Resource_Allocation{ } // End of group Handover_Resource_Allocation //8.4.3 group Handover_Notification{ Loading
ttcn/LibNGAP/lib/LibNGAP_Templates.ttcn +85 −0 File changed.Preview size limit exceeded, changes collapsed. Show changes