Commit 472dd11f authored by pintar's avatar pintar
Browse files

New tests for RF_CTF_EC group

parent d8506fde
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -72,6 +72,21 @@ module DiameterRfRo_PICS {
         */
        modulepar boolean PICS_RF_CTF_OFFLINE_CHARGING_ERROR_CASES := false;
        
        /**
         * @desc Does the IUT support handling of offline charging error cases
         *       where buffering of generated accounting data when the connection 
         *       to the CDF breaks?
         * @see  ETSI TS 103 374-1 V1.1.2 (2015-09) A.4/2.1
         */
        modulepar boolean PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING := false;
        
        /**
         * @desc Does the IUT support handling of offline charging error cases
         *       with retransmission of ACR messages when no ACA is received?
         * @see  ETSI TS 103 374-1 V1.1.2 (2015-09) A.4/2.2
         */
        modulepar boolean PICS_RF_CTF_ERROR_CASES_ACR_RETRANSMISSION := false;
        
        /**
         * @desc Does the IUT support handling of envelope reporting request? 
         * @see  ETSI TS 103 374-1 V1.1.2 (2015-09) A.4/3 
+69 −1
Original line number Diff line number Diff line
@@ -23,6 +23,11 @@ module DiameterRfRo_PIXITS {
             */
            modulepar charstring PX_DIAMETER_RF_ETS_IPADDR := "1.1.1.10";
            
            /** @desc    charstring, PIXIT item A-7/1
             * IP address of the test system
             */
            modulepar charstring PX_DIAMETER_RF_ETS_IPADDR2 := "1.1.1.10";
            
            /** @desc    charstring,  PIXIT item A-8/1
             * IP address of the system under test
             */
@@ -33,6 +38,11 @@ module DiameterRfRo_PIXITS {
             */
            modulepar integer PX_DIAMETER_RF_ETS_PORT := 3868;
            
            /** @desc    integer, PIXIT item A-7/2
             * Port number of the test system
             */
            modulepar integer PX_DIAMETER_RF_ETS_PORT2 := 3868;
            
            /** @desc    integer, PIXIT item A-8/2
             * Port number of the system under test
             */
@@ -43,6 +53,11 @@ module DiameterRfRo_PIXITS {
             */
            modulepar charstring PX_DIAMETER_RO_ETS_IPADDR := "1.1.1.12";
            
            /** @desc    charstring, PIXIT item A-7/1
             * IP address of the test system
             */
            modulepar charstring PX_DIAMETER_RO_ETS_IPADDR2 := "1.1.1.12";
            
            /** @desc    charstring,  PIXIT item A-8/1
             * IP address of the system under test
             */
@@ -53,6 +68,11 @@ module DiameterRfRo_PIXITS {
             */
            modulepar integer PX_DIAMETER_RO_ETS_PORT := 3868;
            
            /** @desc    integer, PIXIT item A-7/2
             * Port number of the test system
             */
            modulepar integer PX_DIAMETER_RO_ETS_PORT2 := 3868;
            
            /** @desc    integer, PIXIT item A-8/2
             * Port number of the system under test
             */
@@ -92,7 +112,55 @@ module DiameterRfRo_PIXITS {
             */
            modulepar integer PX_DIAMETER_GM_SUT_PCSCF_PORT := 3868;
        
        } // End of group Gm_Port_and_addresses{
        } // End of group Gm_Port_and_addresses
        
        group Mw_Port_and_addresses{
            
            /** @desc    charstring, PIXIT item
             * IP address of the test system
             */
            modulepar charstring PX_DIAMETER_Mw_ETS_CSCF_IPADDR := "1.1.1.100";
            
            /** @desc    charstring,  PIXIT item
             * IP address of the system under test
             */
            modulepar charstring PX_DIAMETER_MW_SUT_CSCF_IPADDR := "1.1.1.52";
            
            /** @desc    integer, PIXIT item
             * Port number of the test system UE
             */
            modulepar integer PX_DIAMETER_MW_ETS_CSCF_PORT := 3868;
            
            /** @desc    integer, PIXIT item
             * Port number of the system under test
             */
            modulepar integer PX_DIAMETER_MW_SUT_CSCF_PORT := 3868;
        
        } // End of group Mw_Port_and_addresses
        
        group ISC_Port_and_addresses{
            
            /** @desc    charstring, PIXIT item
             * IP address of the test system
             */
            modulepar charstring PX_DIAMETER_ISC_ETS_AS_IPADDR := "1.1.1.100";
            
            /** @desc    charstring,  PIXIT item
             * IP address of the system under test
             */
            modulepar charstring PX_DIAMETER_ISC_SUT_CSCF_IPADDR := "1.1.1.52";
            
            /** @desc    integer, PIXIT item
             * Port number of the test system UE
             */
            modulepar integer PX_DIAMETER_ISC_ETS_AS_PORT := 3868;
            
            /** @desc    integer, PIXIT item
             * Port number of the system under test
             */
            modulepar integer PX_DIAMETER_ISC_SUT_CSCF_PORT := 3868;
        
        } // End of group ISC_Port_and_addresses
        
    } // End of group Port_and_addresses
    
+108 −0
Original line number Diff line number Diff line
@@ -574,6 +574,114 @@ module DiameterRfRo_SIP_TCFunctions {
            } // End of group TP_RF_CTF_TC_Role
            // 5.2.2.2.4 Error cases
            group TP_RF_CTF_EC {
                
                /** 
                *  @desc    This is the test case function (SIP originating side - UE1) for TC_CTF_EC_UE_01
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_UE1
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_UE_01(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_UE_02(p_cSeq_s);
                } // end function f_TC_CTF_EC_UE_01
                
                /** 
                *  @desc    This is the test case function (Mw interface - IUT P-CSCF) for TC_CTF_EC_CSCF_01
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_IMS
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_CSCF_01(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_CSCF_02(p_cSeq_s);
                } // end function f_TC_CTF_EC_CSCF_1
                
                /** 
                *  @desc    This is the test case function (SIP originating side - UE1) for TC_CTF_EC_UE_02
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_UE1
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_UE_02(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_UE_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_UE_02
                
                /** 
                *  @desc    This is the test case function (Mw interface - IUT P-CSCF) for TC_CTF_EC_CSCF_02
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_IMS
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_CSCF_02(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_CSCF_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_CSCF_02
                
                /** 
                *  @desc    This is the test case function (SIP originating side - UE1) for TC_CTF_EC_UE_03
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_UE1
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_UE_03(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_UE_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_UE_03
                
                /** 
                *  @desc    This is the test case function (Mw interface - IUT P-CSCF) for TC_CTF_EC_CSCF_03
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_IMS
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_CSCF_03(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_CSCF_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_CSCF_03
                
                /** 
                *  @desc    This is the test case function (SIP originating side - UE1) for TC_CTF_EC_UE_04
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_UE1
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_UE_04(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_UE_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_UE_04
                
                /** 
                *  @desc    This is the test case function (Mw interface - IUT P-CSCF) for TC_CTF_EC_CSCF_04
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_IMS
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_CSCF_04(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_CSCF_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_CSCF_04
                
                /** 
                *  @desc    This is the test case function (SIP originating side - UE1) for TC_CTF_EC_UE_05
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_UE1
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_UE_05(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_UE_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_UE_05
                
                /** 
                *  @desc    This is the test case function (Mw interface - IUT P-CSCF) for TC_CTF_EC_CSCF_05
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_IMS
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_CSCF_05(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_CSCF_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_CSCF_05
                
                /** 
                *  @desc    This is the test case function (SIP originating side - UE1) for TC_CTF_EC_UE_06
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_UE1
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_UE_06(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_UE_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_UE_06
                
                /** 
                *  @desc    This is the test case function (Mw interface - IUT P-CSCF) for TC_CTF_EC_CSCF_06
                *           Test function is adopted and comes from TS 102 790 - TC_IMST2_MW_GEN_08_IMS
                *  @param    p_cSeq_s 
                */
                function f_TC_CTF_EC_CSCF_06(in CSeq p_cSeq_s) runs on ImsComponent {
                    f_TC_CTF_TC_CSCF_03(p_cSeq_s);
                } // end function f_TC_CTF_EC_CSCF_06
            } // End of group TP_RF_CTF_EC_Role {
        } // End of group TP_RF_CTF_Role
        
+57 −0
Original line number Diff line number Diff line
@@ -71,6 +71,47 @@
            
        } // End of function f_DiameterRf_init

        /*
        *  @desc    This is a test step that init global variables
        *  @param   
        */
        function f_DiameterRf_init2()
        runs on DiameterComponent {

            //Defaults
            vc_default_diameter := activate (a_diameter_default());
            
            //Base LibDiameter init function if there will be any base initialisation
            f_Diameter_Init_Component();
            
            vc_ETS_address := PX_DIAMETER_RF_ETS_IPADDR2;
            vc_ETS_port    := PX_DIAMETER_RF_ETS_PORT2;
            vc_SUT_address := PX_DIAMETER_RF_SUT_IPADDR;
            vc_SUT_port    := PX_DIAMETER_RF_SUT_PORT;
            
            vc_sessionId := m_sessionId(PX_SessionID);
            
            vc_originHost := m_originHost(PX_OriginHost);
            vc_originRealm := m_originRealm(PX_OriginRealm); // realm of the originator (TS)
            
            vc_originHost_IUT := m_originHost(PX_DestinationHost);
            vc_originRealm_IUT := m_originRealm(PX_DestinationRealm); // realm of the originator (TS)
            
            vc_destinationHost := m_destinationHost(PX_DestinationHost);
            vc_destinationRealm := m_destinationRealm(PX_DestinationRealm);
            
            vc_destinationHost_IUT := m_destinationHost(PX_OriginHost);
            vc_destinationRealm_IUT := m_destinationRealm(PX_OriginRealm);
            
            vc_hostIPAddress := valueof(f_IPV4or6_String2Address (PX_DIAMETER_RF_ETS_IPADDR2));
            
            vc_accountingRecordNumber := mw_accounting_Record_Number_AVP(3);
            
            vc_send_hopid:=hex2int('00000100'H);
            vc_send_endid:=hex2int('01000000'H);
            
        } // End of function f_DiameterRf_init2
        
        /*
        *  @desc    This is a test step that init global variables
        *  @param   
@@ -239,6 +280,17 @@
            f_preambleDiameterBaseClient(c_applIdRfRo);
        }
        
        function f_preamble_Rf_CDF2() runs on DiameterComponent
        {
            if(PX_DIAM_LLP_ENABLED)
            {
                f_preambleClient();
            }
            
            f_DiameterRf_init2();
            f_preambleDiameterBaseClient(c_applIdRfRo);
        }
        
        function f_preamble_Rf_CTF() runs on DiameterComponent
        {
            if(PX_DIAM_LLP_ENABLED)
@@ -289,6 +341,11 @@
            deactivate;
        }
        
        function f_postamble_Rf_CDF2() runs on DiameterComponent
        {
            f_postamble_Rf_CDF();
        }
        
        function f_postamble_Rf_CTF() runs on DiameterComponent
        {
            
+814 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading