Commit 7a7bee10 authored by garciay's avatar garciay
Browse files

Implementation of TC_IMSEPC_Network_Attachment_0001

Implementation of TP_EPC_6002_01
parent d79275bc
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -5265,13 +5265,13 @@ group checksTC_IMS_SHARE_0009 {
         *         UE_A completes initial network_attachment to EPC 
         *     }
         *     then { 
         *         receives IP_configuration_data ( 
         *             containing IPv4_address of UE_A or 
         *             containing IPv6_address of UE_A or 
         *             containing (IPv4_address and IPv6_address) of UE_A
         *         UE_A receives IP_configuration_data containing ( 
         *             IPv4_address of UE_A or 
         *             IPv6_address of UE_A or 
         *             (IPv4_address and IPv6_address) of UE_A
         *         )
         *         containing DNS_information 
         *         containing P-CSCF_information ( 
         *         and DNS_information 
         *         and P-CSCF_information ( 
         *             indicating the P-CSCF-IP_address or 
         *             indicating the P-CSCF-FQDN_address 
         *         )
@@ -5314,7 +5314,8 @@ group checksTC_IMS_SHARE_0009 {
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        ) runs on ImsTestCoordinator {
            // TODO 
            f_mtc_check_TP_IMS_5011_01_gm(p_monitorCompRef, p_checkMessage); // Check: IMS_P-CSCF receives REGISTER 
            f_mtc_check_response_mx(p_monitorCompRef, c_statusLine200); // Check: UE_A receives response on REGISTER
        } // End of function f_mtc_check_TP_EPC_6002_01
        
        /**
@@ -5346,7 +5347,7 @@ group checksTC_IMS_SHARE_0009 {
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        ) runs on ImsTestCoordinator {
            // TODO 
            // TODO Send a INVITE to user B and check for failure 
        } // End of function f_mtc_check_TP_EPC_6003_01
        
        /**
+26 −1
Original line number Diff line number Diff line
@@ -2442,6 +2442,31 @@ module AtsImsIot_Functions {
           }
        }
        
        group epc {
            
            /**
             * @desc  This function enable/disable power on radio antenna in order to trigger Network attachment/detach operation
             * @param p_ueRef Reference to IMS UE user component
             * @param p_enableRadio 
             *     Set to true to trigger Network attachment processing, 
             *     Set to false to trigger Network detach processing
             * @param p_synchronousMode 
             *     Set to true if this function shall return when Network attachment/detach operation in achieved (synchronous mode),
             *     Set to false if this function just initiates the Network attachment/detach operation (asynchronous mode)
             * @return
             *     true in case of successfull execution of the trigger command
             *     otherwise false
             * @verdict Unchanged
             * @see ETSI TS 103 029 V3.1.1 - Clause 6.1
             */
            function f_mtc_userRadioEnabled(EquipmentUser p_ueRef, boolean p_enableRadio, boolean p_synchronousMode) 
            runs on TestCoordinator return boolean{
                // TODO
                return false;
            } // End of function f_mtc_userRadioEnabled
            
        } // End of group epc

 	}
 
   		/**
+17 −9
Original line number Diff line number Diff line
@@ -35,8 +35,12 @@ module AtsImsIot_TestCases_EPC {
    // ImsIot
    import from AtsImsIot_TestConfiguration all; 
    import from AtsImsIot_TestSystem all; 
    import from AtsImsIot_Functions all; 
    import from AtsImsIot_Behavior { 
        group epcChecks
        group epcChecks; 
        function 
            f_mtc_check_response_mx, 
            f_mtc_check_TP_IMS_5011_01_gm 
    }; 
    
    group networkAttachmentAndDefaultBearer {
@@ -49,29 +53,33 @@ module AtsImsIot_TestCases_EPC {
         */
        testcase TC_IMSEPC_Network_Attachment_0001 ( ) runs on ImsTestCoordinator system IotSystemInterface {
            var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
            var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B);
            var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A);
            var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B);
            var ImsInterfaceMonitor v_rx := f_cf_create_monitor(c_rx);
            var ImsUserInfo v_userInfoA := f_getImUser(PX_EUT_A);
            var ImsUserInfo v_userInfoB := f_getImUser(PX_EUT_B); 
            var CF_EPC_CALL v_config := { v_gmA, v_rx, v_gmB };
            var CF_EPC_CALL v_config := { v_gmA, v_rx, omit };
            
            // map/connect component ports
            f_cf_adapter_up ( );
            f_cf_user_up ( v_ueA );
            f_cf_user_up ( v_ueB );
            f_cf_epc_call_up ( v_config );
            
            // preamble
            f_mtc_userRadioEnabled(v_ueA, true, true); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
            
            // test body
            // Check that user A can register to IMS A
            f_mtc_userRegistration(v_ueA, v_userInfoA); // Send REGISTER request message
            f_mtc_check_TP_EPC_6002_01(v_gmA, false); // Check
            f_mtc_userCheckRegistration(v_ueA, f_getAnyValidUser(PX_EUT_A)); 
            
            f_mtc_check_TP_EPC_6002_01(v_gmA, false);
            
            // postamble
            f_PO_user_home_deregistration(v_ueA);
            f_mtc_userRadioEnabled(v_ueA, false, true);
            
            //unmap/disconnet component ports
            f_cf_user_down(v_ueA);
            f_cf_user_down(v_ueB);
            f_cf_epc_call_down(v_config);
            f_cf_adapter_down();
        } // End of TC TC_IMSEPC_Network_Attachment_0001