Commit 42156ea0 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

addedt td's

parent 371a38ad
Loading
Loading
Loading
Loading
+68 −0
Original line number Diff line number Diff line
@@ -182,6 +182,74 @@ module AtsIms5gIot_TD_REG {

        } // End of group IMS_Emergency_Registration_Unsuccessful

        group IMS_Emergency_Registration_Roaming{

            // To perform emergency roaming IMS registration via the established emergency PDU session
            testcase TD_VoNR_ECO_RMI_REG_01() runs on FiveGNRTestCoordinator system FiveGNRIotSystemInterface {
                
                var IotEquipmentUser v_ueA    := f_cf_create_IotEquipmentUser ( c_userUE_A_emergency );
                var ImsUserInfo v_userInfoA   := f_getSipUserId ( PX_EUT_A );

                f_set5GNRMonIterfacesAvailability();
                // Check required monitor interfaces due to TD
                if (f_check5GNRRequiredMonitorInterface({
                                                        PX_DIAMETER_RX_INTERFACENAME,
                                                        PX_DIAMETER_GX_INTERFACENAME,
                                                        PX_NGAP_N1N2_INTERFACENAME,
                                                        PX_HTTP_N5_INTERFACENAME
                                                        })){
                    f_cf_create5GNRMonitor();

                    // map/connect component ports
                    f_cf_adapter_up ( );
                    f_cf_user_up ( v_ueA );
                    f_cf_5GNRMonitor_Up();

                    // preamble
                    f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile

                    // test body
                    // Event 1, 9
                    f_mtc_check_TP_GM_PCSCF_5G_ECO_REGISTER_04(vc_5g_monitor_components.gmA, true);
                    // Event 1, 11
                    f_mtc_check_TP_GM_PCSCF_5G_ECO_REGISTER_05(vc_5g_monitor_components.gmA, true);
                    // Events 5, 8
                    f_mtc_check_TP_MW_PCSCF_5G_ECO_REGISTER_04(vc_5g_monitor_components.mwPI, true);
                    // Events 5, 10
                    f_mtc_check_TP_MW_PCSCF_5G_ECO_REGISTER_05(vc_5g_monitor_components.mwPI, true);
                    
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == false) {
                        // Events 6, 7
                        f_mtc_check_TP_CX_HSS_5G_ECO_UAA_01(vc_5g_monitor_components.gx, true);
                    }

                    // Event 3, 4
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PCR_01(vc_5g_monitor_components.n5, true);
                        f_mtc_check_TP_N5_PCF_5G_ECO_PCA_01(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                        f_mtc_check_TP_RX_PCSCF_5G_ECO_AAR_01(vc_5g_monitor_components.rx, true);
                        f_mtc_check_TP_RX_PCSCF_5G_ECO_AAA_01(vc_5g_monitor_components.rx, true);
                    }

                    // postamble
                    f_mtc_userRadioEnabled ( v_ueA, false, true );

                    //unmap/disconnect component ports
                    f_cf_user_down ( v_ueA );
                    f_cf_5GNRMonitor_Down();
                    f_cf_adapter_down ( );
                }else{
                    //log...
                    setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
                }
            } // End of testcase TD_VoNR_ECO_RMI_REG_01


        } // End of group IMS_Emergency_Registration_Roaming


    } // End of group Interoperability