Commit c02800ac authored by juvancic's avatar juvancic
Browse files

No commit message

No commit message
parent 04bb5d95
Loading
Loading
Loading
Loading
+126 −3
Original line number Diff line number Diff line
@@ -653,7 +653,7 @@ module DiameterRfRo_TestCases
                /**
                 * @desc    Verify that the IUT can send an AC-Request to indicate a Charging Data Transfer.
                 * <pre>
                 * Pics Selection: PICS_CTF_IUT
                 * Pics Selection: PICS_RF_CTF_IUT
                 * Initial conditions: 
                 *     with {
                 *        
@@ -681,7 +681,7 @@ module DiameterRfRo_TestCases
                    
                    // Test control
                    if (not PICS_RF_CTF_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_CTF_IUT' required for executing the TC. ***"); 
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
@@ -701,9 +701,132 @@ module DiameterRfRo_TestCases
                    f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
                    
                } // End of testcase TC_RF_CDF_MS_01
                
                /**
                 * @desc    Verify that the IUT can send an AC-Request with correct Diameter-Header parameters to indicate a Charging Data Transfer with valid Diameter-Header parameters.
                 * <pre>
                 * Pics Selection: PICS_RF_CTF_IUT
                 * Initial conditions: 
                 *     with {
                 *        
                 *     }
                 * Expected behaviour:
                 *     Ensure that the IUT
                 *      to indicate a request for Charging Data Transfer,
                 *      sends an AC-Request
                 *          containing a Diameter-Header
                 *              containing a Version
                 *                  indicating value ‘1’
                 *              containing a Command-Flags
                 *                  containing T bit
                 *                      indicating value ‘0’
                 *                  containing E bit
                 *                      indicating value ‘0’
                 *                  containing r bits
                 *                      indicating value ‘0000’.
                 * </pre>
                 * 
                 * @version    0.0.16
                 * @see        ETSI DTS/INT 00121-2 V0.0.16 (2015-09) TP_RF_CTF_MS_02
                 */
                testcase TC_RF_CTF_MS_02() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRf_cdf; 
                    var ImsComponent v_imsComponent_ue;
                    var ImsComponent v_imsComponent_cscf;
                    
                    // Test control
                    if (not PICS_RF_CTF_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Rf_1Gm_1Mw_cdfUp(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf);
                    
                    // Start
                    v_diameterRf_cdf.start(f_TC_CTF_MS_02());
                    if (PX_SIPsupport) {
//                        v_imsComponent_ue.start(f_TC_CTF_MS_UE_02);
//                        v_imsComponent_cscf.start(f_TC_CTF_MS_CSCF_02);
                    }
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
                    
                } // End of testcase TC_RF_CDF_MS_02
                
            }//end of group TP_RF_CTF_MS_Role
            // 5.2.2.2.3 Type of Charging 
            group TP_RF_CTF_TC {
                
                /**
                 * @desc    Verify that the IUT can successfully process an AC-Request [Event].
                 * <pre>
                 * Pics Selection: PICS_RF_CTF_IUT
                 * Initial conditions: 
                 *     with {
                 *        Preamble action: UE initiates an initial REGISTRATION procedure.
                 *     }
                 * Expected behaviour:
                 *      Ensure that the IUT
                 *          sends an AC-Request
                 *              containing an Accounting-Record-Type AVP
                 *                  indicating EVENT_RECORD
                 *              containing an Accounting-Record-Number AVP
                 *              containing an Event-Timestamp AVP 
                 *              containing Service-Information AVP
                 *                  containing at least one Subscription-ID AVP
                 *                      indicating the identification of the user
                 *                  optionally containing IMS-Information AVP
                 *                      containing Node-Functionality AVP
                 *                      indicating the value 3
                 *                  optionally containing Service-Generic-Information AVP
                 *                      indicating the service specific parameters
                 *              optionally containing Service-Context-Id AVP
                 *          on receipt of an AC-Answer
                 *              containing a Result-Code AVP
                 *                  indicating DIAMETER_SUCCESS
                 *              not containing an Experimental-Result AVP
                 *              containing an Accounting-Record-Type AVP
                 *                  indicating EVENT_RECORD
                 *          accepts the message.
                 * </pre>
                 * 
                 * @version    0.0.16
                 * @see        ETSI DTS/INT 00121-2 V0.0.16 (2015-09) TP_RF_CTF_TC_01
                 */
                testcase TC_RF_CTF_TC_01() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRf_cdf; 
                    var ImsComponent v_imsComponent_ue;
                    var ImsComponent v_imsComponent_cscf;
                    
                    // Test control
                    if (not (PICS_RF_CTF_IUT & PICS_EVENT_BASED_CHARGING_A4)) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_EVENT_BASED_CHARGING_A4' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Rf_1Gm_1Mw_cdfUp(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf);
                    
                    // Start
                    v_diameterRf_cdf.start(f_TC_CTF_TC_01());
                    if (PX_SIPsupport) {
//                        v_imsComponent_ue.start(f_TC_CTF_TC_UE_01);
//                        v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_01);
                    }
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
                    
                } // End of testcase TC_RF_CDF_TC_01
                
            }//end of group TP_RF_CTF_TC_Role
            // 5.2.2.2.4 Error cases
            group TP_RF_CTF_EC {