Commit e4b21e06 authored by Steffen Ludtke's avatar Steffen Ludtke
Browse files

add testcase and function for TC_NGAP_AMF_CMP_07

parent 84f5791b
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
@@ -4317,6 +4317,63 @@ module NGAP_TCFunctions {
            } // End of group RAN_CP_Relocation_Indication
            //8.3.9
            group Retrieve_UE_Information{
              
              /**
               * @desc Testcase function for TP_NGAP_AMF_CMP_07
               */
               function f_TC_NGAP_AMF_CMP_07() runs on gNBNGAPComponent {

             	   // Local variables

                   // Preamble
                   f_NGAP_gnb_init();
                   f_NGAP_gnb_UE_Register();
                   					
					// TODO: hasEstablishedInitialContext
					
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");


                   // Body
                   f_send_NGAP_PDU(
                     m_ngap_initMsg(
                     	m_n2_RetrieveUEInformation
                     	(
                     		m_fiveG_S_TMSI // FiveG_S_TMSI
                     		(
                     			PX_AMF_SET_ID, 
                                PX_AMF_POINTER, 
                                '00000001'O, 
                                omit
                     		)
                     	)
                    ));
   
                   f_recv_NGAP_PDU(
                     mw_ngap_initMsg(
                     	mw_n2_UEInformationTransfer
                     	(
                     		mw_fiveG_S_TMSI
                     		(
                     			PX_AMF_SET_ID, 
                                PX_AMF_POINTER, 
                                ?, 
                                *
                     		)
                     	)
                     ));


                   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_AMF_CMP_07
            } // End of group Retrieve_UE_Information
            //8.3.10
            group UE_Information_Transfer{
+27 −0
Original line number Diff line number Diff line
@@ -2376,6 +2376,33 @@ module NGAP_TestCases {
            } // End of group RAN_CP_Relocation_Indication
            //8.3.9
            group Retrieve_UE_Information{
              
              /**
                 * @desc "Verify that the IUT can successfully request UE information from the AMF."
                 */
                testcase TC_NGAP_AMF_CMP_07() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

                    // Test control
                    if ((not PICS_NGAP_AMF_IUT) and (not PICS_A4_2_10)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_2_10' 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_CMP_07());

                    // 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_CMP_07
            } // End of group Retrieve_UE_Information
            //8.3.10
            group UE_Information_Transfer{