summaryrefslogtreecommitdiffstats
path: root/bsc/BSC_Tests.ttcn
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-07-11 17:01:05 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2018-07-11 17:34:19 +0200
commit3e2af5d4d7648b68ad122cf714a0b32b948dcf54 (patch)
tree40e711af577899b40705cdf53aa681e6e839406a /bsc/BSC_Tests.ttcn
parentb2422355511bd1276e886018e8f490ba5be31844 (diff)
BSC_Tests: count MGCP operations in as_media
as_media handles the MGCP interaction for most of the tests. However, it does not make sure if transactions are missing or if too many transactions are performed (e.g. if an SCCP-Lite tests still creates the connections pointing to the core network, even if they must not created by the BSC in this case). So lets make sure that the MGCP transactions are performed as expected by counting them. - Add counters to count CRCX and MDCX transactions - Check those counters after call establishment and handover Change-Id: Ib073b097a840ca3a8ee99c4ed41f59f574191d98 Related: OS#3292
Diffstat (limited to 'bsc/BSC_Tests.ttcn')
-rw-r--r--bsc/BSC_Tests.ttcn11
1 files changed, 10 insertions, 1 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 149d5b7..2897a0b 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -2122,10 +2122,19 @@ private function f_tc_ho_int(charstring id) runs on MSC_ConnHdlr {
f_vty_handover(0, 0, g_chan_nr, 1);
/* temporarily suspend DChan processing on BTS1 to avoid race with RSLEM_register */
f_rslem_suspend(RSL1_PROC);
+
+ /* From the MGW perspective, a handover is is characterized by
+ * performing one MDCX operation with the MGW. So we expect to see
+ * one more MDCX during handover. */
+ g_media.mgcp_conn[0].mdcx_seen_exp := g_media.mgcp_conn[0].crcx_seen_exp + 1;
+
alt {
[] as_handover(hs);
- /* FIXME: somehow determine that the hand-over has completed, by MGCP MDCX? */
}
+
+ /* Check the amount of MGCP transactions is still consistant with the
+ * test expectation */
+ f_check_mgcp_expectations()
}
testcase TC_ho_int() runs on test_CT {