Commit daebaccb authored by Yann Garcia's avatar Yann Garcia
Browse files

Restore lost code in TCs

parent e991575f
Loading
Loading
Loading
Loading
+181 −0
Original line number Original line Diff line number Diff line
@@ -4099,30 +4099,211 @@ module NGAP_TCFunctions {
            } // End of group Handover_Preparation
            } // End of group Handover_Preparation
            //8.4.2
            //8.4.2
            group Handover_Resource_Allocation{
            group Handover_Resource_Allocation{

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_03
               */
              function f_TC_NGAP_AMF_MMP_03() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_03

            } // End of group Handover_Resource_Allocation
            } // End of group Handover_Resource_Allocation
            //8.4.3
            //8.4.3
            group Handover_Notification{
            group Handover_Notification{
            } // End of group Handover_Notification
            } // End of group Handover_Notification
            //8.4.4
            //8.4.4
            group Path_Switch_Request{
            group Path_Switch_Request{

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_04
               */
              function f_TC_NGAP_AMF_MMP_04() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_04

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_05
               */
              function f_TC_NGAP_AMF_MMP_05() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_05

            } // End of group Path_Switch_Request
            } // End of group Path_Switch_Request
            //8.4.5
            //8.4.5
            group Handover_Cancellation{
            group Handover_Cancellation{

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_06
               */
              function f_TC_NGAP_AMF_MMP_06() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_06

            } // End of group Handover_Cancellation
            } // End of group Handover_Cancellation
            //8.4.6
            //8.4.6
            group Uplink_RAN_Status_Transfer{
            group Uplink_RAN_Status_Transfer{
            } // End of group Uplink_RAN_Status_Transfer
            } // End of group Uplink_RAN_Status_Transfer
            //8.4.7
            //8.4.7
            group Downlink_RAN_Status_Transfer{
            group Downlink_RAN_Status_Transfer{

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_07
               */
              function f_TC_NGAP_AMF_MMP_07() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_07

            } // End of group Downlink_RAN_Status_Transfer
            } // End of group Downlink_RAN_Status_Transfer
            //8.4.8
            //8.4.8
            group Handover_Success{
            group Handover_Success{

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_08
               */
              function f_TC_NGAP_AMF_MMP_08() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_08

            } // End of group Handover_Success
            } // End of group Handover_Success
            //8.4.9
            //8.4.9
            group Uplink_RAN_Early_Status_Transfer{
            group Uplink_RAN_Early_Status_Transfer{
            } // End of group Uplink_RAN_Early_Status_Transfer
            } // End of group Uplink_RAN_Early_Status_Transfer
            //8.4.10
            //8.4.10
            group Downlink_RAN_Early_Status_Transfer{
            group Downlink_RAN_Early_Status_Transfer{

              /**
               * @desc Testcase function for TC_NGAP_aMF_MMP_09
               */
              function f_TC_NGAP_AMF_MMP_09() runs on gNBNGAPComponent {
                // Local variables

                // Preamble
                f_NGAP_gnb_init();
                f_NGAP_gnb_UE_Register();

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

                // Body

                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");

                // Postamble
                f_postamble_NGAP_AMF();
                f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
                log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

              } // End of function f_TC_NGAP_AMF_MMP_09

            } // End of group Downlink_RAN_Early_Status_Transfer
            } // End of group Downlink_RAN_Early_Status_Transfer
        } // End of group UE_Mobility_Management_Procedures
        } // End of group UE_Mobility_Management_Procedures
        //8.5
        //8.5
+251 −0
Original line number Original line Diff line number Diff line
@@ -2194,34 +2194,285 @@ module NGAP_TestCases {
        group UE_Mobility_Management_Procedures{
        group UE_Mobility_Management_Procedures{
            //8.4.1
            //8.4.1
            group Handover_Preparation{
            group Handover_Preparation{

                /**
                 * @desc "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with HANDOVER COMMAND with successfully handover."
                 */
                testcase TC_NGAP_AMF_MMP_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_3_1)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_3_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_MMP_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_MMP_01

                /**
                 * @desc "Verify that the AMF node successfully processes a HANDOVER REQUIRED message contains mandatory IEs and answers with HANDOVER PREPARATION FAILURE because the UE is not longer available."
                 */
                testcase TC_NGAP_AMF_MMP_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_3_1)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_3_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_MMP_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_MMP_02

            } // End of group Handover_Preparation
            } // End of group Handover_Preparation
            //8.4.2
            //8.4.2
            group Handover_Resource_Allocation{
            group Handover_Resource_Allocation{

                /**
                 * @desc "Verify that the AMF node successfully sends a HANDOVER REQUEST message that contains mandatory IEs to the GNB."
                 */
                testcase TC_NGAP_AMF_MMP_03() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

                    // Test control
                    if ((not PICS_NGAP_AMF_IUT) and (not PICS_A4_3_2)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_3_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_MMP_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_AMF_MMP_03

            } // End of group Handover_Resource_Allocation
            } // End of group Handover_Resource_Allocation
            //8.4.3
            //8.4.3
            group Handover_Notification{
            group Handover_Notification{
            } // End of group Handover_Notification
            } // End of group Handover_Notification
            //8.4.4
            //8.4.4
            group Path_Switch_Request{
            group Path_Switch_Request{

                /**
                 * @desc "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and answers with PATH SWITCH REQUEST ACKNOWLEDGE to acknowledge the path switch."
                 */
                testcase TC_NGAP_AMF_MMP_04() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

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

                /**
                 * @desc "Verify that the AMF node successfully processes a PATH SWITCH REQUEST message that contains mandatory IEs and two PDU Sessions with same ID and answers with PATH SWITCH REQUEST FAILURE."
                 */
                testcase TC_NGAP_AMF_MMP_05() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

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

            } // End of group Path_Switch_Request
            } // End of group Path_Switch_Request
            //8.4.5
            //8.4.5
            group Handover_Cancellation{
            group Handover_Cancellation{

                /**
                 * @desc "Verify that the AMF node successfully processes a HANDOVER CANCEL message that contains mandatory IEs and answers with HANDOVER CANCEL ACKNOWLEDGE to confirm that the ongoing handover was cancelled."
                 */
                testcase TC_NGAP_AMF_MMP_06() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

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

            } // End of group Handover_Cancellation
            } // End of group Handover_Cancellation
            //8.4.6
            //8.4.6
            group Uplink_RAN_Status_Transfer{
            group Uplink_RAN_Status_Transfer{
            } // End of group Uplink_RAN_Status_Transfer
            } // End of group Uplink_RAN_Status_Transfer
            //8.4.7
            //8.4.7
            group Downlink_RAN_Status_Transfer{
            group Downlink_RAN_Status_Transfer{

                /**
                 * @desc "Verify that the AMF node successfully sends a DOWNLINK RAN STATUS TRANSFER message that contains mandatory IEs."
                 */
                testcase TC_NGAP_AMF_MMP_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_3_6)){
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGAP_AMF_IUT and PICS_A4_3_6' 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_MMP_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_MMP_07

            } // End of group Downlink_RAN_Status_Transfer
            } // End of group Downlink_RAN_Status_Transfer
            //8.4.8
            //8.4.8
            group Handover_Success{
            group Handover_Success{

                /**
                 * @desc "Verify that the NG-RAN node successfully sends a Handover Success message to the AMF."
                 */
                testcase TC_NGAP_AMF_MMP_08() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

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

            } // End of group Handover_Success
            } // End of group Handover_Success
            //8.4.9
            //8.4.9
            group Uplink_RAN_Early_Status_Transfer{
            group Uplink_RAN_Early_Status_Transfer{
            } // End of group Uplink_RAN_Early_Status_Transfer
            } // End of group Uplink_RAN_Early_Status_Transfer
            //8.4.10
            //8.4.10
            group Downlink_RAN_Early_Status_Transfer{
            group Downlink_RAN_Early_Status_Transfer{

                /**
                 * @desc "Verify that the AMF node successfully sends a DOWNLINK RAN EARLY STATUS TRANSFER message that contains mandatory IEs."
                 */
                testcase TC_NGAP_AMF_MMP_09() runs on gNBNGAPComponent system TestAdapter {

                    // Local variables
                    var gNBNGAPComponent v_ngap_gnb;

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

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

            } // End of group Downlink_RAN_Early_Status_Transfer
            } // End of group Downlink_RAN_Early_Status_Transfer

        } // End of group UE_Mobility_Management_Procedures
        } // End of group UE_Mobility_Management_Procedures
        //8.5
        //8.5
        group Paging_Procedures{
        group Paging_Procedures{