Loading ttcn/Ats_NG_NAS/NG_NAS_TCFunctions.ttcn 0 → 100755 +158 −0 Original line number Diff line number Diff line /** * @author ETSI / TTF041 * @version $URL$ * $Id$ * @desc This module provides test functions for NG_NAS tests. * @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. * @see ETSI TS */ module NG_NAS_TCFunctions{ // LibCommon import from LibCommon_Sync all; import from LibCommon_VerdictControl all; import from LibCommon_Time all; // NG_NAS import from Lib_NG_NAS_Interface all; import from NG_NAS_TestSystem all; import from Lib_NG_NAS_Templates all; //Lib3GPP // LibNGAP //import from NGAP_IEs language "ASN.1:2002" all; //import from NGAP_Constants language "ASN.1:2002" all; //import from LibNGAP_Pixits all; //import from LibNGAP_Templates all; import from LibNGAP_Interface all; import from LibNGAP_Steps all; // NGAP_Ats //import from NGAP_TestSystem all; //import from NGAP_Steps all; //import from NGAP_Pixits all; group TC_function_template{ /** * @desc Testcase function for TC_NGAP_gNB_or_aMF_functionName_01 */ function f_TC_NGNAS_aMF_functionName_01() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables // Preamble //TODO: f_NGAP_gnb_init(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body //f_send_NGAP_PDU(m_ngap_initMsg(/*initiating msgtemplate*/)); //f_recv_NGAP_PDU(?); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); // Postamble //TODO: f_postamble_NGAP_gNB(); f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); } // End of function f_TC_NGNAS_aMF_functionName_01 } // End of group TC_function_template group /*5_5_1_2_*/Registration_Procedure_for_initial_registration { /** * @desc Testcase function for TP_5GNAS_AMF_REG_REJ_01 */ function f_TC_5GNAS_AMF_REG_REJ_01() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables // Preamble //TODO: f_NGAP_gnb_init(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body vt_NgNasUl_Msg := m_NG_REGISTRATION_REQUEST( {'1'B,'001'B},//in template (value) RegistrationType p_RegistrationType, '000'B,//in template (value) NAS_KsiValue p_KeySetId, '0'B,//in template (value) B1_Type p_Tsc, { // 24.501 cl. 9.11.3.4 iei:=omit, iel:='0002'O, idDigit1:='0000'B, // 1st identitity digit oddEvenInd:='0'B, // Odd/even indicator or Spare typeOfId:='000'B, // Type of identity otherDigits:='00'O// length (1..infinity) optional // Other identity digits, could be any length @sic R5-192389, @sic R5w190307 sic@ sic@ }//in template (value) NG_MobileIdentity p_MobileId, /* in template (omit) NAS_KeySetIdentifier p_NonCurrentKSI := omit, in template (omit) NG_GMM_Cap p_GMM_Cap := omit, in template (omit) NG_UE_SecurityCapability p_UESecurityCap := omit, in template (omit) NSSAI p_ReqNSSAI := omit, in template (omit) NG_TrackingAreaId p_TAI := omit, in template (omit) UE_NetworkCap p_UE_NetworkCap := omit, in template (omit) ULDataStatus p_ULDataStatus := omit, in template (omit) PDU_SessionStatus p_PDU_SessionStatus := omit, in template (omit) MICO_Ind p_MICO_Ind := omit, in template (omit) UE_Status p_UE_Status := omit, in template (omit) NG_MobileIdentity p_AddGUTI := omit, in template (omit) AllowedPDU_SessionStatus p_AllowedPDU_SessionStatus := omit, in template (omit) UE_UsageSetting p_UE_UsageSetting := omit, in template (omit) NG_DRXparameter p_DRXparam := omit, in template (omit) EPS_MessageContainer p_EPSMsg := omit, in template (omit) LADN_Ind p_LADN_Ind := omit, in template (omit) PayloadContainerType p_ContainerType := omit, // @sic R5w190113 sic@ in template (omit) PayloadContainer p_Payload := omit, in template (omit) NetworkSlicingInd p_NetworkSlicingInd := omit, in template (omit) NG_UpdateType p_NG_UpdateType := omit, in template (omit) MS_Clsmk2 p_MS_Clsmk2 := omit, in template (omit) CodecList p_SupportedCodecs := omit, in template (omit) EPS_BearerContextStatus p_EPS_BearerContextStatus := omit, // @sic R5s190543 sic@ in template (omit) NASMessageContainer p_Msg := omit, in template (omit) ExtdDRXParams p_ExtdDRXParams := omit, in template (omit) GPRS_Timer3 p_T3324 := omit, in template (omit) UERadioCapId p_UERadioCapId := omit, in template (omit) MappedNSSAI p_MappedNSSAI := omit, in template (omit) AddInfoRequest p_AddInfoRequest := omit, in template (omit) WUSAssistInfo p_WUSAssistInfo := omit, in template (omit) N5GCInd p_N5GCInd := omit, in template (omit) NB_N1ModeDRXParams p_NB_N1ModeDRXParams := omit, in template (omit) UE_RequestType p_UeRequestType := omit, in template (omit) NG_PagingRestriction p_PagingRestrict := omit, in template (omit) ServiceLvlAAContainer p_ServiceLvlAA := omit, in template (omit) NID p_NId := omit, in template (omit) PLMN_IdIE p_MSPLMNwDisasterCondition := omit, in template (omit) PEIPS_AssistInfo p_RequestedPEIPS_AssistInfo := omit, in template (omit) GPRS_Timer3 p_T3512 := omit */ ) vc_sendNAS_PDU := bit2oct(encvalue( vt_NgNasUl_Msg )); log(vt_NgNasUl_Msg); log(vc_sendNAS_PDU); //f_send_NGAP_PDU(m_ngap_initMsg(/*initiating msgtemplate*/)); //f_recv_NGAP_PDU(?); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); // Postamble //TODO: f_postamble_NGAP_gNB(); f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); } // End of function f_TC_5GNAS_AMF_REG_REJ_01 } }// End of module NG_NAS_TCFunctions Loading
ttcn/Ats_NG_NAS/NG_NAS_TCFunctions.ttcn 0 → 100755 +158 −0 Original line number Diff line number Diff line /** * @author ETSI / TTF041 * @version $URL$ * $Id$ * @desc This module provides test functions for NG_NAS tests. * @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. * @see ETSI TS */ module NG_NAS_TCFunctions{ // LibCommon import from LibCommon_Sync all; import from LibCommon_VerdictControl all; import from LibCommon_Time all; // NG_NAS import from Lib_NG_NAS_Interface all; import from NG_NAS_TestSystem all; import from Lib_NG_NAS_Templates all; //Lib3GPP // LibNGAP //import from NGAP_IEs language "ASN.1:2002" all; //import from NGAP_Constants language "ASN.1:2002" all; //import from LibNGAP_Pixits all; //import from LibNGAP_Templates all; import from LibNGAP_Interface all; import from LibNGAP_Steps all; // NGAP_Ats //import from NGAP_TestSystem all; //import from NGAP_Steps all; //import from NGAP_Pixits all; group TC_function_template{ /** * @desc Testcase function for TC_NGAP_gNB_or_aMF_functionName_01 */ function f_TC_NGNAS_aMF_functionName_01() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables // Preamble //TODO: f_NGAP_gnb_init(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body //f_send_NGAP_PDU(m_ngap_initMsg(/*initiating msgtemplate*/)); //f_recv_NGAP_PDU(?); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); // Postamble //TODO: f_postamble_NGAP_gNB(); f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); } // End of function f_TC_NGNAS_aMF_functionName_01 } // End of group TC_function_template group /*5_5_1_2_*/Registration_Procedure_for_initial_registration { /** * @desc Testcase function for TP_5GNAS_AMF_REG_REJ_01 */ function f_TC_5GNAS_AMF_REG_REJ_01() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables // Preamble //TODO: f_NGAP_gnb_init(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body vt_NgNasUl_Msg := m_NG_REGISTRATION_REQUEST( {'1'B,'001'B},//in template (value) RegistrationType p_RegistrationType, '000'B,//in template (value) NAS_KsiValue p_KeySetId, '0'B,//in template (value) B1_Type p_Tsc, { // 24.501 cl. 9.11.3.4 iei:=omit, iel:='0002'O, idDigit1:='0000'B, // 1st identitity digit oddEvenInd:='0'B, // Odd/even indicator or Spare typeOfId:='000'B, // Type of identity otherDigits:='00'O// length (1..infinity) optional // Other identity digits, could be any length @sic R5-192389, @sic R5w190307 sic@ sic@ }//in template (value) NG_MobileIdentity p_MobileId, /* in template (omit) NAS_KeySetIdentifier p_NonCurrentKSI := omit, in template (omit) NG_GMM_Cap p_GMM_Cap := omit, in template (omit) NG_UE_SecurityCapability p_UESecurityCap := omit, in template (omit) NSSAI p_ReqNSSAI := omit, in template (omit) NG_TrackingAreaId p_TAI := omit, in template (omit) UE_NetworkCap p_UE_NetworkCap := omit, in template (omit) ULDataStatus p_ULDataStatus := omit, in template (omit) PDU_SessionStatus p_PDU_SessionStatus := omit, in template (omit) MICO_Ind p_MICO_Ind := omit, in template (omit) UE_Status p_UE_Status := omit, in template (omit) NG_MobileIdentity p_AddGUTI := omit, in template (omit) AllowedPDU_SessionStatus p_AllowedPDU_SessionStatus := omit, in template (omit) UE_UsageSetting p_UE_UsageSetting := omit, in template (omit) NG_DRXparameter p_DRXparam := omit, in template (omit) EPS_MessageContainer p_EPSMsg := omit, in template (omit) LADN_Ind p_LADN_Ind := omit, in template (omit) PayloadContainerType p_ContainerType := omit, // @sic R5w190113 sic@ in template (omit) PayloadContainer p_Payload := omit, in template (omit) NetworkSlicingInd p_NetworkSlicingInd := omit, in template (omit) NG_UpdateType p_NG_UpdateType := omit, in template (omit) MS_Clsmk2 p_MS_Clsmk2 := omit, in template (omit) CodecList p_SupportedCodecs := omit, in template (omit) EPS_BearerContextStatus p_EPS_BearerContextStatus := omit, // @sic R5s190543 sic@ in template (omit) NASMessageContainer p_Msg := omit, in template (omit) ExtdDRXParams p_ExtdDRXParams := omit, in template (omit) GPRS_Timer3 p_T3324 := omit, in template (omit) UERadioCapId p_UERadioCapId := omit, in template (omit) MappedNSSAI p_MappedNSSAI := omit, in template (omit) AddInfoRequest p_AddInfoRequest := omit, in template (omit) WUSAssistInfo p_WUSAssistInfo := omit, in template (omit) N5GCInd p_N5GCInd := omit, in template (omit) NB_N1ModeDRXParams p_NB_N1ModeDRXParams := omit, in template (omit) UE_RequestType p_UeRequestType := omit, in template (omit) NG_PagingRestriction p_PagingRestrict := omit, in template (omit) ServiceLvlAAContainer p_ServiceLvlAA := omit, in template (omit) NID p_NId := omit, in template (omit) PLMN_IdIE p_MSPLMNwDisasterCondition := omit, in template (omit) PEIPS_AssistInfo p_RequestedPEIPS_AssistInfo := omit, in template (omit) GPRS_Timer3 p_T3512 := omit */ ) vc_sendNAS_PDU := bit2oct(encvalue( vt_NgNasUl_Msg )); log(vt_NgNasUl_Msg); log(vc_sendNAS_PDU); //f_send_NGAP_PDU(m_ngap_initMsg(/*initiating msgtemplate*/)); //f_recv_NGAP_PDU(?); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Testbody done. ***"); // Postamble //TODO: f_postamble_NGAP_gNB(); f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Postamble done. ***"); } // End of function f_TC_5GNAS_AMF_REG_REJ_01 } }// End of module NG_NAS_TCFunctions