Commit 6b223cac authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

Iztok's update - new TD modules added.

parent 314964f2
Loading
Loading
Loading
Loading
+210 −0
Original line number Diff line number Diff line
/**
 *  @author     STF 574
 *  @version    $Id: $
 *  @desc       This module provides ATS specific test case definitions for Network Attachment.
 *  @see        ETSI TS 103 653-2 (2020)
 */
module AtsImsIot_TD_ATT{

    // LibCommon
    // LibSip
    // LibIms
    import from LibIms_UpperTester { type ImsUserInfo };
    // LibIot
    import from LibIot_TestInterface { type IotEquipmentUser };
    import from LibIot_TestConfiguration { function f_cf_create_IotEquipmentUser };
    import from LibIot_PIXITS all;
    import from LibIot_VxLTE_PIXITS all;
    import from LibIot_VxLTE_Functions all;
    // LibImsIot
    import from AtsImsIot_Functions { function f_getImUser};
    // ImsIot
    import from AtsImsIot_TestConfiguration all; 
    import from AtsImsIot_TestSystem all; 
    import from AtsImsIot_Functions all;
    import from AtsImsIot_TP_behavior_GM all;
    import from AtsImsIot_TP_behavior_MW_PS all;
    import from AtsImsIot_TP_behavior_IC all;
    import from AtsImsIot_TP_behavior_CX all;
    import from AtsImsIot_TP_behavior_GX all;
    import from AtsImsIot_TP_behavior_ISC all;
    import from AtsImsIot_TP_behavior_MW all;
    import from AtsImsIot_TP_behavior_S6A all;
    import from AtsImsIot_TP_behavior_S9 all;
    import from AtsImsIot_TP_behavior_SH all;
    import from AtsImsIot_Behavior all; // TODO To be removed 
     
    group Interoperability{
        group networkAttachmentAndDefaultBearer {
            /**
             * @desc    Initial Network Attachment and Establishment of the Default Bearer.
             * On successful initial network attachment, the UE should discover the P-CSCF IP address.
             * The EPC will create the Default Bearers which will allow communication only between the UE and the P-CSCF
             * @see TS 124 229 [2], clause 9.2.1 and L.2.2.1; TS 129 212 [9], clauses 4.5.1 (item 1) and 4a.5.1 (item 1); TS 129 272 [10], clause 5.2.1.1
             */
            testcase TC_VxLTE_INT_ATT_01 ( ) 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 ImsUserInfo v_userInfoA    := f_getImUser ( PX_EUT_A );
                //var ImsUserInfo v_userInfoB    := f_getImUser ( PX_EUT_B ); 
    
                f_setVxLteMonIterfacesAvailability();
                //Check required monitor interfaces due to TD
				if (f_checkVxLteRequiredMonitorInterface({PX_DIAMETER_S9_INTERFACENAME,PX_DIAMETER_GX_INTERFACENAME,PX_DIAMETER_S6A_INTERFACENAME})){
	                f_cf_createVxLteMonitor();    
	        
	                // map/connect component ports
	                f_cf_adapter_up ( );
	                f_cf_user_up ( v_ueA );
	                //f_cf_user_up ( v_ueB );
	                f_cf_VxLteMonitor_Up();
	    
	                // preamble
	                f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
	                //f_mtc_userRegistration ( v_ueB, v_userInfoB );
	    
	                // 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 ( vc_vxlte_monitor_components.gmA, false ); // Check
	                f_mtc_check_TP_S6A_MME_ULR_01 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULR – Event 2)
	                f_mtc_check_TP_S6A_HSS_ULA_01 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULA – Event 3) 
	                f_mtc_check_TP_GX_PCRF_CCA_01 ( vc_vxlte_monitor_components.gx, false ); // Check (CCR, CCA – Events 4, 5)
	                //f_mtc_userCheckRegistration ( v_ueA, f_getAnyValidUser ( PX_EUT_A ) ); 
	                //f_mtc_check_TP_EPC_6003_01 ( v_ueA, c_vxlte_monitor_components.gmA, v_ueB, c_vxlte_monitor_components.gmB ); // Test sequence #4-5
	    
	                // postamble
	                //f_PO_user_home_deregistration ( v_ueB );
	                //f_PO_user_home_deregistration ( v_ueA );
	                f_mtc_userRadioEnabled ( v_ueA, false, true );
	    
	                //unmap/disconnect component ports
	                //f_cf_user_down ( v_ueB );
	                f_cf_user_down ( v_ueA );
	                f_cf_VxLteMonitor_Down();
	                f_cf_adapter_down ( );
				}else{
					//log...
					setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
				}
            } // End of TC TC_VxLTE_INT_ATT_01
            
        } //End of group networkAttachmentAndDefaultBearer
    } // End of group Interoperability
    group Roaming{
        group networkAttachmentAndDefaultBearer {
              /**
             * @desc    Initial Network Attachment and Establishment of the Default Bearer.
             * On successful initial network attachment, the UE should discover the P-CSCF IP address.
             * The EPC will create the Default Bearers which will allow communication only between the UE and the P-CSCF
             * @see TS 124 229 [2], clause 9.2.1 and L.2.2.1; TS 129 212 [9], clauses 4.5.1 (item 1) and 4a.5.1 (item 1); TS 129 272 [10], clause 5.2.1.1
             */
            testcase TC_VxLTE_RMI_ATT_01 ( ) 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 ImsUserInfo v_userInfoA    := f_getImUser ( PX_EUT_A );
                //var ImsUserInfo v_userInfoB    := f_getImUser ( PX_EUT_B ); 
    
                f_setVxLteMonIterfacesAvailability();
				//Check required monitor interfaces due to TD
				if (f_checkVxLteRequiredMonitorInterface({PX_DIAMETER_S9_INTERFACENAME,PX_DIAMETER_GX_INTERFACENAME,PX_DIAMETER_S6A_INTERFACENAME})){
	                f_cf_createVxLteMonitor();    
	        
	                // map/connect component ports
	                f_cf_adapter_up ( );
	                f_cf_user_up ( v_ueA );
	                //f_cf_user_up ( v_ueB );
	                f_cf_VxLteMonitor_Up();
	    
	                // preamble
	                f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
	                //f_mtc_userRegistration ( v_ueB, v_userInfoB );
	    
	                // 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 ( vc_vxlte_monitor_components.gmA, false ); // Check
	                //f_mtc_check_TP_S6A_MME_AIR_02 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULR – Event 2)
	                //f_mtc_check_TP_S6A_HSS_AIA_02 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULR – Event 2)
	                f_mtc_check_TP_S6A_MME_ULR_02 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULR – Event 2)
	                f_mtc_check_TP_S6A_HSS_ULA_02 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULA – Event 3)
	                f_mtc_check_TP_GX_PGW_CCR_01  ( vc_vxlte_monitor_components.gx, false ); 
	                f_mtc_check_TP_S9_PCRF_CCR_01 ( vc_vxlte_monitor_components.s9, false ); // Check (CCR, CCA – Events 4, 5)
	                f_mtc_check_TP_S9_PCRF_CCA_01 ( vc_vxlte_monitor_components.s9, false );
	                f_mtc_check_TP_GX_PCRF_CCA_01 ( vc_vxlte_monitor_components.gx, false );
	                //f_mtc_userCheckRegistration ( v_ueA, f_getAnyValidUser ( PX_EUT_A ) ); 
	                //f_mtc_check_TP_EPC_6003_01 ( v_ueA, c_vxlte_monitor_components.gmA, v_ueB, c_vxlte_monitor_components.gmB ); // Test sequence #4-5
	    
	                // postamble
	                //f_PO_user_home_deregistration ( v_ueB );
	                //f_PO_user_home_deregistration ( v_ueA );
	                f_mtc_userRadioEnabled ( v_ueA, false, true );
	    
	                //unmap/disconnect component ports
	                //f_cf_user_down ( v_ueB );
	                f_cf_user_down ( v_ueA );
	                f_cf_VxLteMonitor_Down();
	                f_cf_adapter_down ( );
				}else{
					//log...
					setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
				}
            } // End of TC TC_VxLTE_RMI_ATT_01
            
            /**
             * @desc    Initial Network Attachment and Establishment of the Default Bearer(S8HR).
             * On successful initial network attachment, the UE should discover the P-CSCF IP address.
             * The EPC will create the Default Bearers which will allow communication only between the UE and the P-CSCF
             * @see TS 124 229 [2], clause 9.2.1 and L.2.2.1; TS 129 212 [9], clauses 4.5.1 (item 1) and 4a.5.1 (item 1); TS 129 272 [10], clause 5.2.1.1
             */
            testcase TC_VxLTE_RMI_ATT_02 ( ) 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 ImsUserInfo v_userInfoA    := f_getImUser ( PX_EUT_A );
                //var ImsUserInfo v_userInfoB    := f_getImUser ( PX_EUT_B ); 
    
                f_setVxLteMonIterfacesAvailability();
				if (f_checkVxLteRequiredMonitorInterface({PX_DIAMETER_GX_INTERFACENAME,PX_DIAMETER_S6A_INTERFACENAME})){
                    f_cf_createVxLteMonitor();    
	        
	                // map/connect component ports
	                f_cf_adapter_up ( );
	                f_cf_user_up ( v_ueA );
	                //f_cf_user_up ( v_ueB );
	                f_cf_VxLteMonitor_Up();
	    
	                // preamble
	                f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
	                //f_mtc_userRegistration ( v_ueB, v_userInfoB );
	    
	                // 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 ( vc_vxlte_monitor_components.gmA, false ); // Check
	                f_mtc_check_TP_S6A_MME_ULR_01 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULR – Event 2)
	                f_mtc_check_TP_S6A_HSS_ULA_01 ( vc_vxlte_monitor_components.s6a, false ); // Check (ULA – Event 3) 
	                //?f_mtc_check_TP_GX_PCRF_CCA_01 ( vc_vxlte_monitor_components.gx, false ); // Check (CCR, CCA – Events 4, 5)
	                //f_mtc_userCheckRegistration ( v_ueA, f_getAnyValidUser ( PX_EUT_A ) ); 
	                //f_mtc_check_TP_EPC_6003_01 ( v_ueA, c_vxlte_monitor_components.gmA, v_ueB, c_vxlte_monitor_components.gmB ); // Test sequence #4-5
	    
	                // postamble
	                //f_PO_user_home_deregistration ( v_ueB );
	                //f_PO_user_home_deregistration ( v_ueA );
	                f_mtc_userRadioEnabled ( v_ueA, false, true );
	    
	                //unmap/disconnect component ports
	                //f_cf_user_down ( v_ueB );
	                f_cf_user_down ( v_ueA );
	                f_cf_VxLteMonitor_Down();
	                f_cf_adapter_down ( );
			    }else{
					//log...
					setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
				}
            } // End of TC TC_VxLTE_RMI_ATT_02
        } //End of group networkAttachmentAndDefaultBearer
    } // End of group Roaming
}
 No newline at end of file
+471 −0

File added.

Preview size limit exceeded, changes collapsed.

+404 −0

File added.

Preview size limit exceeded, changes collapsed.

+1111 −0

File added.

Preview size limit exceeded, changes collapsed.

+366 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading