Commit ca0a93a5 authored by juvancic's avatar juvancic
Browse files

added tc_URP01-03, DRP01

parent c90aa5c4
Loading
Loading
Loading
Loading
+112 −0
Original line number Original line Diff line number Diff line
@@ -1762,18 +1762,130 @@ module NGAP_TestCases {
        group UE_Radio_Capability_Management_Procedures{
        group UE_Radio_Capability_Management_Procedures{
            //8.14.1
            //8.14.1
            group UE_Radio_Capability_Info_Indication{
            group UE_Radio_Capability_Info_Indication{

                /**
                 * @desc  Test objective "Verify that the IUT can send a UE_RADIO_CAPABILITY_INFO_INDICATION."
                 */
                testcase TC_NGAP_GNB_URP_01() runs on aMFNGAPComponent system TestAdapter {

                    // Local variables
                    var aMFNGAPComponent v_ngap_amf;

                    // Test control
                    if ((not PICS_NGAP_GNB_IUT) and (not PICS_A3_13_1)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_13_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_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_GNB_URP_01
                 
            } // 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  Test objective "Verify that the IUT can send a UE RADIO CAPABILITY CHECK RESPONSE message that contains mandatory IEs to provide the UE radio capabilities."
                 */
                testcase TC_NGAP_GNB_URP_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_13_2)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_13_2' 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_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_GNB_URP_02

            } // 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  Test objective  "Verify that the IUT can send a UE RADIO CAPABILITY ID MAPPING REQUEST."
                 */
                testcase TC_NGAP_GNB_URP_03() runs on aMFNGAPComponent system TestAdapter {

                    // Local variables
                    var aMFNGAPComponent v_ngap_amf;

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

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

            } // 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
        group Data_Usage_Reporting_Procedures{
        group Data_Usage_Reporting_Procedures{
            //8.15.1
            //8.15.1
            group Secondary_RAT_Data_Usage_Report{
            group Secondary_RAT_Data_Usage_Report{

                /**
                 * @desc  Test objective "Verify that the IUT can send a SECONDARY RAT DATA USAGE REPORT."
                 */
                testcase TC_NGAP_GNB_DRP_01() runs on aMFNGAPComponent system TestAdapter {

                    // Local variables
                    var aMFNGAPComponent v_ngap_amf;

                    // Test control
                    if ((not PICS_NGAP_GNB_IUT) and (not PICS_A3_14_1)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_GNB_IUT and PICS_A3_14_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_DRP_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_GNB_DRP_01

            } // End of group Secondary_RAT_Data_Usage_Report
            } // End of group Secondary_RAT_Data_Usage_Report
        } // End of group Data_Usage_Reporting_Procedures
        } // End of group Data_Usage_Reporting_Procedures
        //8.16
        //8.16