diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index a0d3fef9a..ef1e3cab5 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -2863,6 +2863,24 @@ private function f_tc_stat_num_bts_connected_msc_connhdlr(integer expect_num_bts { name := "TTCN3.bsc.0.num_trx.rsl_connected", mtype := "g", min := num_trx_connected, max := num_trx_connected }, { name := "TTCN3.bsc.0.num_trx.total", mtype := "g", min := NUM_TRX_CFG, max := NUM_TRX_CFG } }; + for (var integer i := 0; i < NUM_BTS_CFG; i := i + 1) { + /* We always connect OML for BTS 0..2 */ + var integer oml_connected := 0; + if (i < NUM_BTS) { + oml_connected := 1; + } + expect[lengthof(expect)] := { + name := "TTCN3.bts." & int2str(i) & ".oml_connected", mtype := "g", + min := oml_connected, max := oml_connected }; + + var integer rsl_connected := 0; + if (i < expect_num_bts_connected) { + rsl_connected := BTS_NUM_TRX[i]; + } + expect[lengthof(expect)] := { + name := "TTCN3.bts." & int2str(i) & ".rsl_connected", mtype := "g", + min := rsl_connected, max := rsl_connected }; + } f_statsd_expect(expect); }