Commit 41431fc2 authored by juvancic's avatar juvancic
Browse files

added TP

parent 68064348
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -157,4 +157,15 @@ module NGAP_Steps {

    }//end group DefaultTestStep

    group BehaviorFunctions{

        /**
         * @desc 
         */
        function f_NGAP_amf_UE_Register() runs on NGAPComponent {
        //FIXME: Implementation of UE registration                
        } // End of function f_NGAP_amf_UE_Register()

    }//end group BehaviorFunctions

} // End of module NGAP_Steps
+77 −1
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ module NGAP_TCFunctions {

                   // Preamble
                   f_NGAP_amf_init();
                   f_NGAP_amf_UE_Register();
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

@@ -141,7 +142,82 @@ module NGAP_TCFunctions {

                } // End of function f_TC_NGAP_gNB_PDU_01

                /**
                * @desc Testcase function for TC_NGAP_gNB_PDU_02
                */
                function f_TC_NGAP_GNB_PDU_02() runs on aMFNGAPComponent {
                   // Local variables

                   // Preamble
                   f_NGAP_amf_init();
                   f_NGAP_amf_UE_Register();
                   f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
                   log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                   // Body
                   f_send_NGAP_PDU(
                     m_ngap_initMsg(
                       m_n2_PDUSessionResourceSetupRequest(
                                                 1,
                                                 1,
                                                 //m_ie_pDUSessionResourceSetupListSUReq(
                                                     {
                                                         m_pDUSessionResourceSetupItemSUReq(
                                                              0,
                                                              m_s_NSSAI('00'O,'000000'O),
                                                              '00'O //TODO replace with template
                                                              /*bit2oct(encvalue(m_ie_pDUSessResSetReqTrIEs(
                                                                                       m_uPTLInf(m_gTPTunnel(
                                                                                                        '0'B',
                                                                                                        '00000000'O(-))),
                                                                                       m_ie_PDUSessionType(-),
                                                                                       m_ie_qosFlowSetReqList({})
                                                                                       )))*/
                                                         )
                                                     }
                                                 //)


                       )
                     )
                   );


                   f_recv_NGAP_PDU(
                     mw_ngap_succMsg(
                       mw_n2_PDUSessionResourceSetupResponse(
                                                             -,
                                                             -,
                                                             //? //TODO replace with template
                                                             {
                                                                (mw_pDUSessionResourceSetupItemSURes(
                                                                                                        ?,//template (present) PDUSessionID p_pDUSessionID,
                                                                                                        //mw_pDUSessionResourceSetupResponseTransfer(
                                                                                                        //            ?,//template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?,
                                                                                                        //            *,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
                                                                                                        //            *,//template SecurityResult p_securityResult := *,
                                                                                                        //            *,//template QosFlowListWithCause p_qosFlowFailedToSetupList := *,
                                                                                                        //            *//template PDUSessionResourceSetupResponseTransfer.iE_Extensions p_iE_Extensions := *
                                                                                                        //            ), In ASN1 it is OCTET STRING - PDUSessionResourceSetupResponseTransfer
                                                                                                        ?,//template (present) PDUSessionResourceSetupItemSURes.pDUSessionResourceSetupResponseTransfer p_pDUSessionResourceSetupResponseTransfer := ?,
                                                                                                        *//template PDUSessionResourceSetupItemSURes.iE_Extensions p_iE_Extensions := *
                                                                                                     ) 

                                                                )
                                                             }
                        )
                     )
                   );

                   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_PDU_02

            } // End of group PDU_Session_Resource_Setup
            //8.2.2
+30 −2
Original line number Diff line number Diff line
@@ -127,8 +127,8 @@ module NGAP_TestCases {
                    var aMFNGAPComponent v_ngap_amf;

                    // Test control
                    if (not PICS_NGAP_GNB_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT' shall be set to true for executing the TC. ***");
                    if ((not PICS_NGAP_GNB_IUT) and (not PICS_A3_1_1)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_1_1' shall be set to true for executing the TC. ***");
                        stop;
                    }

@@ -145,6 +145,34 @@ module NGAP_TestCases {

                } // End of testcase TC_NGAP_GNB_PDU_01

                /**
                 * @desc Test objective "Verify that the NG-RAN node reports the establishment of the corresponding PDU session as failed if a PDU SESSION RESOURCE SETUP REQUEST contains several PDU Session ID IEs set to the same value."
                 */
                testcase TC_NGAP_GNB_PDU_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_1_1)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_1_1' 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_PDU_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_PDU_02


            } // End of group PDU_Session_Resource_Setup

            //8.2.2