Commit 0d206b37 authored by pintar's avatar pintar
Browse files

TestConfigurations are added

parent 5fe70279
Loading
Loading
Loading
Loading
+37 −36
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ module DiameterCxDx_Cx_TCFunctions {
    import from DiameterCxDx_Steps all;
    import from DiameterCxDx_PIXITS all;


    group TP_Cx {
        group TP_HSSRole{ // §5.2.1.1
            group TP_HSSRole_MS {//Cx Messages
                //TODO all TC Functions
@@ -58,5 +58,6 @@ module DiameterCxDx_Cx_TCFunctions {
            group TP_CSCFRole_PP {//Cx PP
            } // group TP_CSCFRole_PP
        } // group TP_CSCFRole    
    } // group TP_Cx
    
}// end module DiameterCx_Cx_TCFunctions
 No newline at end of file
}// end module DiameterCxDx_Cx_TCFunctions
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
@@ -119,4 +119,9 @@ module DiameterCxDx_PIXITS

    } //end group DiameterCommonCxData
    
        /** @desc	boolean indicator
         * TRUE if the Gm interface(SIP protocol) is accessible to trigger Diameter events at the Cx/Dx interface
        */
        modulepar boolean PX_SIPsupport := false;
    
} // end module DiameterCx_PIXITS
 No newline at end of file
+5 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 *    @author     STF 480
 *    @version    $Id: $
 *    @desc       This module provides test cases
 *              for SIP-Cx-DIAMETER tests.
 *                for SIP-CxDx-DIAMETER tests.
 */

module DiameterCxDx_TestCases
@@ -16,6 +16,8 @@ module DiameterCxDx_TestCases
    //AtsIms
    import from DiameterCxDx_TestConfiguration all;
    import from DiameterCxDx_TestSystem all;
    import from DiameterCxDx_Cx_TCFunctions all;
    import from DiameterCxDx_Dx_TCFunctions all;
    import from DiameterCxDx_SIP_TCFunctions all;
    import from DiameterCxDx_PIXITS all;
    import from DiameterCxDx_Steps all;
+244 −9
Original line number Diff line number Diff line
@@ -15,31 +15,266 @@ module DiameterCxDx_TestConfiguration

    //LibDiameter
    import from LibDiameter_Interface all;
    import from LibDiameter_PIXITS {modulepar PX_DIAM_LLP_ENABLED;};

    //LibSip
    import from LibSip_Interface {type SipPort;
                                  type SipComponent;};

    //AtsIms
    import from DiameterCxDx_TestSystem all;
    import from DiameterCxDx_PIXITS all;
    



    /*
    ** @desc f_NrofComps returns the number of test components
    ** based on the PIXIT value PX_Rxsupportt
    ** based on the PIXIT value PX_SIPsupport
    */
/*    function f_NrofComps() return UInt
    function f_NrofComps() return UInt
        {    if (PX_SIPsupport)
            { return 2 }
            else
            { return 1 }
        };
    // end f_NrofComps
    */
    

    group cfUp {
//TODO

        /**
         * @desc Creates test configuration of CF_1Cx - HSS is the SUT, with one cscf simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         */
        function f_cf_1CxUp_HSS (
                                  out DiameterComponent v_diameterCx_cscf
        ) runs on DiameterCx  {
            
            //     Create
            v_diameterCx_cscf := DiameterComponent.create;
            
            // Connect client sync port
            connect(v_diameterCx_cscf:syncPort, self:syncPort) ;
            
            // Map port
            map( v_diameterCx_cscf:DIAMP, system:CSCF_Cx ); 
            
            // Activate sync default for MTC
            activate(a_mtc_shutdown());
            
            f_setVerdict( e_success );
        } // End of function f_cf_1CxUp_HSS
        

        /**
         * @desc Creates test configuration of CF_2Cx - HSS is the SUT, with two cscf simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         * @param v_diameterCx_cscf2 Component instance for HSS IUT role 
         */
        function f_cf_2CxUp_HSS (
                                  out DiameterComponent v_diameterCx_cscf,
                                  out DiameterComponent v_diameterCx_cscf2
        ) runs on DiameterCx  {
            //     Create
            v_diameterCx_cscf := DiameterComponent.create;
            v_diameterCx_cscf2 := DiameterComponent.create;

            // Connect client sync ports
            connect(v_diameterCx_cscf:syncPort, self:syncPort);
            connect(v_diameterCx_cscf2:syncPort, self:syncPort);
            
            // Map port
            map( v_diameterCx_cscf:DIAMP, system:CSCF_Cx ); 
            map( v_diameterCx_cscf2:DIAMP, system:CSCF_Cx2 ); 

            
            // Activate sync default for MTC
            activate(a_mtc_shutdown());
            
            f_setVerdict( e_success );
        } // End of function f_cf_2CxUp_HSS
        
        /**
         * @desc Creates test configuration of CF_1Cx1Gm - CSCF is the SUT, with one HSS and one UE simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         * 
         */
        function f_cf_1Cx1GmUp_CSCF (
                                  out DiameterComponent v_diameterCx_hss,
                                  out SipComponent v_sipGm_ue
        ) runs on DiameterCx  {
            //     Create
            v_diameterCx_hss := DiameterComponent.create;
            if (PX_SIPsupport) {
                v_sipGm_ue := SipComponent.create;
            }

            // Connect client sync ports
            connect(v_diameterCx_hss:syncPort, self:syncPort);
            if (PX_SIPsupport) {
                connect(v_sipGm_ue:syncPort, self:syncPort);
            }
            
            // Map port
            map( v_diameterCx_hss:DIAMP, system:HSS_Cx ); 
            if (PX_SIPsupport) {
                map( v_sipGm_ue:SIPP, system:UE_Gm ); 
            }
            
            // Activate sync default for MTC
            activate(a_mtc_shutdown());
            
            f_setVerdict( e_success );
        } // End of function f_cf_1Cx1GmUp_CSCF

        /**
         * @desc Creates test configuration of CF_1Dx - SLF is the SUT, with one cscf simulated
         * @param v_diameterDx_cscf Component instance for SLF IUT role
         */
        function f_cf_1DxUp_SLF (
                                  out DiameterComponent v_diameterDx_cscf
        ) runs on DiameterCx  {
            
            // Create
            v_diameterDx_cscf := DiameterComponent.create;
            
            // Connect client sync port
            connect(v_diameterDx_cscf:syncPort, self:syncPort) ;
            
            // Map port
            map( v_diameterDx_cscf:DIAMP, system:CSCF_Dx ); 
            
            // Activate sync default for MTC
            activate(a_mtc_shutdown());
            
            f_setVerdict( e_success );
        } // End of function f_cf_1DxUp_SLF
        

        /**
         * @desc Creates test configuration of CF_1Cx1Gm - CSCF is the SUT, with one HSS and one UE simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         * 
         */
        function f_cf_1Dx1Cx1GmUp_CSCF (
                                  out DiameterComponent v_diameterDx_slf,
                                  out DiameterComponent v_diameterCx_hss,
                                  out SipComponent v_sipGm_ue
        ) runs on DiameterCx  {
            //     Create
            v_diameterDx_slf := DiameterComponent.create;
            v_diameterCx_hss := DiameterComponent.create;
            if (PX_SIPsupport) {
                v_sipGm_ue := SipComponent.create;
            }

            // Connect client sync ports
            connect(v_diameterDx_slf:syncPort, self:syncPort);
            connect(v_diameterCx_hss:syncPort, self:syncPort);
            if (PX_SIPsupport) {
                connect(v_sipGm_ue:syncPort, self:syncPort);
            }
            
            // Map port
            map( v_diameterDx_slf:DIAMP, system:HSS_Dx);
            map( v_diameterCx_hss:DIAMP, system:HSS_Cx ); 
            if (PX_SIPsupport) {
                map( v_sipGm_ue:SIPP, system:UE_Gm ); 
            }
            
            // Activate sync default for MTC
            activate(a_mtc_shutdown());
            
            f_setVerdict( e_success );
        } // End of function f_cf_1Dx1Cx1GmUp_CSCF

    }//end group cfUp

    group cfDown {
//TODO
        /**
         * @desc Deletes test configuration of CF_1Cx - HSS is the SUT, with one cscf simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         */
        function f_cf_1CxDown_HSS (
                                  out DiameterComponent v_diameterCx_cscf
        ) runs on DiameterCx  {
            // Deactivate all
            deactivate;
            // Unmap all
            unmap;
            // Disconnect all
            disconnect;
        } // End of function f_cf_1CxDown_HSS
        

        /**
         * @desc Deletes test configuration of CF_2Cx - HSS is the SUT, with two cscf simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         * @param v_diameterCx_cscf2 Component instance for HSS IUT role 
         */
        function f_cf_2CxDown_HSS (
                                  out DiameterComponent v_diameterCx_cscf,
                                  out DiameterComponent v_diameterCx_cscf2
        ) runs on DiameterCx  {
            // Deactivate all
            deactivate;
            // Unmap all
            unmap;
            // Disconnect all
            disconnect;
        } // End of function f_cf_2CxDown_HSS
        
        /**
         * @desc Deletes test configuration of CF_1Cx1Gm - CSCF is the SUT, with one HSS and one UE simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         * 
         */
        function f_cf_1Cx1GmDown_CSCF (
                                  out DiameterComponent v_diameterCx_hss,
                                  out SipComponent v_sipGm_ue
        ) runs on DiameterCx  {
            // Deactivate all
            deactivate;
            // Unmap all
            unmap;
            // Disconnect all
            disconnect;
        } // End of function f_cf_1Cx1GmDown_CSCF

        /**
         * @desc Deletes test configuration of CF_1Dx - SLF is the SUT, with one cscf simulated
         * @param v_diameterDx_cscf Component instance for SLF IUT role
         */
        function f_cf_1DxDown_SLF (
                                  out DiameterComponent v_diameterDx_cscf
        ) runs on DiameterCx  {
            // Deactivate all
            deactivate;
            // Unmap all
            unmap;
            // Disconnect all
            disconnect;
        } // End of function f_cf_1DxDown_SLF
        

        /**
         * @desc Deletes test configuration of CF_1Cx1Gm - CSCF is the SUT, with one HSS and one UE simulated
         * @param v_diameterCx_cscf Component instance for HSS IUT role
         * 
         */
        function f_cf_1Dx1Cx1GmDown_CSCF (
                                  out DiameterComponent v_diameterDx_slf,
                                  out DiameterComponent v_diameterCx_hss,
                                  out SipComponent v_sipGm_ue
        ) runs on DiameterCx  {
            // Deactivate all
            deactivate;
            // Unmap all
            unmap;
            // Disconnect all
            disconnect;
        } // End of function f_cf_1Dx1Cx1GmDown_CSCF
  
    } //end group cfDown

    group shutDownAltsteps {
+8 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 *	@author 	STF 480
 *  @version    $Id: $
 *	@desc		This module provides the types and ports used by the test component 
 *              for SIP-Cx-DIAMETER tests.
 *              for SIP-CxDx-DIAMETER tests.
 */

module DiameterCxDx_TestSystem {	
@@ -13,6 +13,9 @@ module DiameterCxDx_TestSystem {
    //LibDiameter
    import from LibDiameter_Interface {type DiameterPort;};
    
    //LibSip
    import from LibSip_Interface {type SipPort;};

    group SystemConfiguration {
      group TestComponents {
        group TestSystemInterfaces {
@@ -20,8 +23,10 @@ module DiameterCxDx_TestSystem {
            ** @desc  The test system interface
            */
            type component TestAdapter {
                port DiameterPort HSS_Cx, CSCF_Cx; // Cx ports
                //port SipPort GM; // one GM 
                port DiameterPort HSS_Cx, CSCF_Cx, CSCF_Cx2, // Cx ports
                                  HSS_Dx, CSCF_Dx; // Dx ports
                port SipPort UE_Gm;

                //global variables

            }