Introduce test TC_force_two_phase_access
Change-Id: Icce25b5d113eb5b37ec1e5b6c6c14aacdb01cd8d
This commit is contained in:
parent
42acafc9b8
commit
0c0bf8731b
|
@ -137,6 +137,7 @@ type component RAW_PCU_Test_CT extends bssgp_CT {
|
||||||
var uint8_t g_mcs_max_ul := 9;
|
var uint8_t g_mcs_max_ul := 9;
|
||||||
|
|
||||||
var boolean g_egprs_only := false;
|
var boolean g_egprs_only := false;
|
||||||
|
var boolean g_force_two_phase_access := false;
|
||||||
|
|
||||||
/* Guard timeout */
|
/* Guard timeout */
|
||||||
timer g_T_guard := 60.0;
|
timer g_T_guard := 60.0;
|
||||||
|
@ -190,6 +191,12 @@ private function f_init_vty(charstring id) runs on RAW_PCU_Test_CT {
|
||||||
} else {
|
} else {
|
||||||
f_vty_config2(PCUVTY, {"pcu"}, "no egprs");
|
f_vty_config2(PCUVTY, {"pcu"}, "no egprs");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_force_two_phase_access) {
|
||||||
|
f_vty_config2(PCUVTY, {"pcu"}, "two-phase-access");
|
||||||
|
} else {
|
||||||
|
f_vty_config2(PCUVTY, {"pcu"}, "no two-phase-access");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function f_init_raw(charstring id, template (value) PCUIF_info_ind info_ind := ts_PCUIF_INFO_default)
|
function f_init_raw(charstring id, template (value) PCUIF_info_ind info_ind := ts_PCUIF_INFO_default)
|
||||||
|
@ -1497,6 +1504,12 @@ runs on RAW_PCU_Test_CT {
|
||||||
var CodingScheme cs_mcs;
|
var CodingScheme cs_mcs;
|
||||||
/* 0111 0xxx: Single block packet access; one block period on a PDCH is needed for two phase packet access or other RR signalling purpose. */
|
/* 0111 0xxx: Single block packet access; one block period on a PDCH is needed for two phase packet access or other RR signalling purpose. */
|
||||||
var uint16_t ra := oct2int('70'O);
|
var uint16_t ra := oct2int('70'O);
|
||||||
|
if (g_force_two_phase_access) {
|
||||||
|
/* If 2phase access is enforced by the network, then let's
|
||||||
|
request a One phase packet access, we'll receive a single block
|
||||||
|
anyway */
|
||||||
|
ra := bit2int(chan_req_def);
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize NS/BSSGP side */
|
/* Initialize NS/BSSGP side */
|
||||||
f_init_bssgp();
|
f_init_bssgp();
|
||||||
|
@ -1592,6 +1605,21 @@ testcase TC_mo_ping_pong_with_ul_racap_egprs_only() runs on RAW_PCU_Test_CT {
|
||||||
f_TC_mo_ping_pong_2phase_access(ms_racap, exp_ul_cs_mcs, exp_dl_cs_mcs);
|
f_TC_mo_ping_pong_2phase_access(ms_racap, exp_ul_cs_mcs, exp_dl_cs_mcs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testcase TC_force_two_phase_access() runs on RAW_PCU_Test_CT {
|
||||||
|
/* Configure PCU to force two phase access */
|
||||||
|
g_force_two_phase_access := true;
|
||||||
|
|
||||||
|
var MultislotCap_GPRS mscap_gprs := {
|
||||||
|
gprsmultislotclass := '00011'B,
|
||||||
|
gprsextendeddynalloccap := '0'B
|
||||||
|
};
|
||||||
|
var MSRadioAccessCapabilityV ms_racap := { valueof(ts_RaCapRec('0001'B /* E-GSM */, mscap_gprs, omit)) };
|
||||||
|
var CodingScheme exp_ul_cs_mcs := f_rlcmac_block_int2cs_mcs(g_mcs_initial_ul, false);
|
||||||
|
var CodingScheme exp_dl_cs_mcs := CS_2;
|
||||||
|
|
||||||
|
f_TC_mo_ping_pong_2phase_access(ms_racap, exp_ul_cs_mcs, exp_dl_cs_mcs);
|
||||||
|
}
|
||||||
|
|
||||||
/* Test scenario where SGSN wants to send some data against MS and it is
|
/* Test scenario where SGSN wants to send some data against MS and it is
|
||||||
* answered by the MS on PDCH, so TBFs for downlink and later for uplink are created.
|
* answered by the MS on PDCH, so TBFs for downlink and later for uplink are created.
|
||||||
*/
|
*/
|
||||||
|
@ -2135,6 +2163,7 @@ control {
|
||||||
execute( TC_t3193() );
|
execute( TC_t3193() );
|
||||||
execute( TC_mo_ping_pong() );
|
execute( TC_mo_ping_pong() );
|
||||||
execute( TC_mo_ping_pong_with_ul_racap() );
|
execute( TC_mo_ping_pong_with_ul_racap() );
|
||||||
|
execute( TC_force_two_phase_access() );
|
||||||
execute( TC_mt_ping_pong() );
|
execute( TC_mt_ping_pong() );
|
||||||
execute( TC_mt_ping_pong_with_dl_racap() );
|
execute( TC_mt_ping_pong_with_dl_racap() );
|
||||||
execute( TC_imm_ass_dl_block_retrans() );
|
execute( TC_imm_ass_dl_block_retrans() );
|
||||||
|
|
Loading…
Reference in New Issue