Commit efed2b8e authored by juvancic's avatar juvancic
Browse files

added testcase groups

parent 3a3e56cd
Loading
Loading
Loading
Loading
+98 −37
Original line number Diff line number Diff line
@@ -31,7 +31,11 @@ module DiameterRfRo_TCFunctions {
        group TP_RF_CDF_Role { 
            
            // 5.2.2.1.2 Message Syntax
            group MessageSyntax {
            /**
             * 
             * @desc 5.2.2.1.2 Message Syntax 
             */
            group TP_RF_CDF_MS {
                
                /**
                 * @desc    Verify that the IUT can successfully process all mandatory AVPs in an AC-Request received due to Charging Data Transfer
@@ -112,7 +116,8 @@ module DiameterRfRo_TCFunctions {
                    );

                    f_awaiting_ACA(
                        mw_ACA_MessageFlags
                        //mw_ACA_MessageFlags
                        mw_ACA_CmdFlags_PET(mw_diameterHeaderAns_CmdFlags(ACA_E, ?, mw_cmdFlagsAns_PET('0'B,'0'B,'0'B)))
                    );

                    f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync
@@ -125,7 +130,7 @@ module DiameterRfRo_TCFunctions {
            } // End of group messageSyntax
            
            // 5.2.2.1.3 Type of Charging
            group TypeOfCharging {
            group TP_RF_CDF_TC {
                
                /**
                 * @desc    Verify that the IUT can successfully process an AC-Request [Event] where Event Based Charging is used
@@ -374,7 +379,7 @@ module DiameterRfRo_TCFunctions {
            
            
            //5.2.2.1.4 ErrorCases
            group ErrorCases {
            group TP_RF_CDF_EC {
                
                /**
                 * @desc    Verify that the IUT terminates the call in case of timer expiration when the Session Based Charging procedure is not completed properly.
@@ -474,8 +479,8 @@ module DiameterRfRo_TCFunctions {
                    f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
                    log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

                    //preprare MSG template
                    vt_aCR_T_flag := md_aCR(
                    f_send_ACR(
	                    md_aCR_TflagSet(
		                    vc_sessionId, 
		                    md_acrBodyAvps_TypeOfCharging(
		                        vc_originHost,                 // containing an Origin-Host AVP
@@ -489,12 +494,8 @@ module DiameterRfRo_TCFunctions {
		                        m_event_timestamp(1),
		                        m_service_Information_AVP_dummy // FIXME To be continue by creating a m_service_Information template modifying m_service_Information_AVP_dummy 
		                    )
		                )
                    );
	                //set T-bit to true - duplicated
                    vt_aCR_T_flag.header.cmdflags.t_bit := '1'B; 


                    f_send_ACR(valueof(vt_aCR_T_flag));
                    f_awaiting_ACA(
                        mdw_aCA( 
                            vc_sessionId,                       // containing a Session-ID AVP
@@ -544,8 +545,8 @@ module DiameterRfRo_TCFunctions {
                    //log("*** " & __SCOPE__ & ": INFO: Wait for",v_interimTimer,"s to send next ACR. ***");
                    //f_wait(v_interimTimer); // FIXME: uncomment if seems to be enable due to test of Duplicated request
                    
                    //preprare MSG template
                    vt_aCR_T_flag:= md_aCR(
                    f_send_ACR(
                        md_aCR_TflagSet(
	                    vc_sessionId, 
	                    md_acrBodyAvps_TypeOfCharging(
	                        vc_originHost,                 // containing an Origin-Host AVP
@@ -558,13 +559,9 @@ module DiameterRfRo_TCFunctions {
	                        ),
	                        m_event_timestamp(1),
	                        m_service_Information_AVP_dummy // FIXME To be continue by creating a m_service_Information template modifying m_service_Information_AVP_dummy 
	                    )
	                    ))
	                );
                    //set T-bit to true - duplicated
                    vt_aCR_T_flag.header.cmdflags.t_bit := '1'B; 
                                        
                    
                    f_send_ACR(valueof(vt_aCR_T_flag));
                    f_awaiting_ACA(
                        mdw_aCA( 
                            vc_sessionId,                       // containing a Session-ID AVP
@@ -602,7 +599,7 @@ module DiameterRfRo_TCFunctions {
        // 5.2.2.2. CTF Role
        group TP_RF_CTF_Role {
            // 5.2.2.2.2 Message Syntax
            group TP_RF_CTF_MS_Role {
            group TP_RF_CTF_MS {
                /**
                 * @desc    Verify that the IUT can send an AC-Request to indicate a Charging Data Transfer.
                 * @verdict pass on success, fail on error or inconc on timeout only 
@@ -658,13 +655,77 @@ module DiameterRfRo_TCFunctions {
                
            }//end of group TP_RF_CTF_MS_Role
            // 5.2.2.2.3 Type of Charging 
            group TP_RF_CTF_TC_Role {
            group TP_RF_CTF_TC {
            }//end of group TP_RF_CTF_TC_Role
            // 5.2.2.2.4 Error cases
            group TP_RF_CTF_EC_Role {
            group TP_RF_CTF_EC {
            }//end of group TP_RF_CTF_EC_Role {
        } // End of group TP_RF_CTF_Role
        
    }  // End of group TP_RF_Role
    
    group TP_RO_Role {
        //5.2.3.1. OCF Role
        group TP_RO_OCF_Role {
            // 5.2.3.1.2 Message Syntax 
            group TP_RO_OCF_MS {
            }//end of group TP_RO_OCF_MS
            // 5.2.3.1.3 Type of Charging 
            group TP_RO_OCF_TC {
            }//end of group TP_RO_OCF_TC
            // 5.2.3.1.4 Error Casses 
            group TP_RO_OCF_EC {
            }//end of group TP_RO_OCF_EC
            // 5.2.3.1.5 Tariff Changes 
            group TP_RO_OCF_CH {
            }//end of group TP_RO_OCF_CH
            // 5.2.3.1.6 Re-Authorization 
            group TP_RO_OCF_RE {
            }//end of group TP_RO_OCF_RE
            // 5.2.3.1.7 Failure Handling 
            group TP_RO_OCF_FH {
            }//end of group TP_RO_OCF_FH
            // 5.2.3.1.8 Failover 
            group TP_RO_OCF_FA {
            }//end of group TP_RO_OCF_FA
            // 5.2.3.1.9 Credit Pooling 
            group TP_RO_OCF_CP {
            }//end of group TP_RO_OCF_CP
            // 5.2.3.1.10 Other Procedures
            group TP_RO_OCF_OP {
            }//end of group TP_RO_OCF_OP
        }//End of group TP_RO_OCF_Role
        
        //5.2.3.2. CTF Role
        group TP_RO_CTF_Role {
            // 5.2.3.2.2 Message Syntax 
            group TP_RO_CTF_MS {
            }//end of group TP_RO_CTF_MS
            // 5.2.3.2.3 Type of Charging 
            group TP_RO_CTF_TC {
            }//end of group TP_RO_CTF_TC
            // 5.2.3.2.4 Error Casses 
            group TP_RO_CTF_EC {
            }//end of group TP_RO_CTF_EC
            // 5.2.3.2.5 Tariff Changes 
            group TP_RO_CTF_CH {
            }//end of group TP_RO_CTF_CH
            // 5.2.3.2.6 Re-Authorization 
            group TP_RO_CTF_RE {
            }//end of group TP_RO_CTF_RE
            // 5.2.3.2.7 Failure Handling 
            group TP_RO_CTF_FH {
            }//end of group TP_RO_CTF_FH
            // 5.2.3.2.8 Failover 
            group TP_RO_CTF_FA {
            }//end of group TP_RO_CTF_FA
            // 5.2.3.2.9 Credit Pooling 
            group TP_RO_CTF_CP {
            }//end of group TP_RO_CTF_CP
            // 5.2.3.2.10 Other Procedures
            group TP_RO_CTF_OP {
            }//end of group TP_RO_CTF_OP
        }//End of group TP_RO_CTF_Role
    } // End of group TP_RO_Role
    
} // End of module DiameterRfRo_Rf_TCFunctions
 No newline at end of file