Commit d29cd302 authored by pintar's avatar pintar
Browse files

New test skeleton for RO_OCF_MS_01

parent a044b74a
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -669,6 +669,40 @@ module DiameterRfRo_TCFunctions {
        group TP_RO_OCF_Role {
            // 5.2.3.1.2 Message Syntax 
            group TP_RO_OCF_MS {
                
                /**
                 * @desc    Verify that the IUT can successfully process all mandatory AVPs in a CC-Request received due to Charging Data Transfer.
                 * @verdict pass on success, fail on error or inconc on timeout only 
                 */
                function f_TC_RO_OCF_MS_01() runs on DiameterRfRo { 
                    // Local variables
                    
                    // Preamble
                    f_preamble_Ro_CTF();
                    f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
                    log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

//                    f_send_CCR(
//                        md_cCR(
//                            vc_sessionId, 
//                            //TODO//md_ccrBody..
//                        )
//                    );

//                    f_awaiting_CCA(
//                        mdw_cCA(
//                        //TODO
//                        )
//                    );

                    f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // sync

                    f_postamble_Ro_CTF();
                    f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
                    log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
                    
                } // End of function f_TC_RO_OCF_MS_01
                
            }//end of group TP_RO_OCF_MS
            // 5.2.3.1.3 Type of Charging 
            group TP_RO_OCF_TC {
+62 −0
Original line number Diff line number Diff line
@@ -717,6 +717,68 @@ module DiameterRfRo_TestCases
        group TP_RO_OCF_Role {
            // 5.2.3.1.2 Message Syntax 
            group TP_RO_OCF_MS {
                
                /**
                 * @desc    Verify that the IUT can successfully process all mandatory AVPs in a CC-Request received due to Charging Data Transfer.
                 * <pre>
                 * Pics Selection: PICS_CDF_IUT
                 * Initial conditions: 
                 *     with {
                 *        
                 *     }
                 * Expected behaviour:
                 *     ensure that {
                 *        when {
                 *            the IUT receives an CC-Request
                 *                containing a Session-ID AVP
                 *                containing an Origin-Host AVP
                 *                containing an Origin-Realm AVP
                 *                containing a Destination-Realm AVP
                 *                containing an Auth-Application-Id AVP
                 *                    indicating the value 4
                 *                containing a Service-Context-Id AVP
                 *                containing a CC-Request-Type AVP
                 *                containing a CC-Request-Number AVP
                 *        then {
                 *            the IUT sends a CC-Answer
                 *                containing a Session-ID AVP
                 *                containing a Result-Code AVP
                 *                    indicating DIAMETER_SUCCESS
                 *                containing an Origin-Host AVP
                 *                containing an Origin-Realm AVP
                 *                containing an Auth-Application-Id AVP
                 *                containing a CC-Request-Type AVP
                 *                containing a CC-Request-Number AVP.
                 *        }
                 *    }
                 * </pre>
                 * 
                 * @version    0.0.16
                 * @see        ETSI DTS/INT 00121-2 V0.0.16 (2015-09) TP_RO_OCF_MS_01
                 */
                testcase TC_RO_OCF_MS_01() runs on DiameterRfRo system TestAdapter { 
                    // Local variables
                    var DiameterRfRo v_diameterRo_ctf; 
                    
                    // Test control
                    if (not PICS_RO_OCF_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_OCF_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Ro_ctfUp(v_diameterRo_ctf);
                    
                    // Start
                    v_diameterRo_ctf.start(f_TC_RO_OCF_MS_01()); 
                    
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                    
                    f_cf_1Ro_ctfDown(v_diameterRo_ctf);
                    
                } // End of testcase TC_RO_OCF_MS_01
                
            }//end of group TP_RO_OCF_MS
            // 5.2.3.1.3 Type of Charging 
            group TP_RO_OCF_TC {