Commit 9ba49970 authored by garciay's avatar garciay
Browse files

STF512: Week #19

- Continue validation for both Rf and Ro interfaces
- Bug fixed on the ATS and the Test Adapter
- Source codes will be committed soon
parent 385391c4
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -409,9 +409,9 @@
                       mdw_aCR(
                            ?, 
                            mdw_acrBody_ServiceInfo_EventTimestamp(
                                vc_originHost,                  // containing an Origin-Host AVP
                                vc_originRealm,                 // containing an Origin-Realm AVP
                                vc_destinationRealm,            // containing a Destination-Realm AVP
                                vc_originHost_IUT,                  // containing an Origin-Host AVP
                                vc_originRealm_IUT,                 // containing an Origin-Realm AVP
                                vc_destinationRealm_IUT,            // containing a Destination-Realm AVP
                                mw_accounting_Record_Type(      // containing an Accounting-Record-Type AVP
                                    p_art
                                ),
@@ -522,9 +522,9 @@
                        mdw_cCR(
                            ?, 
                            mdw_ccrBodyAvps(
                                vc_originHost,                          // containing an Origin-Host AVP
                                vc_originRealm,                         // containing an Origin-Realm AVP
                                vc_destinationRealm,                    // containing a Destination-Realm AVP
                                vc_originHost_IUT,                       // containing an Origin-Host AVP
                                vc_originRealm_IUT,                      // containing an Origin-Realm AVP
                                vc_destinationRealm_IUT,                 // containing a Destination-Realm AVP
                                mw_cC_Request_Type(p_cC_Request_Ty_Type),// containing a CC-Request-Type AVP
                                mw_cC_Request_Number(p_cC_Request_Number),// containing a CC-Request-Number AVP
                                ?,                                      // containing a Service-Context-Id AVP
@@ -567,8 +567,8 @@
                            mdw_rarBodyAvps(
                                vc_originHost_IUT,              // containing an Origin-Host AVP
                                vc_originRealm_IUT,             // containing an Origin-Realm AVP
                                vc_destinationRealm,            // containing a Destination-Realm AVP
                                vc_destinationHost,             // containing a CC-Request-Type AVP
                                vc_destinationRealm_IUT,        // containing a Destination-Realm AVP
                                vc_destinationHost_IUT,         // containing a CC-Request-Type AVP
                                mw_auth_Application_Id(         // containing an Auth-Application-Id AVP
                                    4                           //     indicating the value 4
                                ),
+611 −609

File changed.

Preview size limit exceeded, changes collapsed.

+132 −111

File changed.

Preview size limit exceeded, changes collapsed.

+68 −90
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ module DiameterRfRo_TestCases
                } // End of testcase TC_RF_CDF_TC_02
                
                /**
                 * @desc    Verify that the IUT can successfully process an AC-Request [Interim] where Session Based Charging is used
                 * @desc    Verify that the IUT can successfully process an AC-Request [Interim] where Session Based Charging is used in case of charging condition change.
                 * <pre>
                 * Pics Selection: PICS_CDF_IUT and PICS_SESSION_BASED_CHARGING
                 * Initial conditions: 
@@ -355,7 +355,7 @@ module DiameterRfRo_TestCases
                } // End of testcase TC_RF_CDF_TC_03
                
                /**
                 * @desc    Verify that the IUT can successfully process an AC-Request [Stop] where Session Based Charging is used
                 * @desc    Verify that the IUT can successfully process an AC-Request [Interim] where Session Based Charging is used in case of Acct-Interim-Interval AVP is present in the AC Request [Start].
                 * <pre>
                 * Pics Selection: PICS_CDF_IUT and PICS_SESSION_BASED_CHARGING
                 * Initial conditions: 
@@ -368,7 +368,25 @@ module DiameterRfRo_TestCases
                 *           the IUT receives an AC-Request
                 *               containing an Accounting-Record-Type AVP
                 *                   containing an Accounting-Record-Type AVP
                 *                       indicating STOP_RECORD
                 *                       indicating START_RECORD
                 *               containing an Accounting-Record-Number AVP
                 *               containing an Acct-Interim-Interval AVP
                 *                   indicating expected intermediate charging interval
                 *        }
                 *        then {
                 *           the IUT sends an AC-Answer
                 *               containing a Result-Code AVP
                 *                   indicating DIAMETER_SUCCESS
                 *               not containing an Experimental-Result AVP
                 *               containing an Accounting-Record-Type AVP
                 *                   indicating START_RECORD
                 *               containing an Acct-Interim-Interval AVP
                 *                   indicating the required intermediate charging interval
                 *        when {
                 *           the IUT receives an AC-Request
                 *               containing an Accounting-Record-Type AVP
                 *                   containing an Accounting-Record-Type AVP
                 *                       indicating INTERIM_RECORD
                 *               containing an Accounting-Record-Number AVP
                 *               containing an Event-Timestamp AVP
                 *               optionally containing Service-Information AVP
@@ -381,7 +399,9 @@ module DiameterRfRo_TestCases
                 *                   indicating DIAMETER_SUCCESS
                 *               not containing an Experimental-Result AVP
                 *               containing an Accounting-Record-Type AVP
                 *                   indicating STOP_RECORD
                 *                   indicating INTERIM_RECORD
                 *               optionally containing an Acct-Interim-Interval AVP
                 *                   indicating the desired intermediate charging interval
                 *        }
                 *    }
                 * </pre>
@@ -412,13 +432,8 @@ module DiameterRfRo_TestCases
                    
                } // End of testcase TC_RF_CDF_TC_04
                
            } // End of group TypeOfCharging
            
            //5.2.2.1.4 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.
                 * @desc    Verify that the IUT can successfully process an AC-Request [Stop] where Session Based Charging is used
                 * <pre>
                 * Pics Selection: PICS_CDF_IUT and PICS_SESSION_BASED_CHARGING
                 * Initial conditions: 
@@ -428,23 +443,31 @@ module DiameterRfRo_TestCases
                 * Expected behaviour:
                 *     ensure that {
                 *        when {
                 *             The timer expired
                 *           the IUT receives an AC-Request
                 *               containing an Accounting-Record-Type AVP
                 *                   containing an Accounting-Record-Type AVP
                 *                       indicating STOP_RECORD
                 *               containing an Accounting-Record-Number AVP
                 *               containing an Event-Timestamp AVP
                 *               optionally containing Service-Information AVP
                 *                   indicating Subscription-Id AVP
                 *                   indicating IMS-Information AVP
                 *        }
                 *        then {
                 *             the IUT sends an AS-Request
                 *                 containing a Session-ID AVP
                 *                 containing an Origin-Host AVP
                 *                 containing an Origin-Realm AVP
                 *                 containing a Destination-Realm AVP
                 *                 containing a Destination-Host AVP
                 *                 containing an Auth-Application-Id AVP
                 *           the IUT sends an AC-Answer
                 *               containing a Result-Code AVP
                 *                   indicating DIAMETER_SUCCESS
                 *               not containing an Experimental-Result AVP
                 *               containing an Accounting-Record-Type AVP
                 *                   indicating STOP_RECORD
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version    0.0.22
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_EC_01
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_TC_05
                 */
                testcase TC_RF_CDF_EC_01() runs on DiameterRfRo system TestAdapter { 
                testcase TC_RF_CDF_TC_05() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRf_ctf; 
                    
@@ -458,64 +481,19 @@ module DiameterRfRo_TestCases
                    f_cf_1Rf_ctfUp(v_diameterRf_ctf);
                    
                    // Start
                    v_diameterRf_ctf.start(f_TC_RF_CDF_EC_01());
                    v_diameterRf_ctf.start(f_TC_RF_CDF_TC_04());
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Rf_ctfDown(v_diameterRf_ctf);
                    
                } // End of testcase TC_RF_CDF_EC_01
                } // End of testcase TC_RF_CDF_TC_05
                
                /**
                 * @desc    Verify that the IUT terminates the call in case of timer expiration when the Session Based Charging procedure is not completed properly.
                 * <pre>
                 * Pics Selection: PICS_CDF_IUT and PICS_SESSION_BASED_CHARGING
                 * Initial conditions: 
                 *     with {
                 *        
                 *     }
                 * Expected behaviour:
                 *     ensure that {
                 *         when {
                 *             The timer expired
                 *         }
                 *         then {
                 *             the IUT sends an AS-Request
                 *                 containing a Session-ID AVP
                 *                 containing an Origin-Host AVP
                 *                 containing an Origin-Realm AVP
                 *                 containing a Destination-Realm AVP
                 *                 containing a Destination-Host AVP
                 *                 containing an Auth-Application-Id AVP.
                 *        }
                 * </pre>
                 * 
                 * @version    0.0.22
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_EC_02
                 */
                testcase TC_RF_CDF_EC_02() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRf_ctf; 
                    
                    // Test control
                    if (not (PICS_RF_CDF_IUT and PICS_RF_CDF_SESSION_BASED_CHARGING)) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CDF_IUT and PICS_RF_CDF_SESSION_BASED_CHARGING' shall be set to true for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Rf_ctfUp(v_diameterRf_ctf);
                    
                    // Start
                    v_diameterRf_ctf.start(f_TC_RF_CDF_EC_02());
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Rf_ctfDown(v_diameterRf_ctf);
            } // End of group TypeOfCharging
            
                } // End of testcase TC_RF_CDF_EC_02
            //5.2.2.1.4 ErrorCases
            group TP_RF_CDF_EC {

                /**
                 * @desc    Verify that the IUT can successfully process Duplicate Detection AC-Request [Event] where Event Based Charging is used
@@ -550,9 +528,9 @@ module DiameterRfRo_TestCases
                 * </pre>
                 * 
                 * @version    0.0.22
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_EC_03
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_EC_01
                 */
                testcase TC_RF_CDF_EC_03() runs on DiameterRfRo system TestAdapter { 
                testcase TC_RF_CDF_EC_01() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRf_ctf;
                    // Test control
@@ -565,14 +543,14 @@ module DiameterRfRo_TestCases
                    f_cf_1Rf_ctfUp(v_diameterRf_ctf);
                    
                    // Start
                    v_diameterRf_ctf.start(f_TC_RF_CDF_EC_03());
                    v_diameterRf_ctf.start(f_TC_RF_CDF_EC_01());
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Rf_ctfDown(v_diameterRf_ctf);
                    
                } // End of testcase TC_RF_CDF_EC_03
                } // End of testcase TC_RF_CDF_EC_01

                /**
                 * @desc    Verify that the IUT can successfully process Duplicate Detection AC-Request [Interim] where Session Based Charging is used
@@ -607,9 +585,9 @@ module DiameterRfRo_TestCases
                 * </pre>
                 * 
                 * @version    0.0.22
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_EC_04
                 * @see        ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_EC_02
                 */
                testcase TC_RF_CDF_EC_04() runs on DiameterRfRo system TestAdapter { 
                testcase TC_RF_CDF_EC_02() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRf_ctf;
                    // Test control
@@ -622,14 +600,14 @@ module DiameterRfRo_TestCases
                    f_cf_1Rf_ctfUp(v_diameterRf_ctf);
                    
                    // Start
                    v_diameterRf_ctf.start(f_TC_RF_CDF_EC_04());
                    v_diameterRf_ctf.start(f_TC_RF_CDF_EC_02());
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Rf_ctfDown(v_diameterRf_ctf);
                    
                } // End of testcase TC_RF_CDF_EC_04
                } // End of testcase TC_RF_CDF_EC_02
                
            } // End of group ErrorCasses