Newer
Older
* @desc This module provides test cases
* for SIP-IMS-RfRo-DIAMETER tests.
*/
module DiameterRfRo_TestCases
{
//LibCommon
import from LibCommon_Sync all ;
import from LibCommon_VerdictControl all;
import from LibDiameter_TypesAndValues all;
//LibSip
import from LibSip_SIPTypesAndValues {type CSeq;};
//AtsIms
import from DiameterRfRo_TestConfiguration all;
import from DiameterRfRo_TestSystem all;
import from DiameterRfRo_SIP_TCFunctions all;
import from DiameterRfRo_TCFunctions all;
import from DiameterRfRo_PICS all;
import from DiameterRfRo_PIXITS all;
import from DiameterRfRo_Steps all;
import from DiameterRfRo_TestSystem all;
// 5.2.2.1. CDF Role
group TP_RF_CDF_Role {
// 5.2.2.1.2 Message Syntax
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* @desc Verify that the IUT can successfully process all mandatory AVPs in an AC-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 AC-Request
* containing a Session-ID AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* containing a Destination-Realm AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* containing an Acct-Application-Id AVP
* indicating the value 3
* }
* then {
* the IUT sends a AC-Response
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* containing an Acct-Application-Id AVP
* indicating the value 3
* }
* }
* </pre>
*
* @version 0.0.12
* @see ETSI TS 103 374-2 V0.0.12 (2015-07) TP_RF_CDF_MS_01
*/
testcase TC_RF_CDF_MS_01() runs on DiameterRfRo system TestAdapter {
// Local variables
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CDF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
} // End of testcase TC_RF_CDF_MS_01
* @desc Verify that the IUT can successfully process all mandatory AVPs in an AC-Request received due to Charging Data Transfer,
* and responds with a valid AC-Answer message
* <pre>
* Pics Selection: PICS_CDF_IUT
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AC-Request
* containing a Session-ID AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* containing a Destination-Realm AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* containing an Acct-Application-Id AVP
* indicating the value 3
* }
* then {
* the IUT sends an AC-Answer
* containing a Diameter-Header
* containing a Version
* indicating value '1'
* containing a Command-Flags
* containing T bit
* indicating value '0'
* containing r bits
* indicating value '0000'.
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_MS_02
*/
testcase TC_RF_CDF_MS_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_ctf;
// Test control
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CDF_IUT' 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_CDF_MS_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_MS_01
} // End of group MessageSyntax
// 5.2.2.1.3 Type of Charging
/**
* @desc Verify that the IUT can successfully process an AC-Request [Event] where Event Based Charging is used
* <pre>
* Pics Selection: PICS_CDF_IUT and PICS_EVENT_BASED_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AC-Request
* containing an Accounting-Record-Type AVP
* indicating EVENT_RECORD
* containing an Event-Timestamp AVP
* optionally 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
* }
* then {
* the IUT sends a AC-Response
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* indicating EVENT_RECORD
* containing an Accounting-Record-Number AVP
* }
* }
* </pre>
*
* @version 0.0.12
* @see ETSI TS 103 374-2 V0.0.12 (2015-07) TP_RF_CDF_TC_01
*/
testcase TC_RF_CDF_TC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
if (not (PICS_RF_CDF_IUT and PICS_RF_CDF_EVENT_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CDF_IUT and PICS_RF_CDF_EVENT_BASED_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
// Start
v_diameterRf_ctf.start(f_TC_RF_CDF_TC_01());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
} // End of testcase TC_RF_CDF_TC_01
/**
* @desc Verify that the IUT can successfully process an AC-Request [Start] where Session Based Charging is used
* <pre>
* Pics Selection: PICS_CDF_IUT and PICS_SESSION_BASED_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AC-Request
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Type AVP
* indicating START_RECORD
* containing an Accounting-Record-Number AVP
* containing an Event-Timestamp AVP
* containing Service-Information AVP
* indicating the service specific parameters
* }
* 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
* optionally containing an Acct-Interim-Interval AVP
* indicating the desired intermediate charging interval.
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_TC_02
*/
testcase TC_RF_CDF_TC_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_TC_02());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
f_cf_1Rf_ctfDown(v_diameterRf_ctf);
* @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:
* with {
*
* }
* Expected behaviour:
* ensure that {
* 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
* indicating Subscription-Id AVP
* indicating IMS-Information AVP
* }
* 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 INTERIM_RECORD
* optionally containing an Acct-Interim-Interval AVP
* indicating the desired intermediate charging interval
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_TC_03
*/
testcase TC_RF_CDF_TC_03() 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_TC_03());
// 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_TC_03
/**
* @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:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AC-Request
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Type AVP
* 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
* indicating Subscription-Id AVP
* indicating IMS-Information AVP
* }
* 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 INTERIM_RECORD
* optionally containing an Acct-Interim-Interval AVP
* indicating the desired intermediate charging interval
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CDF_TC_04
*/
testcase TC_RF_CDF_TC_04() 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_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_TC_04
* @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:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* 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 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
testcase TC_RF_CDF_TC_05() 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
// 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_TC_05
} // End of group TypeOfCharging
//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
* <pre>
* Pics Selection: PICS_CDF_IUT and PICS_EVENT_BASED_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing an Accounting-Record-Type AVP
* indicating EVENT_RECORD
* containing an Event-Timestamp AVP
* the IUT sends a AC-Response
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* indicating EVENT_RECORD
* containing an Accounting-Record-Number AVP
* }
* }
* </pre>
*
testcase TC_RF_CDF_EC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_ctf;
// Test control
if (not (PICS_RF_CDF_IUT and PICS_RF_CDF_EVENT_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CDF_IUT and PICS_RF_CDF_EVENT_BASED_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Rf_ctfUp(v_diameterRf_ctf);
// Start
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
f_cf_1Rf_ctfDown(v_diameterRf_ctf);
/**
* @desc Verify that the IUT can successfully process Duplicate Detection AC-Request [Interim] where Session Based Charging is used
* <pre>
* Pics Selection: PICS_CDF_IUT and PICS_SESSION_BASED_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Event-Timestamp AVP
* }
* then {
* the IUT sends a AC-Response
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* indicating EVENT_RECORD
* containing an Accounting-Record-Number AVP
* }
* }
* </pre>
*
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
// 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 TP_RF_CDF_Role
// 5.2.2.2. CTF Role
group TP_RF_CTF_Role {
// 5.2.2.2.2 Message Syntax
/**
* @desc Verify that the IUT can send an AC-Request to indicate a Charging Data Transfer.
* <pre>
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to indicate a request for Charging Data Transfer
* }
* then {
* the IUT sends an AC-Request
* containing a Session-ID AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* containing a Destination-Realm AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* containing an Acct-Application-Id AVP
* indicating the value 3
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_MS_01
*/
testcase TC_RF_CTF_MS_01() runs on DiameterRfRo system TestAdapter {
// Local variables
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT' shall be set to true for executing the TC. ***");
// Start
v_diameterRf_cdf.start(f_TC_CTF_MS_01());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
/**
* @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 {
* when {
* the IUT is requested to indicate a request for Charging Data Transfer
* }
* then {
* the IUT 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'
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_MS_02
*/
testcase TC_RF_CTF_MS_02() runs on DiameterRfRo system TestAdapter {
// Local variables
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT' shall be set to true for executing the TC. ***");
// Start
v_diameterRf_cdf.start(f_TC_CTF_MS_02());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
/**
* @desc Verify that the IUT can successfully process an AC-Request [Event].
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_EVENT_BASED_CHARGING
* Initial conditions:
* with {
* Preamble action: UE initiates an initial REGISTRATION procedure.
* }
* Expected behaviour:
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
* ensure that {
* when {
* 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
* }
* then {
* the IUT receives 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
* and the IUT accepts the message
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_TC_01
pintar
committed
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;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_EVENT_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_EVENT_BASED_CHARGING' shall be set to true 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) {
if (PX_VA == 1){
v_imsComponent_ue.start(f_TC_CTF_TC_UE_01_VA1(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_01_VA1(p_cSeq_s));
else if(PX_VA == 2){
v_imsComponent_ue.start(f_TC_CTF_TC_UE_01_VA2(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_01_VA2(p_cSeq_s));
else if(PX_VA == 3){
v_imsComponent_ue.start(f_TC_CTF_TC_UE_01_VA3(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_01_VA3(p_cSeq_s));
else if(PX_VA == 4){
v_imsComponent_ue.start(f_TC_CTF_TC_UE_01_VA4(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_01_VA4(p_cSeq_s));
}
else {
log("Set correct value of PIXIT: PX_VA due to related test case!");
}
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
/**
* @desc Verify that the IUT can successfully process an AC-Request [Start].
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING
* Initial conditions:
* with {
* Preamble action: UE initiates an INVITE procedure.
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an AC-Request
* containing an Accounting-Record-Type AVP
* indicating START_RECORD
* containing an Accounting-Record-Number AVP
* containing an Event-Timestamp AVP
* containing Service-Information AVP
* indicating the service specific parameters
* }
* then {
* the IUT receives 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
* optionally containing an Acct-Interim-Interval AVP
* indicating the desired intermediate charging interval
* and the IUT accepts the message
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_TC_02
pintar
committed
testcase TC_RF_CTF_TC_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING' shall be set to true 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_02());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_TC_UE_02(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_02(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_TC_02
/**
* @desc Verify that the time between several AC-Requests [Interim]
* received by the IUT is at least equal to the desired intermediate
* charging interval.
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING
* Initial conditions:
* with {
* Preamble action: UE establishes a call.
* }
* Expected behaviour:
* Ensure that {
* the IUT sends an AC-Request
* containing an Accounting-Record-Type AVP
* indicating START_RECORD
* containing an Accounting-Record-Number AVP
* the IUT receives an AC-Answer
* containing an Accounting-Record-Type AVP
* indicating START_RECORD
* containing an Accounting-Record-Number AVP
* containing an Acct-Interim-Interval AVP
* containing the desired intermediate charging interval
* indicating a value INTERIM_INTERVAL not equal to 0
* the IUT sends periodically an AC-Request [Interim]
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing a Service-Information AVP
* containing an Event-Timestamp AVP
* the IUT receives an AC-Answer
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* the IUT accepts the message
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_TC_03
pintar
committed
testcase TC_RF_CTF_TC_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING' shall be set to true 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_03());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_TC_UE_03(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_03(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_TC_03
/**
* @desc Verify that the IUT can successfully process an AC-Request [Interim].
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING
* Initial conditions:
* with {
* Preamble action: UE establishes a call.
* }
* Expected behaviour:
* Ensure that {
* the IUT sends an AC-Request
* containing an Accounting-Record-Type AVP
* indicating START_RECORD
* containing an Accounting-Record-Number AVP
* the IUT receives 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 Accounting-Record-Number AVP
* the IUT receives SIP 200 OK (reInvite)
* the IUT sends an AC-Request [Interim]
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing a Service-Information AVP
* containing an Event-Timestamp AVP
* the IUT receives an AC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* the IUT accepts the message
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_TC_04
pintar
committed
testcase TC_RF_CTF_TC_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING' shall be set to true 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_04());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_TC_UE_04(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_04(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_TC_04
/**
* @desc Verify that the IUT can successfully process an AC-Request [Stop].
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING
* Initial conditions:
* with {
* Preamble action: UE establishes a call.
* }
* Expected behaviour:
* Ensure that {
* when {
* the IUT sends an AC-Request
* containing an Accounting-Record-Type AVP
* indicating STOP_RECORD
* containing an Accounting-Record-Number AVP
* containing an Acct-Application-Id AVP
* indicating the value 3
* }
* then {
* the IUT receives 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
* and the IUT accepts the message
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_TC_05
pintar
committed
testcase TC_RF_CTF_TC_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING' shall be set to true 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_05());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_TC_UE_05(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_TC_CSCF_05(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_TC_05
} // End of group TP_RF_CTF_TC_Role
/**
* @desc Verify that the IUT sends periodically Device-Watchdog-Request messages to the CDF.
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING
* Initial conditions:
* with {
* Preamble action: ACR, ACA [Start]
* }
* Expected behaviour:
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
* Ensure that {
* when {
* sends a DW-Request
* containing a Diameter-Header
* containing a Hop-by-Hop AVP
* containing a End-To-End AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* }
* then {
* the IUT receives a DW-Answer
* containing a Diameter-Header
* containing a Hop-by-Hop AVP
* containing a End-To-End AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* and the IUT accepts the message
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_EC_01
pintar
committed
testcase TC_RF_CTF_EC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING' shall be set to true 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_EC_01());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_EC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_EC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_EC_01
/**
* @desc Verify that on connection failure with the pimary CDF, the IUT sends an AC-Request [Interim] to the secondary CDF.
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF
* Initial conditions:
* with {
* Preamble action: ACR, ACA [Start] and ACR, ACA [Interim] are exchanged.
* }
* Expected behaviour:
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
* Ensure that {
* when {
* the IUT is requested to indicate the CDF stop
* }
* then {
* the IUT sends an AC-Request [Interim] to the secondary CDF
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing Service-Information AVP
* containing an Event-Timestamp AVP
* indicating a time orderd sequence
* and the IUT receives an AC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* and the IUT accepts the message
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_EC_02
pintar
committed
testcase TC_RF_CTF_EC_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf, v_diameterRf_cdf2;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_2Rf_1Gm_1Mw_cdfUp(v_diameterRf_cdf, v_diameterRf_cdf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRf_cdf.start(f_TC_CTF_EC_02());
v_diameterRf_cdf2.start(f_TC_CTF_EC_02_2ndCDF());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_EC_UE_02(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_EC_CSCF_02(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_2Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_diameterRf_cdf2, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_EC_02
/**
* @desc Verify that on connection restored, the IUT sends an AC-Request [Interim] to the primary CDF.
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF
* Initial conditions:
* with {
* Preamble action: ACR, ACA [Start] and ACR, ACA [Interim] are exchanged.
* }
* Expected behaviour:
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
* Ensure that {
* when {
* the IUT sends an AC-Request [Interim] to the primary CDF
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing Service-Information AVP
* containing an Event-Timestamp AVP
* indicating a time orderd sequence
* }
* then {
* the IUT receives an AC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* and the IUT accepts the message
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_EC_03
pintar
committed
testcase TC_RF_CTF_EC_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf, v_diameterRf_cdf2;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_2Rf_1Gm_1Mw_cdfUp(v_diameterRf_cdf, v_diameterRf_cdf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRf_cdf.start(f_TC_CTF_EC_03());
v_diameterRf_cdf2.start(f_TC_CTF_EC_03_2ndCDF());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_EC_UE_03(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_EC_CSCF_03(p_cSeq_s));
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_2Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_diameterRf_cdf2, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_EC_03
/**
* @desc Verify that on communication failure, the IUT stores generated accounting
* data in a non-volatile memory and, on communication restored, sends them to
* the CDF, in the order they were stored in the buffer.
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and
* PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING and NOT PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF
* Initial conditions:
* with {
* Preamble action: ACR, ACA [Start]
* }
* Expected behaviour:
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
* Ensure that {
* when {
* the IUT is requested to indicate the CDF restart
* }
* then {
* sends the buffered AC-Request [Interim]
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing a Service-Information AVP
* containing an Event-Timestamp AVP
* indicating a time orderd sequence
* and the IUT receives one AC-Answer for each buffered AC-Request [Interim]
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_EC_04
pintar
committed
testcase TC_RF_CTF_EC_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and
PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING and not PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING and not PICS_RF_CTF_CONNECTION_TO_BACKUP_CDF' shall be set to true 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_EC_04());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_EC_UE_04(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_EC_CSCF_04(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_EC_04
/**
* @desc Verify that the IUT retransmits an unacknowladged AC-Request [Interim] (T-flag).
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and
* PICS_RF_CTF_ERROR_CASES_ACR_RETRANSMISSION
* Initial conditions:
* with {
* Preamble action: ACR, ACA [Start] and ACR, ACA [Interim] are exchanged and the
* CDF stops communication with the IUT.
* }
* Expected behaviour:
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
* Ensure that {
* when {
* the IUT is requested to indicate not having received an AC-Answer [Interim]
* }
* then {
* send again an AC-Request [Interim]
* containing a Diameter-Header
* containing a Command-Flags
* containing a T-flag
* indicating value '1'
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing a Service-Information AVP
* containing an Event-Timestamp AVP
* indicating a time orderd sequence
* and the IUT receives an AC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_EC_05
pintar
committed
testcase TC_RF_CTF_EC_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and
PICS_RF_CTF_ERROR_CASES_ACR_RETRANSMISSION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_ERROR_CASES_ACR_RETRANSMISSION' shall be set to true 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_EC_05());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_EC_UE_05(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_EC_CSCF_05(p_cSeq_s));
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_EC_05
/**
* @desc Verify that on reaching the maximum of retransmissions of unacknowladged
* AC-Requests [Interim] (T-flag), the IUT executes the CDF connection failure procedure.
* <pre>
* Pics Selection: PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and
* PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING
* Initial conditions:
* with {
* Preamble action: ACR, ACA [Start] and ACR, ACA [Interim] are exchanged and the
* CDF stops communication with the IUT.
* }
* Expected behaviour:
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
* Ensure that {
* when {
* on maximum retransmission of AC-Request [Interim]
* the IUT is requested to indicate the CDF restart
* }
* then {
* sends the buffered AC-Request [Interim]
* containing an Accounting-Record-Type AVP
* indicating INTERIM_RECORD
* containing an Accounting-Record-Number AVP
* containing a Service-Information AVP
* containing an Event-Timestamp AVP
* indicating a time orderd sequence
* and the IUT receives one AC-Answer for each buffered AC-Request [Interim]
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Accounting-Record-Type AVP
* containing an Accounting-Record-Number AVP
* and the IUT accepts the messages
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RF_CTF_EC_06
pintar
committed
testcase TC_RF_CTF_EC_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRf_cdf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
pintar
committed
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and
PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RF_CTF_IUT and PICS_RF_CTF_SESSION_BASED_CHARGING and PICS_RF_CTF_ERROR_CASES_ACR_BUFFERING' shall be set to true 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_EC_06());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_CTF_EC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_CTF_EC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
f_cf_1Rf_1Gm_1Mw_cdfDown(v_diameterRf_cdf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RF_CTF_EC_06
} // End of group TP_RF_CTF_EC_Role
} // End of group TP_RFRole
/**
* @desc Verify that the IUT can successfully process all mandatory AVPs in a CC-Request received due to Charging Data Transfer.
* <pre>
* 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.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) 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_RO_OCF_IUT' shall be set to true 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
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
/**
* @desc Verify that the IUT can successfully process all mandatory AVPs in a CC-Request received due to Charging Data Transfer and responds with a valid CC-Answer message
* <pre>
* Pics Selection: PICS_OCF_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 Diameter-Header
* containing a Version
* indicating value '1'
* containing a Command-Flags
* containing T bit
* indicating value '0'
* indicating value '0000'.
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_MS_02
*/
testcase TC_RO_OCF_MS_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not PICS_RO_OCF_IUT) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT' shall be set to true 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_02());
// 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_02
} // End of group TP_RO_OCF_MS
// 5.2.3.1.3 Type of Charging
group TP_RO_OCF_TC {
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
/**
* @desc Verify that the IUT can successfully process a CC-Request [Event] with direct debiting due to Immediate Event Charging
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating debites units
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_01
*/
testcase TC_RO_OCF_TC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_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_TC_01
/**
* @desc Verify that the IUT can successfully process a CC-Request [Event] with price enquiry due to Immediate Event Charging
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a Cost-Information AVP
* containing a Unit-Value AVP
* containing a Value-Digits AVP
* containing a Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_02
*/
testcase TC_RO_OCF_TC_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_02());
// 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_TC_02
/**
* @desc Verify that the IUT can successfully process a CC-Request [Event] with check balance due to Immediate Event Charging
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK BALANCE
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a Remaining-Balance AVP
* containing a Unit-Value AVP
* containing a Value-Digits AVP
* containing a Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_03
*/
testcase TC_RO_OCF_TC_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_03());
// 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_TC_03
/**
* @desc Verify that the IUT can successfully process a CC-Request [Event] with refund account due to Immediate Event Charging
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating REFUND ACCOUNT
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating refunded units
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_04
*/
testcase TC_RO_OCF_TC_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_04());
// 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_TC_04
/**
* @desc Verify that the IUT can successfully process a CC-Request [Initial] to reserve units due to Event Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_05
*/
testcase TC_RO_OCF_TC_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_05());
// 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_TC_05
/**
* @desc Verify that the IUT can successfully process a CC-Request [Termination] to debit units due to Event Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_06
*/
testcase TC_RO_OCF_TC_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_06());
// 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_TC_06
/**
* @desc Verify that the IUT can successfully process a CC-Request [Initial] to reserve units due to Session Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_07
*/
testcase TC_RO_OCF_TC_07() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_07());
// 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_TC_07
/**
* @desc Verify that the IUT can successfully process a CC-Request [Update] to reserve units and debit units due to Session Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_08
*/
testcase TC_RO_OCF_TC_08() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_08());
// 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_TC_08
/**
* @desc Verify that the IUT can successfully process a CC-Request [Termination] to debit units due to Session Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] and CCR,CCA [Update] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_TC_09
*/
testcase TC_RO_OCF_TC_09() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_TC_09());
// 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_TC_09
/**
* @desc Verify that the IUT can successfully process Duplicate Detection due to Immediate Event Charging with Direct Debiting
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating debites units
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_EC_01
*/
testcase TC_RO_OCF_EC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_EC_RO_OCF_EC_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_EC_01
/**
* @desc Verify that the IUT can successfully process Duplicate Detection due to Event Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_EC_02
*/
testcase TC_RO_OCF_EC_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_EC_RO_OCF_EC_02());
// 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_EC_02
/**
* @desc Verify that the IUT can successfully process Duplicate Detection due to Event Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_EC_03
*/
testcase TC_RO_OCF_EC_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_EC_RO_OCF_EC_03());
// 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_EC_03
/**
* @desc Verify that the IUT can successfully process Duplicate Detection due to Session Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR, CCA [Initial] and CCR, CCA [Update] are exchanged and,
* the OCF stops communication with the IUT
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* optionally containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* optionally containing a Remaining-Balance AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_EC_04
*/
testcase TC_RO_OCF_EC_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_EC_RO_OCF_EC_04());
// 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_EC_04
* @desc Verify that the IUT supports Tariff-Change-Usage AVP and,
* that the IUT can successfully process a CC-Request [Event] to perform tariff switch due to Immediate Event Charging and,
* then responds with a CC-Answer with relavant Result-Code AVP and Tariff-Time-Change AVP
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK BALANCE
* containing a Multiple-Services-Credit-Control AVP
* containing an Used-Service-Unit AVP
* containing a Tariff-Change-Usage AVP
* indicating UNIT_BEFORE_TARIFF_CHANGE
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_CH_01
*/
testcase TC_RO_OCF_CH_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_CH_RO_OCF_CH_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_CH_01
/**
* @desc Verify that the IUT supports Tariff-Change-Usage AVP and IUT can successfully process a CC-Request [Initial] to perform tariff switch due to Event Charging with Unit Reservation and,
* then responds with a CC-Answer with relavant Result-Code AVP and Tariff-Time-Change AVP
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Unit AVP
* containing a Tariff-Change-Usage AVP
* indicating UNIT_BEFORE_TARIFF_CHANGE
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_CH_02
*/
testcase TC_RO_OCF_CH_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_CH_RO_OCF_CH_02());
// 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_CH_02
/**
* @desc Verify that the IUT supports Tariff-Change-Usage AVP and IUT can successfully process a CC-Request [Initial] to perform tariff switch due to Session Charging with Unit Reservation and,
* then responds with a CC-Answer with relavant Result-Code AVP and Tariff-Time-Change AVP
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Unit AVP
* containing a Tariff-Change-Usage AVP
* indicating UNIT_BEFORE_TARIFF_CHANGE
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_CH_03
*/
testcase TC_RO_OCF_CH_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_CH_RO_OCF_CH_03());
// 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_CH_03
// 5.2.3.1.6 Re-Authorization
group TP_RO_OCF_RE {
/**
* @desc Verify that the IUT re-authorizes multiple active quotas during Session Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] and CCR,CCA [Update] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is indicated for a need for re-authorization
* then {
* the IUT sends an RA-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
* indicating the value 4
* containing a Re-Auth-Request-Type AVP
* indicating AUTHORIZE_ONLY
* and the IUT receives an RA-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* and the IUT accepts the message
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_RE_01
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
*/
testcase TC_RO_OCF_RE_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' 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_RE_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_RE_01
// 5.2.3.1.7 Failure Handling
group TP_RO_OCF_FH {
/**
* @desc Verify that the IUT can successfully transmit Credit-Control-Failure-Handling AVP (CCFH) with price enquiry
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Credit-Control-Failure-Handling AVP
* indicating what to do if the IUT has been temporarily prevented
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_FH_01
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
*/
testcase TC_RO_OCF_FH_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING' 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_FH_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_FH_01
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
/**
* @desc Verify that the IUT can successfully transmit Direct-Debiting-Failure-Handling AVP (DDFH) with direct debiting
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING and PICS_RO_OCF_DDFH_TERMINATE_OR_BUFFER
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Direct-Debiting-Failure-Handling AVP
* indicating TERMINATE_OR_BUFFER
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_FH_02
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
*/
testcase TC_RO_OCF_FH_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING and PICS_RO_OCF_DDFH_TERMINATE_OR_BUFFER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING and PICS_RO_OCF_DDFH_TERMINATE_OR_BUFFER' 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_FH_02());
// 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_FH_02
/**
* @desc Verify that the IUT can successfully transmit Direct-Debiting-Failure-Handling AVP (DDFH) with direct debiting
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING and PICS_RO_OCF_DDFH_CONTINUE
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Direct-Debiting-Failure-Handling AVP
* indicating CONTINUE
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_FH_03
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
*/
testcase TC_RO_OCF_FH_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING and PICS_RO_OCF_DDFH_CONTINUE)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_IMMEDIATE_EVENT_CHARGING and PICS_RO_OCF_DDFH_CONTINUE' 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_FH_03());
// 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_FH_03
/**
* @desc Verify that the IUT can successfully transmit CC-Session-Failover AVP
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_FAILOVER
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Session-Failover AVP
* indicating FAILOVER_SUPPORTED
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_FA_01
*/
testcase TC_RO_OCF_FA_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_FAILOVER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_FAILOVER' required for executing the TC. ***");
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_FA_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_FA_01
/**
* @desc Verify that the IUT can successfully transmit CC-Session-Failover AVP
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_FAILOVER
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Session-Failover AVP
* indicating FAILOVER_SUPPORTED
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_FA_02
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
*/
testcase TC_RO_OCF_FA_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_FAILOVER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_FAILOVER' 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_FA_02());
// 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_FA_02
/**
* @desc Verify that the IUT can successfully process a CC-Request [Initial] to perform credit pooling due to Event Charging with Unit Reservation and then responds with a CC-Answer with related AVPs
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_CREDIT_POOLING
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Indicator AVP
* indicating MULTIPLE_SERVICES_SUPPORTED
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a G-S-U-.Pool-Reference AVP
* containing a G-S-U-.Pool-Identifier AVP
* containing a CC-Unit-Type AVP
* containing a Unit-Value AVP
* containing a Value-Digits AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_CP_01
*/
testcase TC_RO_OCF_CP_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_CREDIT_POOLING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_CREDIT_POOLING' 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_CP_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_CP_01
/**
* @desc Verify that the IUT supports credit pooling and it can successfully process a CC-Request [Initial] to reserve units due to Session Charging with Unit Reservation
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_CREDIT_POOLING
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Indicator AVP
* indicating MULTIPLE_SERVICES_SUPPORTED
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a G-S-U-.Pool-Reference AVP
* containing a G-S-U-.Pool-Identifier AVP
* containing a CC-Unit-Type AVP
* containing a Unit-Value AVP
* containing a Value-Digits AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_CP_02
*/
testcase TC_RO_OCF_CP_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_CREDIT_POOLING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_CREDIT_POOLING' 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_CP_02());
// 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_CP_02
// 5.2.3.1.10 Other Procedures
group TP_RO_OCF_OP {
/**
* @desc Verify that the IUT can specify an idle timeout associated with a granted quota
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_QUOTA_HOLDING_TIME
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Quota-Holding-Time AVP
* indicating a non 0 value
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_01
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
*/
testcase TC_RO_OCF_OP_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_QUOTA_HOLDING_TIME)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_QUOTA_HOLDING_TIME' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_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_OP_01
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
/**
* @desc Verify that the IUT can successfully process a CC-Answer [Update] including various Trigger-Type AVPs and generate a credit re-authorization
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Trigger AVP
* containing a Trigger-Type AVP
* indicating one of the possible values (7.2.235/236)
* the IUT sends a CC-Request
* containing a Session-ID AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* containing a Destination-Realm AVP
* containing a Destination-HHost AVP
* containing an Auth-Application-Id AVP
* indicating the value 4
* containing a Re-Auth-Request-Type AVP
* indicating AUTHORIZE_ONLY
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_02
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
*/
testcase TC_RO_OCF_OP_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_02());
// 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_OP_02
/**
* @desc Verify that the IUT can successfully reset triggers which were already set
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Trigger AVP
* not containing a Trigger-Type AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_03
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
*/
testcase TC_RO_OCF_OP_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_03());
// 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_OP_03
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
/**
* @desc Verify that the IUT can successfully indicate the remaining quota threshold by sending a CC-Answer with Time-Quota-Threshold AVP and trigger quota re-authorization
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_QUOTA_HOLDING_TIME
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Units AVP
* containing a CC-Time AVP
* containing a Time-Quota-Threshold AVP
* and the IUT sends an RA-Request
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_04
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
*/
testcase TC_RO_OCF_OP_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_QUOTA_HOLDING_TIME)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_QUOTA_HOLDING_TIME' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_04());
// 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_OP_04
/**
* @desc Verify that the IUT can successfully indicate the remaining quota threshold by sending a CC-Answer with Volume-Quota-Threshold AVP and trigger quota re-authorization
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Units AVP
* containing a CC-Total-Octets AVP or
* containing a CC-Input-Octets AVP or
* containing a CC-Output-Octets AVP
* containing a Volume-Quota-Threshold AVP
* and the IUT sends an RA-Request
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_05
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
*/
testcase TC_RO_OCF_OP_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_05());
// 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_OP_05
/**
* @desc Verify that the IUT can successfully indicate the remaining quota threshold by sending a CC-Answer with Unit-Quota-Threshold AVP and trigger quota re-authorization
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Units AVP
* containing a CC-Service-Specific-Units AVP
* containing a Unit-Quota-Threshold AVP
* and the IUT sends an RA-Request
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_06
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
*/
testcase TC_RO_OCF_OP_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_RE_AUTHORIZATION and PICS_RO_OCF_RE_AUTHORIZATION_TRIGGER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_06());
// 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_OP_06
/**
* @desc Verify that the IUT can process termination action
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT has consumed Granted credits
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* 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
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Final-Unit-Indication AVP
* containing a Final-Unit-Action AVP
* indicating TERMINATE
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_07
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
*/
testcase TC_RO_OCF_OP_07() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_07());
// 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_OP_07
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
/**
* @desc Verify that, IUT can process redirection action
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT has consumed Granted credits
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* 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
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Final-Unit-Indication AVP
* containing a Final-Unit-Action AVP
* indicating REDIRECT
* containing Redirect-Server AVP
* containing Redirect-Address-Type AVP
* containing Redirect-Server-Address AVP
* optionally containing Restriction-Filter-Rule AVP
* optionally containing Filter-Id AVP AVP
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_08
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
*/
testcase TC_RO_OCF_OP_08() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_08());
// 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_OP_08
/**
* @desc Verify that, IUT can process quota consumption time
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_QUOTA_CONSUMPTION_TIME
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* 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
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Units AVP
* containing a CC-Time AVP
* containing a Quota-Consumption-Time AVP
* indicating a period equal to the Quota Consumption Time
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_09
*/
testcase TC_RO_OCF_OP_09() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_QUOTA_CONSUMPTION_TIME)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_QUOTA_CONSUMPTION_TIME' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_09());
// 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_OP_09
/**
* @desc Verify that the IUT can successfully terminate sessions on CCR,CCA [Update] exchange
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_SERVICE_TERMINATION and PICS_RO_OCF_SERVICE_TERMINATION_WITH_CCA
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-AUTHORIZATION-REJECTED
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_10
*/
testcase TC_RO_OCF_OP_10() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_SERVICE_TERMINATION and PICS_RO_OCF_SERVICE_TERMINATION_WITH_CCA)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_SERVICE_TERMINATION and PICS_RO_OCF_SERVICE_TERMINATION_WITH_CCA' shall be set to true for executing the TC. ***");
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_10());
// 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_OP_10
/**
* @desc Verify that the IUT can successfully terminate sessions with ASR,ASA exchange
* <pre>
* Pics Selection: PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_SERVICE_TERMINATION_WITH_CCA and PICS_RO_OCF_SERVICE_TERMINATION_WITH_ASR
* Initial conditions:
* with {
* CCR,CCA [Initial] and CCR,CCA [Update] are exchanged
* }
* Expected behaviour:
* ensure that {
* when {
* on service termination request
* }
* 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 receives an AS-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* the IUT receives a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATE_REQUEST
* containing a CC-Request-Number AVP
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-AUTHORIZATION-REJECTED
* containing a CC-Request-Type AVP
* indicating TERMINATE_REQUEST
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_11
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
*/
testcase TC_RO_OCF_OP_11() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_SERVICE_TERMINATION_WITH_CCA and PICS_RO_OCF_SERVICE_TERMINATION_WITH_ASR)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_SERVICE_TERMINATION_WITH_CCA and PICS_RO_OCF_SERVICE_TERMINATION_WITH_ASR' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_11());
// 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_OP_11
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
/**
* @desc Verify that the IUT can successfully process Envelope AVP
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_ENVELOPE_REPORTING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing an Envelope-Reporting AVP
* indicating REPORT_ENVELOPES_WITH_VOLUME
* the IUT receives a CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* optionally containing an Envelope-Stop-Time AVP
* containing a CC-Total-Octets AVP
* containing a CC-Input-Octets AVP
* containing a CC-Output-Octets AVP
* optionally containing a CC-Service-Specific-Units AVP
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_12
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
*/
testcase TC_RO_OCF_OP_12() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_ENVELOPE_REPORTING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_ENVELOPE_REPORTING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_12());
// 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_OP_12
/**
* @desc Verify that the IUT can successfully process combinational quota
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_TIME_QUOTA_MECHANISM
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Time-Quota-Mechanism AVP
* containing a Time-Quota-Type AVP
* indicating value Table 3
* containing a Base-Time-Interval AVP
* indicating the length of the base time interval
* optionally containing a Multiple-Services-Credit-Control AVP
* the IUT receives a CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing an Envelope AVP
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_13
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
*/
testcase TC_RO_OCF_OP_13() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_TIME_QUOTA_MECHANISM)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_TIME_QUOTA_MECHANISM' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_13());
// 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_OP_13
/**
* @desc Verify that the IUT can successfully process control of offline charging information
* <pre>
* Pics Selection: PICS_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_QUOTA_CONSUMPTION_TIME and PICS_RO_OCF_ENVELOPE_REPORTING and PICS_RO_OCF_OFFLINE_CHARGING_INFORMATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* }
* then {
* the IUT sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Service-Information AVP
* containing a PS-Information AVP
* containing an Offline-Charging AVP
* contaning a Quota-Consumption-Time AVP or,
* contaning a Time-Quota-Mechanism AVP
* optionally containing an Envelope-Reporting AVP
* indicating REPORT_ENVELOPES_WITH_VOLUME
* }
* }
* </pre>
*
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_OCF_OP_14
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
*/
testcase TC_RO_OCF_OP_14() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ctf;
// Test control
if (not (PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_QUOTA_CONSUMPTION_TIME and PICS_RO_OCF_ENVELOPE_REPORTING and PICS_RO_OCF_OFFLINE_CHARGING_INFORMATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_OCF_IUT and PICS_RO_OCF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_OCF_QUOTA_CONSUMPTION_TIME and PICS_RO_OCF_ENVELOPE_REPORTING and PICS_RO_OCF_OFFLINE_CHARGING_INFORMATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_ctfUp(v_diameterRo_ctf);
// Start
v_diameterRo_ctf.start(f_TC_RO_OCF_OP_14());
// 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_OP_14
}//End of group TP_RO_OCF_Role
//5.2.3.2. CTF Role
group TP_RO_CTF_Role {
/**
* @desc Verify that the IUT can send a CC-Request to indicate a Charging Data Transfer.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to indicate a request for Charging Data Transfer
* }
* then {
* the IUT sends a 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
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_MS_01
*/
testcase TC_RO_CTF_MS_01() runs on DiameterRfRo system TestAdapter {
// Local variables
// Test control
if (not PICS_RO_CTF_IUT) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_MS_01());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
} // End of testcase TC_RO_CTF_MS_01
* @desc Verify that the IUT can send an CC-Request with correct Diameter-Header parameters to indicate a Charging Data Transfer
* with valid Diameter-Header parameters.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT is requested to indicate a request for Charging Data Transfer
* }
* then {
* the IUT sends an CC-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'
* }
* }
* @version 0.0.22
* @see ETSI TS 103 374-2 V0.0.22 (2015-11) TP_RO_CTF_MS_02
*/
testcase TC_RO_CTF_MS_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
// Test control
if (not PICS_RO_CTF_IUT) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_MS_02());
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
} // End of testcase TC_RO_CTF_MS_02
// 5.2.3.2.3 Type of Charging
group TP_RO_CTF_TC {
/**
* @desc Verify that the IUT sends a CC-Request [Event]
* with direct debiting due to Immediate Event Charging.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives a SIP message
* }
* then {
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP).
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_01
pintar
committed
testcase TC_RO_CTF_TC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_01());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
} // End of testcase TC_RO_CTF_TC_01
/**
* @desc Verify that the IUT sends a CC-Request [Event]
* with price enquiry due to Immediate Event Charging.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_02
pintar
committed
testcase TC_RO_CTF_TC_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_02());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
} // End of testcase TC_RO_CTF_TC_02
/**
* @desc Verify that the IUT sends a CC-Request [Event]
* with check balance due to Immediate Event Charging.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK BALANCE.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_03
pintar
committed
testcase TC_RO_CTF_TC_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_03());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
} // End of testcase TC_RO_CTF_TC_03
/**
* @desc Verify that the IUT sends a CC-Request [Event]
* with refund account due to Immediate Event Charging.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating REFUND ACCOUNT
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP).
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_04
pintar
committed
testcase TC_RO_CTF_TC_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_04());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_TC_04
/**
* @desc Verify that the IUT sends a second CC-Request [Event] with refund
* account due to Immediate Event Charging with Refund-Information AVP
* if it was received in the previous CC-Answer.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* the IUT receives 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
* containing a Multiple-Services-Credit-Control AVP
* containing a Refund-Information AVP
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Requested Action AVP
* indicating REFUND ACCOUNT
* containing a Multiple-Services-Credit-Control AVP
* containing a Refund-Information AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_05
pintar
committed
testcase TC_RO_CTF_TC_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_05());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
} // End of testcase TC_RO_CTF_TC_05
/**
* @desc Verify that the IUT sends a CC-Request [Initial]
* to reserve units due to Event Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_06
pintar
committed
testcase TC_RO_CTF_TC_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_06());
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
} // End of testcase TC_RO_CTF_TC_06
/**
* @desc Verify that the IUT sends a CC-Request [Termination]
* to debit units due to Event Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_07
pintar
committed
testcase TC_RO_CTF_TC_07() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_07());
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
} // End of testcase TC_RO_CTF_TC_07
/**
* @desc Verify that the IUT sends a CC-Request [Initial]
* to reserve units due to Session Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_08
pintar
committed
testcase TC_RO_CTF_TC_08() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_08());
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
} // End of testcase TC_RO_CTF_TC_08
/**
* @desc Verify that the IUT sends a CC-Request [Update]
* to debit units due to Session Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_09
pintar
committed
testcase TC_RO_CTF_TC_09() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_09());
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
} // End of testcase TC_RO_CTF_TC_09
/**
* @desc Verify that the IUT sends a CC-Request [Termination]
* to debit units due to Session Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_TC_10
pintar
committed
testcase TC_RO_CTF_TC_10() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
v_diameterRo_ocf.start(f_TC_RO_CTF_TC_10());
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
/**
* @desc Verify that the IUT retransmits an unacknowledged CC-Request (T-flag) with direct debiting.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
* OCF is not available
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* and the IUT does not received the CC-Answer
* }
* then {
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_01
pintar
committed
testcase TC_RO_CTF_EC_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_01());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
} // End of testcase TC_RO_CTF_EC_01
/**
* @desc Verify that the IUT retransmits an unacknowledged CC-Request (T-flag) with price enquiry.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
* OCF is not available
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* and the IUT does not received the CC-Answer
* }
* then {
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_02
pintar
committed
testcase TC_RO_CTF_EC_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_02());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
} // End of testcase TC_RO_CTF_EC_02
/**
* @desc Verify that the IUT retransmits an unacknowledged CC-Request (T-flag).
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* OCF is not available
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* and the IUT does not received the CC-Answer
* }
* then {
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_03
pintar
committed
testcase TC_RO_CTF_EC_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_03());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_EC_03
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
/**
* @desc Verify that the IUT retransmits an unacknowledged CC-Request (T-flag).
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* OCF is not available
* CCR,CCA [Initial] are exchanged.
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* and the IUT does not received the CC-Answer
* }
* then {
* the IUT sends a CC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_04
pintar
committed
testcase TC_RO_CTF_EC_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_04());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
} // End of testcase TC_RO_CTF_EC_04
/**
* @desc Verify that the IUT retransmits an unacknowledged CC-Request (T-flag).
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
* CCR, CCA [Initial] and CCR, CCA [Update] are exchanged and,
* the OCF stops communication with the IUT.
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* and the IUT does not received the CC-Answer
* }
* then {
* the IUT sends a CC-Request
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_05
pintar
committed
testcase TC_RO_CTF_EC_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_05());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
} // End of testcase TC_RO_CTF_EC_05
/**
* @desc Verify that on communication failure, the IUT stores generated accounting data in a non-volatile memory and, on communication restored, sends them to the OCS, in the order they were stored in the buffer
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_DDFH_TERMINATE_OR_BUFFER and not PICS_RO_CTF_FAILOVER
* Initial conditions:
* with {
* the OCF stops communication with the IUT.
* }
* Expected behaviour:
* ensure that {
* when {
* the OCF restart
* and the IUT does not received the CC-Answer
* }
* then {
* the IUT sends the buffered CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* the IUT receives a CC-Answer for each buffered CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_06
pintar
committed
testcase TC_RO_CTF_EC_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_DDFH_TERMINATE_OR_BUFFER) or PICS_RO_CTF_FAILOVER) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_DDFH_TERMINATE_OR_BUFFER and not PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_06());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_EC_06
/**
* @desc Verify that on communication failure, the IUT stores generated accounting data in a non-volatile memory and, on communication restored, sends them to the OCS, in the order they were stored in the buffer
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_DDFH_CONTINUE and not PICS_RO_CTF_FAILOVER
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
* Initial conditions:
* with {
* the OCF stops communication with the IUT.
* }
* Expected behaviour:
* ensure that {
* when {
* the OCF restart
* and the IUT does not received the CC-Answer
* }
* then {
* the IUT sends the buffered CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating REFUND ACCOUNT
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* the IUT receives a CC-Answer for each buffered CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_07
pintar
committed
testcase TC_RO_CTF_EC_07() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_DDFH_CONTINUE) or PICS_RO_CTF_FAILOVER) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_DDFH_CONTINUE and not PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_07());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_EC_07
/**
* @desc Verify that on communication failure, the IUT stores generated accounting data in a non-volatile memory and, on communication restored, sends them to the CDF, in the order they were stored in the buffer
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_DDFH_CONTINUE and not PICS_RO_CTF_FAILOVER
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
* Initial conditions:
* with {
* the OCF stops communication with the IUT.
* }
* Expected behaviour:
* ensure that {
* when {
* the OCF restart
* }
* then {
* the IUT sends the buffered CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_EC_08
pintar
committed
testcase TC_RO_CTF_EC_08() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_DDFH_CONTINUE) or PICS_RO_CTF_FAILOVER) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_DDFH_CONTINUE and not PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_EC_08());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_01(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_EC_08
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
/**
* @desc Verify that the IUT sends a CC-Request [Initial] to reserve units due to Event Charging with Unit Reservation and indicates tariff time change.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION
* Initial conditions:
* with {
* the tariff time change
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* not containing a Tariff-Change-Usage AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Units AVP
* containing a Tariff-Change-Usage AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CH_01
pintar
committed
testcase TC_RO_CTF_CH_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CH_01());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
} // End of testcase TC_RO_CTF_CH_01
/**
* @desc Verify that the IUT sends a CC-Request [Initial] to reserve units due to Event Charging with Unit Reservation and when the IUT receives a CC-Answer with Tariff-Time-Change AVP the IUT accepts it and sends a CC-Request after the SIP session is released.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION
* Initial conditions:
* with {
*
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* not containing a Tariff-Change-Usage AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Units AVP
* containing a Tariff-Change-Usage AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CH_02
pintar
committed
testcase TC_RO_CTF_CH_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CH_02());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_CH_02
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
/**
* @desc Verify that the IUT sends a CC-Request [Initial] to reserve units due to Event Charging with Unit Reservation and when the IUT receives a CC-Answer with Tariff-Time-Change AVP the IUT rejects it and sends a CC-Request with Termination-Cause AVP.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and not PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION
* Initial conditions:
* with {
*
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Units AVP
* containing a Tariff-Change-Usage AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a Termination-Cause AVP
* indicating DIAMETER_BAD_ANSWER
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CH_03
pintar
committed
testcase TC_RO_CTF_CH_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and not(PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION))) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and not PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CH_03());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
} // End of testcase TC_RO_CTF_CH_03
/**
* @desc Verify that the IUT sends a CC-Request [Initial] to reserve units due to Session Charging with Unit Reservation and indicates tariff time change
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION
* Initial conditions:
* with {
* the tariff time change
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* not containing a Tariff-Change-Usage AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Units AVP
* containing a Tariff-Change-Usage AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CH_04
pintar
committed
testcase TC_RO_CTF_CH_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CH_04());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
} // End of testcase TC_RO_CTF_CH_04
/**
* @desc Verify that the IUT sends a CC-Request [Initial] to reserve units due to Session Charging with Unit Reservation and when the IUT receives a CC-Answer with Tariff-Time-Change AVP the IUT accepts it and sends a CC-Request after the SIP session is released
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION
* Initial conditions:
* with {
*
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* not containing a Tariff-Change-Usage AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Units AVP
* containing a Tariff-Change-Usage AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CH_05
pintar
committed
testcase TC_RO_CTF_CH_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CH_05());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
} // End of testcase TC_RO_CTF_CH_05
/**
* @desc Verify that the IUT sends a CC-Request [Initial] to reserve units due to Session Charging with Unit Reservation and when the IUT receives a CC-Answer with Tariff-Time-Change AVP the IUT rejects it and sends a CC-Request with Termination-Cause AVP
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and not PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION
* Initial conditions:
* with {
*
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* containing an Used-Service-Units AVP
* containing a Tariff-Change-Usage AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* containing a Tariff-Time-Change AVP
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a Termination-Cause AVP
* indicating DIAMETER_BAD_ANSWER
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CH_06
pintar
committed
testcase TC_RO_CTF_CH_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and not(PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION))) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and not PICS_RO_CTF_TARIFF_CHANGES_DURING_ACTIVE_SESSION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CH_06());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_CH_06
// 5.2.3.2.6 Re-Authorization
group TP_RO_CTF_RE {
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
/**
* @desc Verify that the IUT sends a CC-Request [Update] to reserve and debit units due to Session Charging with Unit Reservation and when the re-authorization procedure starts the IUT sends appropriate answer after an RA-Request is received
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_RE_AUTHORIZATION
* Initial conditions:
* with {
* CCR,CCA [Initial] are exchanged
* }
* then {
* the IUT receives a SIP message
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing an Used-Service-Units AVP
* the IUT receives a CC-Answer
* the IUT receives an RA-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
* indicating the value 4
* containing a Re-Auth-Request-Type AVP
* indicating AUTHORIZE_ONLY
* the IUT sends an RA-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_RE_01
*/
pintar
committed
testcase TC_RO_CTF_RE_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_RE_AUTHORIZATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_RE_AUTHORIZATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_RE_01());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_RE_01
// 5.2.3.2.7 Failure Handling
group TP_RO_CTF_FH {
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
/**
* @desc Verify that the IUT can successfully override local CCFH values due to Event Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_CCFH_CONTINUE
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends a CC-Request to the primary OCF
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing Credit-Control-Failure-Handling AVP
* indicating CONTINUE
* the primary OCF stops responding
* }
* then {
* the IUT sends a CC-Request to the primary OCF
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT does not receive a CC-Answer
* the IUT sends a CC-Request to the secondary OCF
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Service-Information AVP
* containing an IMS-Information AVP
* containing an Alternate-Charged-Party-Address AVP
* indicating a different OCF server
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_FH_01
*/
pintar
committed
testcase TC_RO_CTF_FH_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf, v_diameterRo_ocf2;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_CCFH_CONTINUE)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_CCFH_CONTINUE' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_FH_01());
v_diameterRo_ocf2.start(f_TC_RO_CTF_FH_01_2ndOCF());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_FH_UE_01(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_FH_CSCF_01(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf)
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
} // End of testcase TC_RO_CTF_FH_01
/**
* @desc Verify that the IUT can successfully override local DDFH value with Direct Debiting.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and (PICS_RO_CTF_DDFH_TERMINATE_OR_BUFFER or PICS_RO_CTF_DDFH_CONTINUE)
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends a CC-Request to the primary OCF
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP)
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing Direct-Debiting-Failure-Handling AVP
* indicating TERMINATE_OR_BUFFER
* the primary OCF stops responding
* }
* then {
* the IUT sends a CC-Request to the primary OCF
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT does not receive a CC-Answer
* the IUT sends a CC-Request to the secondary OCF
* containing Diameter-Header
* containing Command-Flags
* containing T-flag
* indicating value '1'
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_FH_02
*/
pintar
committed
testcase TC_RO_CTF_FH_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf, v_diameterRo_ocf2;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and (PICS_RO_CTF_DDFH_TERMINATE_OR_BUFFER or PICS_RO_CTF_DDFH_CONTINUE))) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and (PICS_RO_CTF_DDFH_TERMINATE_OR_BUFFER or PICS_RO_CTF_DDFH_CONTINUE)' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_FH_02());
v_diameterRo_ocf2.start(f_TC_RO_CTF_FH_02_2ndOCF());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_FH_UE_02(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_FH_CSCF_02(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_FH_02
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
/**
* @desc Verify that on connection failure with the pimary OCF, the IUT sends a CC-Request [Event] to the secondary OCF.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_FAILOVER
* Initial conditions:
* with {
* A secondary OCF is available
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* and the IUT does not received the CC-Answer
* }
* then {
* the sends the CC-Request to the secondary OCF
* containing an CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_FA_01
*/
testcase TC_RO_CTF_FA_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf, v_diameterRo_ocf2;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_FAILOVER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_FA_01());
v_diameterRo_ocf2.start(f_TC_RO_CTF_FA_01_2ndOCF());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_FH_UE_02(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_FH_CSCF_02(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf)
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
} // End of testcase TC_RO_CTF_FA_01
/**
* @desc Verify that on connection restored, the IUT sends a CC-Request [Event] to the primary OCF
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_FAILOVER
* Initial conditions:
* with {
* A secondary OCF is available
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request to the primary OCF
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT does not received the CC-Answer
* the sends the CC-Request to the secondary OCF
* containing an CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* the IUT receives a WC-Request from the primary OCF
* }
* then {
* the sends the CC-Request to the primary OCF
* containing an CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating PRICE_ENQUIRY
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_FA_02
*/
testcase TC_RO_CTF_FA_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf, v_diameterRo_ocf2;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_FAILOVER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING and PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_FA_02());
v_diameterRo_ocf2.start(f_TC_RO_CTF_FA_02_2ndOCF());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_FA_UE_02(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_FA_CSCF_02(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf)
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
} // End of testcase TC_RO_CTF_FA_02
/**
* @desc Verify that on connection failure with the pimary OCF, the IUT sends a CC-Request [Initial] to the secondary OCF.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_FAILOVER
* Initial conditions:
* with {
* The primary OCF is unavailable
* A secondary OCF is available
* }
* Expected behaviour:
* ensure that {
* when {
*
* }
* then {
* the sends the CC-Request to the secondary OCF
* containing an CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK BALANCE
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_FA_03
*/
testcase TC_RO_CTF_FA_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf, v_diameterRo_ocf2;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_FAILOVER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_FA_03());
v_diameterRo_ocf2.start(f_TC_RO_CTF_FA_03_2ndOCF());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf)
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
} // End of testcase TC_RO_CTF_FA_03
/**
* @desc Verify that, on connection restored, the IUT sends a CC-Request [Initial] to the primary OCF.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_FAILOVER
* Initial conditions:
* with {
* A secondary OCF is available
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT sends an CC-Request to the primary OCF
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK_BALANCE
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT does not received the CC-Answer
* the sends the CC-Request to the secondary OCF
* containing an CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK_BALANCE
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* the IUT receives a WC-Request from the primary OCF
* }
* then {
* the sends the CC-Request to the primary OCF
* containing an CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating CHECK_BALANCE
* containing a Multiple-Services-Credit-Control AVP
* containing a Service-Identifier AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Cost-Information AVP
* containing Unit-Value AVP
* containing Value-Digits AVP
* containing Currency-Code AVP
* }
* }
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_FA_04
*/
testcase TC_RO_CTF_FA_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf, v_diameterRo_ocf2;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_FAILOVER)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_EVENT_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_FAILOVER' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_FA_04());
v_diameterRo_ocf2.start(f_TC_RO_CTF_FA_04_2ndOCF());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_FA_UE_02(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_FA_CSCF_02(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_2Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_diameterRo_ocf2, v_imsComponent_ue, v_imsComponent_cscf)
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
} // End of testcase TC_RO_CTF_FA_04
} // End of group TP_RO_CTF_FA
// 5.2.3.2.9 Credit Pooling
group TP_RO_CTF_CP {
/**
* @desc Verify that the IUT sends a CC-Request [Event] with direct debiting due to Immediate Event Charging.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating EVENT_REQUEST
* containing a CC-Request-Number AVP
* containing a Requested-Action AVP
* indicating DIRECT_DEBITING
* containing a Multiple-Services-Credit-Control AVP
* (containing a Requested-Service-Unit AVP and/or
* containing a Service-Identifier AVP).
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CP_01
*/
pintar
committed
testcase TC_RO_CTF_CP_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_IMMEDIATE_EVENT_CHARGING' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_CP_RO_CTF_CP_01());
if (PX_SIPsupport) {
pintar
committed
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_06(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_06(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
} // End of testcase TC_RO_CTF_CP_01
/**
* @desc Verify that the IUT supports independent credit-control of multiple services within a (sub-) session and sends a CC-Request [Initial] to reserve units due to Session Charging with Unit Reservation.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION and PICS_RO_CTF_SUB_SESSION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Indicator AVP
* indicating MULTIPLE_SERVICES_SUPPORTED
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 V0.0.7 (2015-09) TP_RO_CTF_CP_02
*/
pintar
committed
testcase TC_RO_CTF_CP_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
pintar
committed
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' and 'PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_CP_02());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
pintar
committed
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
pintar
committed
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
pintar
committed
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_CP_02
// 5.2.3.2.10 Other Procedures
group TP_RO_CTF_OP {
/**
* @desc Verify that, IUT can return the quotas when the traffic ceases.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Volume-Quota-Threshold AVP
* containing a Granted-Service-Units AVP
* containing a CC-Total-Octets AVP or,
* containing a CC-Input-Octets AVP or,
* containing a CC-Output-Octets AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* accepts the message.
*
* Preamble action: The IUT receives a CCA [Initial] including Quota-Holding-Time AVP indicating a non 0 value and the IUT exchanges some CCR, CCA [Update].
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_01
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
*/
testcase TC_RO_CTF_OP_01() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_01());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_01
/**
* @desc Verify that the IUT does not return the quotas when the traffic ceases.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* not containing a Volume-Quota-Threshold AVP
* not containing a Granted-Service-Units AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* accepts the message.
*
* Preamble action: The IUT receives a CCA [Initial] including Quota-Holding-Time AVP indicating a 0 value and the IUT exchanges some CCR, CCA [Update].
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_02
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
*/
testcase TC_RO_CTF_OP_02() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_02());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_02
/**
* @desc Verify that, IUT can return the quotas when the traffic ceases - Based on IUT local value.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Volume-Quota-Threshold AVP
* containing a Granted-Service-Units AVP
* containing a CC-Total-Octets AVP or,
* containing a CC-Input-Octets AVP or,
* containing a CC-Output-Octets AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* accepts the message.
*
* Preamble action: The IUT receives a CCA [Initial] not including Quota-Holding-Time AVP and the IUT exchanges some CCR, CCA [Update].
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_03
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
*/
testcase TC_RO_CTF_OP_03() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_03());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_03
/**
* @desc Verify that the IUT supports a credit re-authorization and returns an appropriate RA-Answer.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* sends a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Trigger AVP
* containing a Trigger-Type AVP
* the IUT receives an RA-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
* indicating the value 4
* containing a Re-Auth-Request-Type AVP
* indicating AUTHORIZE_ONLY
* the IUT sends an RA-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
*
* Preamble action: CCR, CCA [Initial] and CCR, CCA [Update] are exchanged.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_04
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
*/
testcase TC_RO_CTF_OP_04() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_04());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_04
/**
* @desc Verify that the IUT can return the reporting quota usage in a Multiple-Services-Credit-Control AVP (Table 4).
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Reporting-Reason AVP (Table 4)
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* accepts the message.
*
* Preamble action: CCR, CCA [Initial] and CCR, CCA [Update] are exchanged.
*
* Table4:
* TP variants Reporting-Reason AVP values:
* VA_01 QHT (1)
* VA_02 FINAL (2)
* VA_03 VALIDITY_TIME (4)
* VA_04 FORCED_REAUTHORISATION (7)
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_05
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
*/
testcase TC_RO_CTF_OP_05() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_05());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_05
/**
* @desc Verify that the IUT can return the reporting quota usage in
* a Multiple-Services-Credit-Control AVP - RATING_CONDITION_CHANGE (6).
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Reporting-Reason AVP
* indicating RATING_CONDITION_CHANGE
* containing a Trigger AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* accepts the message.
*
* Preamble action: CCR, CCA [Initial] and CCR, CCA [Update] are exchanged.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_06
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
*/
testcase TC_RO_CTF_OP_06() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_06());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_06
/**
* @desc Verify that the IUT can return the reporting quota usage in a Used-Service-Unit AVP (Table 5).
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* containing a Reporting-Reason AVP (Table 5)
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* accepts the message.
*
* Preamble action: CCR, CCA [Initial] and CCR, CCA [Update] are exchanged.
*
* Table 5:
* TP variants Reporting-Reason AVP values:
* VA_01 THRESHOLD (0)
* VA_02 QUOTA_EXHAUSTED (3)
* VA_03 OTHER_QUOTA_TYPE (5)
* VA_04 POOL_EXHAUSTED (8)
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_07
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
*/
testcase TC_RO_CTF_OP_07() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_07());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_07
/**
* @desc Verify that the IUT can process termination action.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* on receipt a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Final-Unit-Indication AVP
* containing a Final-Unit-Action AVP
* indicating TERMINATE
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* and the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* accepts the message.
*
* Preamble action: CCR, CCA [Initial] are exchanged.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_08
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
*/
testcase TC_RO_CTF_OP_08() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_08());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_08
/**
* @desc Verify that the IUT can process termination action after redirection.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Final-Unit-Indication AVP
* containing a Final-Unit-Action AVP
* indicating REDIRECT
* containing Redirect-Server AVP
* containing Redirect-Address-Type AVP
* containing Redirect-Server-Address AVP
* optionally containing Restriction-Filter-Rule AVP
* optionally containing Filter-Id AVP AVP
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* indicatng User B
* and the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* indicatng User B
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* indicatng User C
* and the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* indicatng User C
* accepts the message.
*
* Preamble action: CCR, CCA [Initial] are exchanged
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_09
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
*/
testcase TC_RO_CTF_OP_09() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_09());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_09
/**
* @desc Verify that the IUT can process quota consumption time.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Units AVP
* containing a CC-Time AVP
* containing a Quota-Consumption-Time AVP
* indicating a period equal to the Quota Consumption Time
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_10
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
*/
testcase TC_RO_CTF_OP_10() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_10());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_10
/**
* @desc Verify that the IUT can successfully terminate sessions on a CCR, CCA [Update] exchange.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-AUTHORIZATION-REJECTED
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* and the IUT receives a CC-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* accepts the message.
*
* Preamble action: CCR,CCA [Initial] are exchanged.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_11
*/
testcase TC_RO_CTF_OP_11() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_11());
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_11
/**
* @desc Verify that the IUT can successfully terminate session on an ASR, ASA exchange.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* the IUT receives 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 AS-Answer
* containing a Session-ID AVP
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* not containing an Experimental-Result AVP
* containing an Origin-Host AVP
* containing an Origin-Realm AVP
* and sends a CC-Request
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* containing a CC-Request-Number AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-AUTHORIZATION-REJECTED
* containing a CC-Request-Type AVP
* indicating TERMINATION_REQUEST
* accepts the message.
*
* Preamble action: CCR,CCA [Initial] and CCR,CCA [Update] are exchanged.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_12
*/
testcase TC_RO_CTF_OP_12() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_12());
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_12
/**
* @desc Verify that the IUT can successfully process Envelope-Reporting AVP [DO_NOT_REPORT_ENVELOPES].
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing an Envelope-Reporting AVP
* indicating DO_NOT_REPORT_ENVELOPES
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* not containing an Envelope AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_13
*/
testcase TC_RO_CTF_OP_13() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_13());
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_13
/**
* @desc Verify that the IUT can successfully process Envelope-Reporting AVP [REPORT_ENVELOPES].
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing an Envelope-Reporting AVP
* indicating REPORT_ENVELOPES
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* optionally containing an Envelope-Stop-Time AVP
* optionally containing a CC-Total-Octets AVP
* optionally containing a CC-Input-Octets AVP
* optionally containing a CC-Output-Octets AVP
* optionally containing a CC-Service-Specific-Units AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_14
*/
testcase TC_RO_CTF_OP_14() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_14());
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_14
/**
* @desc Verify that the IUT can successfully process
* Envelope-Reporting AVP [REPORT_ENVELOPES_WITH_VOLUME].
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing an Envelope-Reporting AVP
* indicating REPORT_ENVELOPES_WITH_VOLUME
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* optionally containing an Envelope-Stop-Time AVP
* containing a CC-Total-Octets AVP
* containing a CC-Input-Octets AVP
* containing a CC-Output-Octets AVP
* not containing a CC-Service-Specific-Units AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_15
*/
testcase TC_RO_CTF_OP_15() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_15());
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_15
/**
* @desc Verify that the IUT can successfully process
* Envelope-Reporting AVP [REPORT_ENVELOPES_WITH_EVENT].
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing an Envelope-Reporting AVP
* indicating REPORT_ENVELOPES_WITH_EVENT
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* optionally containing an Envelope-Stop-Time AVP
* not containing a CC-Total-Octets AVP
* not containing a CC-Input-Octets AVP
* not containing a CC-Output-Octets AVP
* not containing a CC-Service-Specific-Units AVP
* containing an Event AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_16
*/
testcase TC_RO_CTF_OP_16() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_16());
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_16
/**
* @desc Verify that the IUT can successfully process
* Envelope-Reporting AVP [REPORT_ENVELOPES_WITH_VOLUME_AND_EVENT].
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing an Envelope-Reporting AVP
* indicating REPORT_ENVELOPES_WITH_VOLUME_AND_EVENT
* the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Used-Service-Unit AVP
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* optionally containing an Envelope-Stop-Time AVP
* containing a CC-Total-Octets AVP
* containing a CC-Input-Octets AVP
* containing a CC-Output-Octets AVP
* containing a CC-Service-Specific-Units AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_17
*/
testcase TC_RO_CTF_OP_17() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_17());
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_17
/**
* @desc Verify that the IUT can successfully process combinational quota.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Time-Quota-Mechanism AVP
* containing a Time-Quota-Type AVP
* indicating Table 6
* containing a Base-Time-Interval AVP
* indicating the length of the base time interval
* optionally containing a Multiple-Services-Credit-Control AVP
* the IUT sends a CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing an Envelope AVP.
*
* TP variants Reporting-Reason AVP values:
* VA_01 DISCRETE_TIME_PERIOD (0)
* VA_02 CONTINUOUS_TIME_PERIOD (1)
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_18
*/
testcase TC_RO_CTF_OP_18() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_18());
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_18
/**
* @desc Verify that the IUT can successfully process combinational quota – DTP algorithm.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Time-Quota-Mechanism AVP
* containing a Time-Quota-Type AVP
* indicating DTP_VALUE
* containing a Base-Time-Interval AVP
* indicating the length of the base time interval
* containing a Quota-Consumption-Time AVP
* indicating a period equal to the Quota Consumption Time
* optionally containing a Multiple-Services-Credit-Control AVP
* the IUT sends a CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* containing an Envelope-Stop-Time AVP
* indicating a delta time equala to DTP_VALUE
* optionally containing a CC-Total-Octets AVP
* optionally containing a CC-Input-Octets AVP
* optionally containing a CC-Output-Octets AVP
* optionally containing a CC-Service-Specific-Unit AVP.
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_19
*/
testcase TC_RO_CTF_OP_19() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_19());
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_19
/**
* @desc Verify that the IUT can successfully process combinational quota – CTP algorithm.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Time-Quota-Mechanism AVP
* containing a Time-Quota-Type AVP
* indicating CTP_VALUE
* containing a Base-Time-Interval AVP
* indicating the length of the base time interval
* containing a Quota-Consumption-Time AVP
* indicating a period equal to the Quota Consumption Time
* optionally containing a Multiple-Services-Credit-Control AVP
* the IUT sends a CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing an Envelope AVP
* containing an Envelope-Start-Time AVP
* containing an Envelope-Stop-Time AVP
* not indicating a delta time equala to CTP_VALUE
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_20
*/
testcase TC_RO_CTF_OP_20() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_20());
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_20
/**
* @desc Verify that the IUT can successfully process combinational
* quota when Quota-Consumption-Time AVP is present.
* <pre>
* Pics Selection: PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION
* Initial conditions:
* with {
*
* }
* Expected behaviour:
* ensure that the IUT sends a CC-Request
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a CC-Request-Number AVP
* containing a Multiple-Services-Credit-Control AVP
* containing a Requested-Service-Unit AVP
* the IUT receives a CC-Answer
* containing a Result-Code AVP
* indicating DIAMETER-SUCCESS
* containing a CC-Request-Type AVP
* indicating INITIAL_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Time-Quota-Mechanism AVP
* containing a Time-Quota-Type AVP
* indicating Table 7
* containing a Base-Time-Interval AVP
* indicating the length of the base time interval
* containing a Quota-Consumption-Time AVP
* indicating a period equal to the Quota Consumption Time
* optionally containing a Multiple-Services-Credit-Control AVP
* the IUT sends a CC-Request
* containing a Result-Code AVP
* indicating DIAMETER_SUCCESS
* containing a CC-Request-Type AVP
* indicating UPDATE_REQUEST
* containing a Multiple-Services-Credit-Control AVP
* containing a Granted-Service-Unit AVP
* indicating reserved units
* containing an Envelope AVP.
*
* Table 7
* TP variants Reporting-Reason AVP values:
* VA_01 DISCRETE_TIME_PERIOD (0)
* VA_02 CONTINUOUS_TIME_PERIOD (1)
* </pre>
*
* @version 0.0.7
* @see ETSI TS 103 374-2 (2015-11) TP_RO_CTF_OP_21
*/
testcase TC_RO_CTF_OP_21() runs on DiameterRfRo system TestAdapter {
// Local variables
var DiameterRfRo v_diameterRo_ocf;
var ImsComponent v_imsComponent_ue;
var ImsComponent v_imsComponent_cscf;
var CSeq p_cSeq_s := {fieldName := CSEQ_E, seqNumber := 1000, method := "REGISTER"};
// Test control
if (not (PICS_RO_CTF_IUT and PICS_RO_CTF_SESSION_CHARGING_WITH_UNIT_RESERVATION)) {
log("*** " & __SCOPE__ & ": ERROR: 'PICS_RO_CTF_IUT' shall be set to true for executing the TC. ***");
stop;
}
// Test component configuration
f_cf_1Ro_1Gm_1Mw_ocfUp(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf);
// Start
v_diameterRo_ocf.start(f_TC_RO_CTF_OP_21());
if (PX_SIPsupport) {
v_imsComponent_ue.start(f_TC_RO_CTF_TC_UE_08(p_cSeq_s));
v_imsComponent_cscf.start(f_TC_RO_CTF_TC_CSCF_08(p_cSeq_s));
}
// synchronize PTC on 1 sychronization points
f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_sync1, c_sync2, c_tbDone, c_poDone});
f_cf_1Ro_1Gm_1Mw_ocfDown(v_diameterRo_ocf, v_imsComponent_ue, v_imsComponent_cscf)
} // End of testcase TC_RO_CTF_OP_21
} // End of module DiameterRfRo_TestCases