Loading etc/Ats_NG_NAS/AtsNGAP_AMF.cfg_ +18 −3 Original line number Diff line number Diff line [MODULE_PARAMETERS] # This section shall contain the values of all parameters that are defined in your TTCN-3 modules. NAS_Pics.PICS_NAS_AMF_IUT := false NAS_Pics.PICS_NAS_AMF_IUT := true #NAS_Pics.PICS_NAS_AMF_IUT := false #NAS_Pics.PICS_NAS_AMF_IUT := true NG_NAS_Pics.PICS_NGNAS := true [LOGGING] # In this section you can specify the name of the log file and the classes of events Loading @@ -20,7 +21,9 @@ LogEventTypes:= Yes [TESTPORT_PARAMETERS] # In this section you can specify parameters that are passed to Test Ports. aMFNASComponent.N2_gNBaMF_P.params := "NAS/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" system.NGAP_gNB_1.params := "NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/TP_5GNAS_AMF_REG_REJ_01.pcapng)" system.N2_gNBaMF_P.params := "NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/TP_5GNAS_AMF_REG_REJ_01.pcapng)" #aMFNASComponent.N2_gNBaMF_P.params := "NAS/SCTP_FILE/IP_FILE/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" [DEFINE] # In this section you can create macro definitions, Loading @@ -47,6 +50,18 @@ aMFNASComponent.N2_gNBaMF_P.params := "NAS/ETH/PCAP_FILE(file=../captures/free5g # In this section you can specify what parts of your test suite you want to execute. #AtsImsIot_TestControl.control #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_01 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_02 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_03 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_04 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_05 #NG_NAS_TestCases.TC_NGNAS_AMF_AUT_SEQ_01 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_ACC_01 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_ACC_02 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_ACC_03 NG_NAS_TestCases.TC_5GNAS_AMF_REG_REJ_01 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_REJ_02 [GROUPS] # In this section you can specify groups of hosts. These groups can be used inside the # [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts. Loading etc/Ats_NG_NAS/AtsNGAP_GNB.cgf_ +3 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,9 @@ LogEventTypes:= Yes [TESTPORT_PARAMETERS] # In this section you can specify parameters that are passed to Test Ports. aMFNASComponent.N2_gNBaMF_P.params := "NAS/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" system.NGAP_gNB_1.params := "NAS/NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/5g_reg.pcapng)" system.N2_gNBaMF_P.params := "NAS/NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/5g_reg.pcapng)" #aMFNASComponent.N2_gNBaMF_P.params := "NAS/SCTP_FILE/IP_FILE/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" [DEFINE] # In this section you can create macro definitions, Loading ttcn/Ats_NG_NAS/NG_NAS_TCFunctions.ttcn +56 −31 Original line number Diff line number Diff line Loading @@ -275,7 +275,6 @@ module NG_NAS_TCFunctions { log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body f_send_NGAP_PDU( m_ngap_initMsg( m_n2_NGSetupRequest( Loading @@ -284,8 +283,7 @@ module NG_NAS_TCFunctions { PX_PLMN_IDENTITY, PX_GNB_ID,//'0000000000000000000000'B,//in template (value) bitstring p_gnbId, -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit ) ), )), { m_supportedTAItem( PX_TACode, Loading Loading @@ -641,4 +639,31 @@ module NG_NAS_TCFunctions { } // End of group TP_AMF_NGAP group TC_AMF_NGAP { /** * @desc Testcase function for TC_5GAP_NAS_01 */ function f_TC_5GAP_NAS_01() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables // Preamble f_NGAP_gnb_init(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body // TODO 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_5GAP_NAS_01 } // End of group TC_AMF_NGAP } // End of module NG_NAS_TCFunctions ttcn/Ats_NG_NAS/NG_NAS_TestCases.ttcn +29 −0 Original line number Diff line number Diff line Loading @@ -370,6 +370,35 @@ module NG_NAS_TestCases { } // End of group TC_AMF group TC_AMF_NGAP { /** * @desc The IUT is able to receive an INITIAL_UE_MESSAGE to indicate a NAS transport procedure and reply with INITIAL_CONTEXT_SETUP_RESPONSE * @see ETSI TS 138 413 [1], Clauses 8.6.2.2, 9.2.5.1, 9.2.5.2 and 9.2.2.1-3 */ testcase TC_5GAP_NAS_01() runs on gNB_NGNAS_NGAPComponent system TestAdapter { // Local variables var gNB_NGNAS_NGAPComponent v_ngnas_ngap_gnb; // Test control if (not PICS_NGNAS) { log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGNAS' shall be set to true for executing the TC. ***"); stop; } // Test component configuration f_cf_NGNAS_gNB_Up(v_ngnas_ngap_gnb); // Start v_ngnas_ngap_gnb.start(f_TC_5GAP_NAS_01()); // synchronize PTC on 1 sychronization points f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone}); //f_cf_Down/*gNBoraMF*/(); } // End of testcase TC_5GAP_NAS_01 } // End of group TC_AMF_NGAP }// End of module NG_NAS_TestCases ttcn/Ats_NG_NAS/NG_NAS_TestControl.ttcn +4 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,10 @@ module NG_NAS_TestControl { execute(TC_5GNAS_AMF_REG_REJ_01()); execute(TC_5GNAS_AMF_REG_REJ_02()); } if (not PICS_NGNAS) { execute(TC_5GAP_NAS_01()); } } } // End of module NG_NAS_TestControl Loading
etc/Ats_NG_NAS/AtsNGAP_AMF.cfg_ +18 −3 Original line number Diff line number Diff line [MODULE_PARAMETERS] # This section shall contain the values of all parameters that are defined in your TTCN-3 modules. NAS_Pics.PICS_NAS_AMF_IUT := false NAS_Pics.PICS_NAS_AMF_IUT := true #NAS_Pics.PICS_NAS_AMF_IUT := false #NAS_Pics.PICS_NAS_AMF_IUT := true NG_NAS_Pics.PICS_NGNAS := true [LOGGING] # In this section you can specify the name of the log file and the classes of events Loading @@ -20,7 +21,9 @@ LogEventTypes:= Yes [TESTPORT_PARAMETERS] # In this section you can specify parameters that are passed to Test Ports. aMFNASComponent.N2_gNBaMF_P.params := "NAS/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" system.NGAP_gNB_1.params := "NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/TP_5GNAS_AMF_REG_REJ_01.pcapng)" system.N2_gNBaMF_P.params := "NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/TP_5GNAS_AMF_REG_REJ_01.pcapng)" #aMFNASComponent.N2_gNBaMF_P.params := "NAS/SCTP_FILE/IP_FILE/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" [DEFINE] # In this section you can create macro definitions, Loading @@ -47,6 +50,18 @@ aMFNASComponent.N2_gNBaMF_P.params := "NAS/ETH/PCAP_FILE(file=../captures/free5g # In this section you can specify what parts of your test suite you want to execute. #AtsImsIot_TestControl.control #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_01 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_02 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_03 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_04 #NG_NAS_TestCases.TC_5GNAS_AMF_AUT_REQ_05 #NG_NAS_TestCases.TC_NGNAS_AMF_AUT_SEQ_01 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_ACC_01 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_ACC_02 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_ACC_03 NG_NAS_TestCases.TC_5GNAS_AMF_REG_REJ_01 #NG_NAS_TestCases.TC_5GNAS_AMF_REG_REJ_02 [GROUPS] # In this section you can specify groups of hosts. These groups can be used inside the # [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts. Loading
etc/Ats_NG_NAS/AtsNGAP_GNB.cgf_ +3 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,9 @@ LogEventTypes:= Yes [TESTPORT_PARAMETERS] # In this section you can specify parameters that are passed to Test Ports. aMFNASComponent.N2_gNBaMF_P.params := "NAS/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" system.NGAP_gNB_1.params := "NAS/NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/5g_reg.pcapng)" system.N2_gNBaMF_P.params := "NAS/NGAP/SCTP_FILE/IP_OFFLINE/PCAP_FILE(file=../captures/5g_reg.pcapng)" #aMFNASComponent.N2_gNBaMF_P.params := "NAS/SCTP_FILE/IP_FILE/ETH/PCAP_FILE(file=../captures/free5gc.pcap)" [DEFINE] # In this section you can create macro definitions, Loading
ttcn/Ats_NG_NAS/NG_NAS_TCFunctions.ttcn +56 −31 Original line number Diff line number Diff line Loading @@ -275,7 +275,6 @@ module NG_NAS_TCFunctions { log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body f_send_NGAP_PDU( m_ngap_initMsg( m_n2_NGSetupRequest( Loading @@ -284,8 +283,7 @@ module NG_NAS_TCFunctions { PX_PLMN_IDENTITY, PX_GNB_ID,//'0000000000000000000000'B,//in template (value) bitstring p_gnbId, -//in template (omit) GlobalGNB_ID.iE_Extensions p_iE_Extensions := omit ) ), )), { m_supportedTAItem( PX_TACode, Loading Loading @@ -641,4 +639,31 @@ module NG_NAS_TCFunctions { } // End of group TP_AMF_NGAP group TC_AMF_NGAP { /** * @desc Testcase function for TC_5GAP_NAS_01 */ function f_TC_5GAP_NAS_01() runs on NGNASComponent /*gNB_NGNAS_NGAPComponent*/ { // Local variables // Preamble f_NGAP_gnb_init(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); log("*** " & __SCOPE__ & ": INFO: Preamble done. ***"); // Body // TODO 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_5GAP_NAS_01 } // End of group TC_AMF_NGAP } // End of module NG_NAS_TCFunctions
ttcn/Ats_NG_NAS/NG_NAS_TestCases.ttcn +29 −0 Original line number Diff line number Diff line Loading @@ -370,6 +370,35 @@ module NG_NAS_TestCases { } // End of group TC_AMF group TC_AMF_NGAP { /** * @desc The IUT is able to receive an INITIAL_UE_MESSAGE to indicate a NAS transport procedure and reply with INITIAL_CONTEXT_SETUP_RESPONSE * @see ETSI TS 138 413 [1], Clauses 8.6.2.2, 9.2.5.1, 9.2.5.2 and 9.2.2.1-3 */ testcase TC_5GAP_NAS_01() runs on gNB_NGNAS_NGAPComponent system TestAdapter { // Local variables var gNB_NGNAS_NGAPComponent v_ngnas_ngap_gnb; // Test control if (not PICS_NGNAS) { log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGNAS' shall be set to true for executing the TC. ***"); stop; } // Test component configuration f_cf_NGNAS_gNB_Up(v_ngnas_ngap_gnb); // Start v_ngnas_ngap_gnb.start(f_TC_5GAP_NAS_01()); // synchronize PTC on 1 sychronization points f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone}); //f_cf_Down/*gNBoraMF*/(); } // End of testcase TC_5GAP_NAS_01 } // End of group TC_AMF_NGAP }// End of module NG_NAS_TestCases
ttcn/Ats_NG_NAS/NG_NAS_TestControl.ttcn +4 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,10 @@ module NG_NAS_TestControl { execute(TC_5GNAS_AMF_REG_REJ_01()); execute(TC_5GNAS_AMF_REG_REJ_02()); } if (not PICS_NGNAS) { execute(TC_5GAP_NAS_01()); } } } // End of module NG_NAS_TestControl