Commit 371f12d7 authored by Yann Garcia's avatar Yann Garcia
Browse files

Re-organize TD files

parent e2eb7c63
Loading
Loading
Loading
Loading
+127 −0
Original line number Diff line number Diff line
module AtsIms5gIot_TD_INI {

    // LibCommon
    // LibSip
    // LibIms
    import from LibIms_UpperTester all;
    // LibIot
    import from LibIot_TestInterface all;
    import from LibIot_TestConfiguration all;
    import from LibIot_PIXITS all;
    import from LibIot_VxLTE_PIXITS all;
    import from LibIot_VxLTE_PIXITS all;
    import from LibIot_5GNR_PIXITS all;
    import from LibIot_5GNR_Functions all;
    // LibImsIot
    import from AtsImsIot_Functions all;
    // LibImsIot
    import from AtsImsIot_TypesAndValues all; 
    import from AtsImsIot_TestConfiguration all; 
    import from AtsImsIot_TestSystem all; 
    import from AtsImsIot_Functions all;
    import from AtsImsIot_PIXITS all;
    // Ims5gIot
    import from AtsIms5gIot_TestConfiguration all; 
    import from AtsIms5gIot_TestSystem all; 
    import from AtsIms5gIot_Functions all; 
    import from AtsIms5gIot_TP_behavior_GM all;
    import from AtsIms5gIot_TP_behavior_MW_PS all;
    import from AtsIms5gIot_TP_behavior_MW_IS all;
    import from AtsIms5gIot_TP_behavior_MW_SI all;
    import from AtsIms5gIot_TP_behavior_MM all;
    import from AtsIms5gIot_TP_behavior_N1N2 all;
    import from AtsIms5gIot_TP_behavior_N5_PCF all;
    import from AtsIms5gIot_PICs all;
     
    group Interoperability{

        group UE_calling_PSAP_with_emergency_registration {

            // To demonstrate the establishment of dedicated PDU sessions at the originating 5GC due to SIP emergency session establishment within an emergency registration
            testcase TD_VoNR_ECO_INT_INI_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_GX_INTERFACENAME,
                                                         PX_DIAMETER_RX_INTERFACENAME,
                                                         PX_SIP_MW_PE_INTERFACENAME,
                                                         PX_SIP_MM_B_PSAP_INTERFACENAME,
                                                         PX_NGAP_N1N2_INTERFACENAME,
                                                         PX_HTTP_N5_INTERFACENAME
                                                         })){
                    var SipMessage v_sip;

                    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
                    if (not PX_ECALL) {
                        f_mtc_check_TP_GM_PCSCF_5G_ECO_INVITE_02(vc_5g_monitor_components.gmA, -, v_sip);
                    } // N6 interface not supported, eCall
                    // Step 3
                    f_mtc_check_TP_GM_PCSCF_5G_ECO_REGISTER_02(vc_5g_monitor_components.gmA, true);
                    // Event 7
                    f_mtc_check_TP_MW_PCSCF_5G_ECO_INVITE_02(vc_5g_monitor_components.mwPI, -, v_sip);
                    // Event 8
                    f_mtc_check_TP_MM_ECSCF_5G_ECO_INVITE_01(vc_5g_monitor_components.mwPI, true);
                    // Events 3
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PCR_02(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Events 4
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCF_5G_ECO_PCA_02(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Event 5, 6
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PNA_01(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Event 11
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PUR_04(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Event 16
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PUA_01(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }

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

        } // End of group UE_calling_PSAP_with_emergency_registration

    } // End of group Interoperability

} // End of module AtsIms5gIot_TD_INI
+2 −104
Original line number Diff line number Diff line
module AtsIms5gIot_xxx_REG {
module AtsIms5gIot_TD_REG {

    // LibCommon
    // LibSip
@@ -250,93 +250,6 @@ module AtsIms5gIot_xxx_REG {

        } // End of group IMS_Emergency_Registration_Unsuccessful

        group UE_calling_PSAP_with_emergency_registration {

            // To demonstrate the establishment of dedicated PDU sessions at the originating 5GC due to SIP emergency session establishment within an emergency registration
            testcase TD_VoNR_ECO_INT_INI_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_GX_INTERFACENAME,
                                                         PX_DIAMETER_RX_INTERFACENAME,
                                                         PX_SIP_MW_PE_INTERFACENAME,
                                                         PX_SIP_MM_B_PSAP_INTERFACENAME,
                                                         PX_NGAP_N1N2_INTERFACENAME,
                                                         PX_HTTP_N5_INTERFACENAME
                                                         })){
                    var SipMessage v_sip;

                    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
                    if (not PX_ECALL) {
                        f_mtc_check_TP_GM_PCSCF_5G_ECO_INVITE_02(vc_5g_monitor_components.gmA, -, v_sip);
                    } // N6 interface not supported, eCall
                    // Step 3
                    f_mtc_check_TP_GM_PCSCF_5G_ECO_REGISTER_02(vc_5g_monitor_components.gmA, true);
                    // Event 7
                    f_mtc_check_TP_MW_PCSCF_5G_ECO_INVITE_02(vc_5g_monitor_components.mwPI, -, v_sip);
                    // Event 8
                    f_mtc_check_TP_MM_ECSCF_5G_ECO_INVITE_01(vc_5g_monitor_components.mwPI, true);
                    // Events 3
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PCR_02(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Events 4
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCF_5G_ECO_PCA_02(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Event 5, 6
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PNA_01(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Event 11
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PUR_04(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }
                    // Event 16
                    if (PICS_5G_SERVICE_BASED_ARCHITECTURE == true) {
                        f_mtc_check_TP_N5_PCSCF_5G_ECO_PUA_01(vc_5g_monitor_components.n5, true);
                    } else {
                        // Use RX interface instead of N5
                    }

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

        } // End of group UE_calling_PSAP_with_emergency_registration

    } // End of group Interoperability


@@ -345,21 +258,6 @@ module AtsIms5gIot_xxx_REG {





















@@ -432,4 +330,4 @@ module AtsIms5gIot_xxx_REG {



} // End of module AtsIms5gIot_xxx_REG
} // End of module AtsIms5gIot_TD_REG
+2 −1
Original line number Diff line number Diff line
module AtsIms5gIot_TestControl {

    import from AtsIms5gIot_xxx_REG all;
    import from AtsIms5gIot_TD_REG all;
    import from AtsIms5gIot_TD_INI all;

    control {

+2 −1
Original line number Diff line number Diff line
@@ -15,7 +15,8 @@ sources := \
            AtsIms5gIot_TP_behavior_MW_PS.ttcn  \
            AtsIms5gIot_TP_behavior_MW_SI.ttcn  \
            AtsIms5gIot_TP_behavior_MW_IS.ttcn  \
            AtsIms5gIot_xxx_REG.ttcn            \
            AtsIms5gIot_TD_REG.ttcn             \
            AtsIms5gIot_TD_INI.ttcn             \


modules :=  ../LibAtsImsIot                      \