Commit 20768efc authored by Yann Garcia's avatar Yann Garcia
Browse files

Merge branch 'STF574' of https://forge.etsi.org/rep/vxlte/vxlte-iop into STF574

parents f16ddfc9 b3ff1787
Loading
Loading
Loading
Loading
+578 −1

File changed.

Preview size limit exceeded, changes collapsed.

+194 −31
Original line number Diff line number Diff line
@@ -33,11 +33,12 @@ module AtsImsIot_TestCases_CALL {
                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_ic := f_cf_create_monitor(c_ic);
                var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B);
                var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
                var ImsUserInfo v_userInfoB := f_getSipUserId(PX_EUT_B);
                var ImsUserInfo v_userTelInfoB := f_getTelUserId(PX_EUT_B);
                var CF_INT_CALL v_config := {v_gmA, omit, omit, omit, v_gmB, omit};
                var CF_INT_CALL v_config := {v_gmA, omit, v_ic, omit, v_gmB, omit};
                        
                // map/connect component ports
                f_cf_adapter_up();
@@ -54,42 +55,146 @@ module AtsImsIot_TestCases_CALL {
                
                f_mtc_check_TP_GM_PCSCF_INVITE_01(v_gmA, true, true); // Event 1
                
                f_mtc_check_TP_GM_PCSCF_180RINGING_01(v_gmA, true); // Event 6
                f_mtc_check_TP_GM_PCSCF_100Trying_01(v_gmA, true, true);
                
                f_mtc_check_TP_GM_PCSCF_180RINGING_01(v_gmA, true); // Event 16
                
                f_mtc_userCheckRinging(v_ueB);
                f_mtc_userCheckPeerIsRinging(v_ueA);
                f_mtc_userAnswerCall(v_ueB);
                
                f_mtc_check_TP_IMS_5097_02_gm(v_gmA, true); // Check2
                f_mtc_check_TP_IMS_5097_04_gm(v_gmA, false); // Check3
                f_mtc_check_TP_GM_PCSCF_200OK_01(v_gmA, true); // Event 15
                
                // checks 6, 10 (180 Ringing)
                f_mtc_check_TP_IMS_5115_01_gm(v_gmB, true); // Check 6
                f_mtc_check_TP_IMS_5115_03_gm(v_gmB, true); // Check 7
                f_mtc_check_TP_IMS_5131_01_gm(v_gmB, false); // Check 10
                f_mtc_check_TP_GM_PCSCF_ACK_01(v_gmA, true, true); // Event 26 
                
                f_mtc_userCheckRinging(v_ueB); //Test Sequence Step 2
                f_mtc_userCheckPeerIsRinging(v_ueA); //Test Sequence Step 3
                f_mtc_userAnswerCall(v_ueB); //Test Sequence Step 4
                f_mtc_userCheckCallEstablished(v_ueA); // Event 30
                f_mtc_userCheckCallEstablished(v_ueB); // Event 30
                
                // checks 8, 11 (2xx)
                f_mtc_check_TP_IMS_5115_02_gm(v_gmB, true); // Check 8 
                f_mtc_check_TP_IMS_5115_04_gm(v_gmB, true); // Check 9
                f_mtc_check_TP_IMS_5131_02_gm(v_gmB, false); // Check 11
                // postamble
                f_mtc_EndCall(v_ueA);
                f_PO_user_home_deregistration(v_ueA);
                f_PO_user_home_deregistration(v_ueB);
                f_cf_int_call_down(v_config);
                
                f_mtc_userCheckCallEstablished(v_ueA); //Test Sequence Step 5
                f_mtc_userCheckCallEstablished(v_ueB); //Test Sequence Step 6
                //unmap/disconnet component ports
                f_cf_user_down(v_ueA);
                f_cf_user_down(v_ueB);
                f_cf_adapter_down();
            } // End of testcase TC_VxLTE_INT_INI_01
            
                //check 4 (ACK)
                f_mtc_check_TP_IMS_5107_02_gm(v_gmA, false); // Check2 
        } // End of group originatingLeg
        
                f_mtc_EndCall(v_ueA); //Test Sequence Step 7
        group terminatingLeg {
            
                // check 5 (BYE)
                f_mtc_check_TP_IMS_5107_01_gm(v_gmA, false); // Check3
            /**
             * @desc To demonstrate the establishment of dedicated bearers at the terminating EPC B due to SIP session establishment.
             */
            testcase TC_VxLTE_INT_INI_02() runs on ImsTestCoordinator system IotSystemInterface {
                // create components
                var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
                var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic);
                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 ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
                var ImsUserInfo v_userInfoB := f_getSipUserId(PX_EUT_B);
                var ImsUserInfo v_userTelInfoA := f_getTelUserId(PX_EUT_A);
                var CF_INT_CALL v_config := {v_gmA, omit, v_ic, omit, v_gmB, omit};
                        
                f_mtc_userCheckCallEnded(v_ueB); //Test Sequence Step 8
                f_mtc_userCheckCallEnded(v_ueA); //Test Sequence Step 9
                // map/connect component ports
                f_cf_adapter_up();
                f_cf_user_up(v_ueA);
                f_cf_user_up(v_ueB);
                f_cf_int_call_up(v_config);
                
                // preamble
                f_mtc_userRegistration(v_ueA, v_userInfoA); 
                f_mtc_userRegistration(v_ueB, v_userInfoB); 
                
                // test body
                f_mtc_userInitiateCall (v_ueB, v_userTelInfoA);
                
                f_mtc_check_TP_GM_PCSCF_INVITE_02(v_gmB, true, true); // Event 8
                
                f_mtc_check_TP_GM_PCSCF_100Trying_02(v_gmB, true, true);
                
                f_mtc_check_TP_GM_PCSCF_180RINGING_02(v_gmB, true); // Event 9
                
                f_mtc_userCheckRinging(v_ueA);
                f_mtc_userCheckPeerIsRinging(v_ueB);
                f_mtc_userAnswerCall(v_ueA);
                
                f_mtc_check_TP_GM_PCSCF_200OK_02(v_gmB, true); // Event 18
                
                f_mtc_check_TP_GM_PCSCF_ACK_01(v_gmB, true, true); // Event 29 
                
                f_mtc_userCheckCallEstablished(v_ueA); // Event 30
                f_mtc_userCheckCallEstablished(v_ueB); // Event 30
                
                // Postamble
                f_mtc_EndCall(v_ueA);
                f_PO_user_home_deregistration(v_ueA);
                f_PO_user_home_deregistration(v_ueB);
                f_cf_int_call_down(v_config);
                
                //unmap/disconnet component ports
                f_cf_user_down(v_ueA);
                f_cf_user_down(v_ueB);
                f_cf_adapter_down();
            } // End of testcase TC_VxLTE_INT_INI_02
            
        } // End of group terminatingLeg
        
    } // End of group imsSipSessionEstablishment
    
    group imsSipSessionModification {
        
        group originatedLegs {
            
            /**
             * @desc To demonstrate the modification of an existing media flow mid session.
             */
            testcase TD_VxLTE_INT_INI_03() runs on ImsTestCoordinator system IotSystemInterface {
                // create components
                var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A);
                var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic);
                var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B);
                var ImsUserInfo v_userInfoA := f_getAnyValidUser(PX_EUT_A);
                var ImsUserInfo v_userInfoB := f_getAnyValidUser(PX_EUT_B);
                
                // variables
                var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
                var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B);
                var CF_INT_CALL v_config := {v_gmA, omit, v_ic, omit, v_gmB, omit};
                        
                // map/connect component ports
                f_cf_adapter_up();
                f_cf_user_up(v_ueA);
                f_cf_user_up(v_ueB);
                
                // configuration
                f_cf_int_call_up(v_config);
                
                // preamble
                f_PR_user_home_registration(v_ueA,v_userInfoA);
                f_PR_user_home_registration(v_ueB,v_userInfoB);
                f_mtc_userInitiateCall (v_ueA, v_userInfoB);
                f_mtc_userCheckRinging(v_ueB);
                f_mtc_userCheckPeerIsRinging(v_ueA);
                f_mtc_userAnswerCall(v_ueB);
                f_mtc_userCheckCallEstablished(v_ueA); // Event 1
                f_mtc_userCheckCallEstablished(v_ueB); // Event 1
                f_mtc_userAddNewMediaStream(v_ueA);
                
                // test body
                f_mtc_check_TP_GM_PCSCF_RE_INVITE_01(v_gmA); // Event 2
                f_mtc_check_TP_GM_PCSCF_200OK_01(v_gmA); // Event 13
                f_mtc_check_TP_GM_PCSCF_ACK_01(v_gmA); // Event 15
                f_mtc_userCheckNewMediaStream(v_ueB);
                f_mtc_userCheckNewMediaStream(v_ueA);
                
                // postamble
                f_mtc_EndCall(v_ueA);
                f_PO_user_home_deregistration(v_ueA);
                f_PO_user_home_deregistration(v_ueB);
                f_cf_int_call_down(v_config);
@@ -98,12 +203,70 @@ module AtsImsIot_TestCases_CALL {
                f_cf_user_down(v_ueA);
                f_cf_user_down(v_ueB);
                f_cf_adapter_down();
            } //End of testcase TC_VxLTE_INT_INI_01
                f_cf_adapter_down();
            } // End of testcase TD_VxLTE_INT_INI_03
            
        } // End of group originatingLeg
        
    } // End of imsSipSessionEstablishment
        group terminatingLeg {
            
            /**
             * @desc To demonstrate the modification of an existing media flow mid session.
             */
            testcase TD_VxLTE_INT_INI_04() runs on ImsTestCoordinator system IotSystemInterface {
                // create components
                var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A);
                var ImsInterfaceMonitor v_ic := f_cf_create_monitor(c_ic);
                var ImsInterfaceMonitor v_gmB := f_cf_create_monitor(c_gm_B);
                var ImsUserInfo v_userInfoA := f_getAnyValidUser(PX_EUT_A);
                var ImsUserInfo v_userInfoB := f_getAnyValidUser(PX_EUT_B);
                
                // variables
                var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
                var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B);
                var CF_INT_CALL v_config := {v_gmA, omit, v_ic, omit, v_gmB, omit};
                        
                // map/connect component ports
                f_cf_adapter_up();
                f_cf_user_up(v_ueA);
                f_cf_user_up(v_ueB);
                
                // configuration
                f_cf_int_call_up(v_config);
                
                // preamble
                f_PR_user_home_registration(v_ueA,v_userInfoA);
                f_PR_user_home_registration(v_ueB,v_userInfoB);
                f_mtc_userInitiateCall (v_ueA, v_userInfoB);
                f_mtc_userCheckRinging(v_ueB);
                f_mtc_userCheckPeerIsRinging(v_ueA);
                f_mtc_userAnswerCall(v_ueB);
                f_mtc_userCheckCallEstablished(v_ueA); // Event 1
                f_mtc_userCheckCallEstablished(v_ueB); // Event 1
                f_mtc_userAddNewMediaStream(v_ueA);
                
                // test body
                f_mtc_check_TP_GM_PCSCF_RE_INVITE_02(v_gmB); // Event 5
                f_mtc_check_TP_GM_PCSCF_200OK_02(v_gmB); // Event 6
                f_mtc_check_TP_GM_PCSCF_ACK_02(v_gmB); // Event 17
                f_mtc_userCheckNewMediaStream(v_ueA);
                f_mtc_userCheckNewMediaStream(v_ueB);
                
                // postamble
                f_mtc_EndCall(v_ueA);
                f_PO_user_home_deregistration(v_ueA);
                f_PO_user_home_deregistration(v_ueB);
                f_cf_int_call_down(v_config);
                
                //unmap/disconnet component ports
                f_cf_user_down(v_ueA);
                f_cf_user_down(v_ueB);
                f_cf_adapter_down();
                f_cf_adapter_down();
            } // End of testcase TD_VxLTE_INT_INI_04
            
        }
    } // End of group imsSipSessionModification
    
    /**
        * @desc Default SIP URI with DNS/ENUM lookup procedure
Compare 7f6fd81a to a4e87761
Original line number Diff line number Diff line
Subproject commit 7f6fd81af0912a0d8bdf85bafede9e62b68b1628
Subproject commit a4e87761e7dd070042aff31cfc5a3aeb8d3f5282