Commit b245790c authored by juvancic's avatar juvancic
Browse files

added AMF_URP* test functions

parent dc7cf224
Loading
Loading
Loading
Loading
+112 −0
Original line number Original line Diff line number Diff line
@@ -1828,6 +1828,34 @@ module NGAP_TestCases {
        group UE_TNLA_Binding_Procedures{
        group UE_TNLA_Binding_Procedures{
            //8.13.1
            //8.13.1
            group UE_TNLA_Binding_Release{
            group UE_TNLA_Binding_Release{

                /**
                 * @desc "Verify that the IUT can send a UE TNLA BINDING RELEASE REQUEST to initiate a UE TNLA Binding Release procedure."
                 */
                testcase TC_NGAP_AMF_UBP_01() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

                    // 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_UBP_01

            } // End of group UE_TNLA_Binding_Release
            } // End of group UE_TNLA_Binding_Release
        } // End of group UE_TNLA_Binding_Procedures
        } // End of group UE_TNLA_Binding_Procedures
        //8.14
        //8.14
@@ -1837,9 +1865,65 @@ module NGAP_TestCases {
            } // End of group UE_Radio_Capability_Info_Indication
            } // End of group UE_Radio_Capability_Info_Indication
            //8.14.2
            //8.14.2
            group UE_Radio_Capability_Check{
            group UE_Radio_Capability_Check{

                /**
                 * @desc "Verify that the IUT can send a UE RADIO CAPABILITY CHECK REQUEST to initiate UE Radio Capability Management procedure."
                 */
                testcase TC_NGAP_AMF_URP_01() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

                    // 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_URP_01

            } // End of group UE_Radio_Capability_Check
            } // End of group UE_Radio_Capability_Check
            //8.14.3
            //8.14.3
            group UE_Radio_Capability_ID_Mapping{
            group UE_Radio_Capability_ID_Mapping{

                /**
                 * @desc "Verify that the IUT can send a UE RADIO CAPABILITY ID MAPPING RESPONSE message that contains mandatory IEs to provide the UE radio capabilities id mapping."
                 */
                testcase TC_NGAP_AMF_URP_02() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

            } // End of group UE_Radio_Capability_ID_Mapping
            } // End of group UE_Radio_Capability_ID_Mapping
        } // End of group UE_Radio_Capability_Management_Procedures
        } // End of group UE_Radio_Capability_Management_Procedures
        //8.15
        //8.15
@@ -1855,6 +1939,34 @@ module NGAP_TestCases {
            } // End of group Uplink_RIM_Information_Transfer
            } // End of group Uplink_RIM_Information_Transfer
            //8.16.2
            //8.16.2
            group Downlink_RIM_Information_Transfer{
            group Downlink_RIM_Information_Transfer{

                /**
                 * @desc "Verify that the IUT can send a DOWNLINK RIM INFORMATION TRANSFER."
                 */
                testcase TC_NGAP_AMF_RIP_01() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

                    // 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_RIP_01

            } // End of group Downlink_RIM_Information_Transfer
            } // End of group Downlink_RIM_Information_Transfer
        } // End of group RIM_Information_Transfer_Procedures
        } // End of group RIM_Information_Transfer_Procedures
    } // End of group aMF_Role
    } // End of group aMF_Role