// This C++ source file was generated by the TTCN-3 compiler // of the TTCN-3 Test Executor version 11.1.0 // The generation of user and time information were disabled by the -D flag. // Copyright (c) 2000-2025 Ericsson Telecom AB // Do not edit this file unless you know what you are doing. /* Including header files */ #include "BTS_Tests_OML.hh" namespace BTS__Tests__OML { /* Literal string constants */ const unsigned char bs_0_bits[] = { 1 }; extern const BITSTRING bs_0(1, bs_0_bits); const unsigned char os_11_octets[] = { 0 }, os_8_octets[] = { 1, 2, 3, 4 }, os_1_octets[] = { 1, 32 }, os_2_octets[] = { 10 }, os_7_octets[] = { 16, 128, 0, 10, 13, 99, 111, 109, 46, 105, 112, 97, 99, 99, 101, 115, 115, 0, 224, 4, 0, 0, 255, 133, 0, 129, 11, 187 }, os_10_octets[] = { 128, 128, 0, 7, 105, 1, 0, 255, 255, 4, 1, 4, 2 }, os_6_octets[] = { 128, 128, 0, 9, 71, 3, 0, 0, 0, 13, 7, 64, 0 }, os_9_octets[] = { 128, 128, 0, 9, 105, 1, 0, 255, 255, 4, 1 }, os_5_octets[] = { 128, 128, 0, 12, 68, 2, 0, 0, 255, 45, 0, 5, 0, 2, 0, 123 }, os_3_octets[] = { 128, 128, 0, 13, 97, 1, 0, 255, 255, 36, 1, 7, 0, 1, 7, 4, 1 }, os_4_octets[] = { 128, 128, 0, 51, 65, 1, 0, 255, 255, 25, 85, 91, 97, 103, 109, 115, 24, 6, 14, 0, 2, 1, 16, 51, 30, 36, 36, 168, 52, 33, 168, 31, 63, 37, 0, 1, 10, 12, 30, 11, 100, 42, 10, 43, 3, 232, 10, 128, 35, 10, 8, 0, 123, 9, 32 }; extern const OCTETSTRING os_0(0, NULL), os_11(1, os_11_octets), os_8(4, os_8_octets), os_1(2, os_1_octets), os_2(1, os_2_octets), os_7(28, os_7_octets), os_10(13, os_10_octets), os_6(13, os_6_octets), os_9(11, os_9_octets), os_5(16, os_5_octets), os_3(17, os_3_octets), os_4(55, os_4_octets); extern const CHARSTRING cs_2(0, NULL), cs_1(8, "-OML-IPA"), cs_0(9, "127.0.0.1"), cs_5('?'), cs_7(26, "BTS GetAttributes Response"), cs_3(18, "BTS_Tests_OML.ttcn"), cs_15(20, "Change ADM State ACK"), cs_12(13, "ESTABLISH_TEI"), cs_6(20, "Failure Event Report"), cs_28(14, "TC_bts_opstart"), cs_29(21, "TC_bts_opstart_noattr"), cs_32(24, "TC_initial_state_reports"), cs_34(23, "TC_ipa_osmo_pcu_anr_fwd"), cs_33(23, "TC_ipa_rsl_connect_nack"), cs_14(14, "TC_long_length"), cs_8(14, "TC_oml_nothing"), cs_26(24, "TC_radio_carrier_opstart"), cs_27(31, "TC_radio_carrier_opstart_noattr"), cs_13(15, "TC_short_length"), cs_30(13, "TC_ts_opstart"), cs_31(20, "TC_ts_opstart_noattr"), cs_23(15, "TC_wrong_bts_nr"), cs_9(14, "TC_wrong_mdisc"), cs_11(16, "TC_wrong_msgtype"), cs_22(18, "TC_wrong_obj_class"), cs_16(18, "TC_wrong_placement"), cs_20(12, "TC_wrong_seq"), cs_24(15, "TC_wrong_trx_nr"), cs_25(14, "TC_wrong_ts_nr"), cs_4(32, "Timeout waiting for PCU INFO_IND"), cs_10(34, "Unexpected response to MMI message"), cs_17(38, "Unexpected response to PLACEMENT_FIRST"), cs_19(37, "Unexpected response to PLACEMENT_LAST"), cs_18(39, "Unexpected response to PLACEMENT_MIDDLE"), cs_21(36, "Unexpected response to sequence != 0"); const unsigned char module_checksum[] = { 0x8d, 0x89, 0x0c, 0x0a, 0x79, 0xad, 0x3d, 0x79, 0x63, 0x1a, 0x49, 0x3e, 0xf8, 0x27, 0xd6, 0x0e }; /* Global variable definitions */ INTEGER const_NUM__TRX; const INTEGER& NUM__TRX = const_NUM__TRX; // No XER for ArfcnList const TTCN_Typedescriptor_t ArfcnList_descr_ = { "@BTS_Tests_OML.ArfcnList", NULL, NULL, NULL, NULL, NULL, NULL, NULL, &Osmocom__Types::uint16__t_descr_, TTCN_Typedescriptor_t::DONTCARE }; const XERdescriptor_t ArfcnList_0_xer_ = { {"uint16_t>\n", "uint16_t>\n"}, {10, 10}, 0 |FORM_UNQUALIFIED, WHITESPACE_PRESERVE, NULL, &module_object, -1, 0, NULL, NULL, -1, XSD_NONE }; const TTCN_OERdescriptor_t ArfcnList_0_oer_ = { -1, FALSE, -1, FALSE, 0, 0, NULL, 0, NULL }; const TTCN_Typedescriptor_t ArfcnList_0_descr_ = { "@BTS_Tests_OML.ArfcnList.", &INTEGER_ber_, &Osmocom__Types::uint16__t_raw_, &INTEGER_text_, &ArfcnList_0_xer_, &INTEGER_json_, &ArfcnList_0_oer_, NULL, NULL, TTCN_Typedescriptor_t::DONTCARE }; UNIVERSAL_CHARSTRING ArfcnList_0_default_coding("RAW"); CHARSTRING modulepar_mp__oml__ip; const CHARSTRING& mp__oml__ip = modulepar_mp__oml__ip; INTEGER modulepar_mp__oml__port; const INTEGER& mp__oml__port = modulepar_mp__oml__port; ArfcnList modulepar_mp__arfcn; const ArfcnList& mp__arfcn = modulepar_mp__arfcn; AbisOML__Types::OML__FOM__InterfLevBoundaries modulepar_mp__interf__bound; const AbisOML__Types::OML__FOM__InterfLevBoundaries& mp__interf__bound = modulepar_mp__interf__bound; AbisOML__Types::OML__FOM__T200 modulepar_mp__t200; const AbisOML__Types::OML__FOM__T200& mp__t200 = modulepar_mp__t200; INTEGER modulepar_mp__max__ta; const INTEGER& mp__max__ta = modulepar_mp__max__ta; INTEGER modulepar_mp__load__threshold; const INTEGER& mp__load__threshold = modulepar_mp__load__threshold; INTEGER modulepar_mp__load__ind__period; const INTEGER& mp__load__ind__period = modulepar_mp__load__ind__period; INTEGER modulepar_mp__rach__b__thresh; const INTEGER& mp__rach__b__thresh = modulepar_mp__rach__b__thresh; INTEGER modulepar_mp__loadavg__slots; const INTEGER& mp__loadavg__slots = modulepar_mp__loadavg__slots; INTEGER modulepar_mp__air__timer; const INTEGER& mp__air__timer = modulepar_mp__air__timer; INTEGER modulepar_mp__ny1; const INTEGER& mp__ny1 = modulepar_mp__ny1; INTEGER modulepar_mp__bsic; const INTEGER& mp__bsic = modulepar_mp__bsic; CHARSTRING modulepar_mp__pcu__socket; const CHARSTRING& mp__pcu__socket = modulepar_mp__pcu__socket; const TTCN_Typedescriptor_t& BSC__OML__CT_descr_ = COMPONENT_descr_; COMPONENT BSC__OML__CT_component_vc__IPA__OML; IPA__Emulation::IPA__OML__PT BSC__OML__CT_component_OML("OML"); INTEGER BSC__OML__CT_component_g__bts__nr; IPA__Emulation::IPA__OSMO__PCU__PT BSC__OML__CT_component_IPA__OSMO__PCU("IPA_OSMO_PCU"); PCUIF__CodecPort::PCUIF__CODEC__PT BSC__OML__CT_component_PCU("PCU"); INTEGER BSC__OML__CT_component_g__pcu__conn__id; PCUIF__Types::PCUIF__Message BSC__OML__CT_component_g__pcu__last__info; BITSTRING BSC__OML__CT_component_g__bts__features; TIMER BSC__OML__CT_component_T__oml__guard("T_oml_guard", 6.0e1); BOOLEAN const_f__oml__opstart_exp__fail_defval; const BOOLEAN& f__oml__opstart_exp__fail_defval = const_f__oml__opstart_exp__fail_defval; AbisOML__Types::OML__FOM__OperationalState_template template_f__oml__opstart_exp__stchg_defval; const AbisOML__Types::OML__FOM__OperationalState_template& f__oml__opstart_exp__stchg_defval = template_f__oml__opstart_exp__stchg_defval; BOOLEAN const_f__oml__chg__adm__st_exp__fail_defval; const BOOLEAN& f__oml__chg__adm__st_exp__fail_defval = const_f__oml__chg__adm__st_exp__fail_defval; FLOAT const_f__oml__send__exp__no__resp_tout_defval; const FLOAT& f__oml__send__exp__no__resp_tout_defval = const_f__oml__send__exp__no__resp_tout_defval; AbisOML__Types::OML__FOM__EventType_template template_f__oml__send__exp__fail__rep_evt_defval; const AbisOML__Types::OML__FOM__EventType_template& f__oml__send__exp__fail__rep_evt_defval = template_f__oml__send__exp__fail__rep_evt_defval; AbisOML__Types::OML__FOM__Severity_template template_f__oml__send__exp__fail__rep_severity_defval; const AbisOML__Types::OML__FOM__Severity_template& f__oml__send__exp__fail__rep_severity_defval = template_f__oml__send__exp__fail__rep_severity_defval; AbisOML__Types::OML__FOM__ProbableCause_template template_f__oml__send__exp__fail__rep_cause_defval; const AbisOML__Types::OML__FOM__ProbableCause_template& f__oml__send__exp__fail__rep_cause_defval = template_f__oml__send__exp__fail__rep_cause_defval; FLOAT const_f__oml__send__exp__fail__rep_tout_defval; const FLOAT& f__oml__send__exp__fail__rep_tout_defval = const_f__oml__send__exp__fail__rep_tout_defval; FLOAT const_f__oml__send__exp__nack_tout_defval; const FLOAT& f__oml__send__exp__nack_tout_defval = const_f__oml__send__exp__nack_tout_defval; AbisOML__Types::OML__PDU_template template_f__oml__getattr_exp__rx_defval; const AbisOML__Types::OML__PDU_template& f__oml__getattr_exp__rx_defval = template_f__oml__getattr_exp__rx_defval; TTCN_Module module_object("BTS_Tests_OML", __DATE__, __TIME__, module_checksum, pre_init_module, NULL, 0U, 4294967295U, 4294967295U, 4294967295U, NULL, 0LU, 0, post_init_module, set_module_param, NULL, log_module_param, init_comp_type, init_system_port, start_ptc_function, module_control_part); const RuntimeVersionChecker ver_checker( current_runtime_version.requires_major_version_11, current_runtime_version.requires_minor_version_1, current_runtime_version.requires_patch_level_0, current_runtime_version.requires_runtime_1); /* Member functions of C++ classes */ as__Tguard_Default::as__Tguard_Default() : Default_Base("as_Tguard") { } alt_status as__Tguard_Default::call_altstep(boolean first_alt_run) { return as__Tguard_instance(first_alt_run); } as__SwAct_Default::as__SwAct_Default() : Default_Base("as_SwAct") { } alt_status as__SwAct_Default::call_altstep(boolean first_alt_run) { return as__SwAct_instance(first_alt_run); } as__IPA__evt_Default::as__IPA__evt_Default() : Default_Base("as_IPA_evt") { } alt_status as__IPA__evt_Default::call_altstep(boolean first_alt_run) { return as__IPA__evt_instance(first_alt_run); } /* Bodies of functions, altsteps and testcases */ alt_status as__Tguard_instance(boolean first_alt_run) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 80, TTCN_Location::LOCATION_ALTSTEP, "as_Tguard"); alt_status ret_val = ALT_NO; current_location.update_lineno(81); /* BTS_Tests_OML.ttcn, line 81 */ switch (BSC__OML__CT_component_T__oml__guard.timeout(NULL)) { case ALT_YES: { current_location.update_lineno(82); /* BTS_Tests_OML.ttcn, line 82 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Timeout of T_guard"),TTCN_Logger::end_event_log2str())); current_location.update_lineno(83); /* BTS_Tests_OML.ttcn, line 83 */ TTCN_Runtime::stop_component(MTC_COMPREF); } case ALT_MAYBE: ret_val = ALT_MAYBE; default: break; } return ret_val; } void as__Tguard(boolean nodefault_modifier) { altstep_begin: boolean block_flag = FALSE; alt_status altstep_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; for ( ; ; ) { TTCN_Snapshot::take_new(block_flag); if (altstep_flag != ALT_NO) { altstep_flag = as__Tguard_instance(!block_flag); if (altstep_flag == ALT_YES || altstep_flag == ALT_BREAK) return; else if (altstep_flag == ALT_REPEAT) goto altstep_begin; } if (!nodefault_modifier && default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(!block_flag); if (default_flag == ALT_YES || default_flag == ALT_BREAK) return; else if (default_flag == ALT_REPEAT) goto altstep_begin; } if (altstep_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in altstep as_Tguard."); else block_flag = TRUE; } } Default_Base *activate_as__Tguard() { return new as__Tguard_Default(); } alt_status as__SwAct_instance(boolean first_alt_run) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 87, TTCN_Location::LOCATION_ALTSTEP, "as_SwAct"); current_location.update_lineno(88); /* BTS_Tests_OML.ttcn, line 88 */ AbisOML__Types::OML__PDU rx; alt_status ret_val = ALT_NO; current_location.update_lineno(89); /* BTS_Tests_OML.ttcn, line 89 */ switch (BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__SwActivatedRep(AbisOML__Types::OML__FOM__ObjectClass_template(ANY_VALUE), AbisOML__Types::OML__FOM__ObjectInstance_template(ANY_VALUE)), NULL, any_compref, NULL, NULL, NULL)) { case ALT_YES: return ALT_YES; case ALT_MAYBE: ret_val = ALT_MAYBE; default: break; } current_location.update_lineno(90); /* BTS_Tests_OML.ttcn, line 90 */ switch (BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__SwActReq(AbisOML__Types::OML__FOM__ObjectClass_template(ANY_VALUE), AbisOML__Types::OML__FOM__ObjectInstance_template(ANY_VALUE), OCTETSTRING_template(ANY_VALUE), OCTETSTRING_template(ANY_VALUE)), &(rx), any_compref, NULL, NULL, NULL)) { case ALT_YES: { current_location.update_lineno(91); /* BTS_Tests_OML.ttcn, line 91 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(const_cast< const AbisOML__Types::OML__PDU&>(rx).u().fom().hdr().obj__class()); current_location.update_lineno(92); /* BTS_Tests_OML.ttcn, line 92 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(const_cast< const AbisOML__Types::OML__PDU&>(rx).u().fom().hdr().obj__inst()); current_location.update_lineno(95); /* BTS_Tests_OML.ttcn, line 95 */ BSC__OML__CT_component_OML.send(AbisOML__Types::f__OML__make__ack(rx), FALSE, NULL); current_location.update_lineno(96); /* BTS_Tests_OML.ttcn, line 96 */ OCTETSTRING file__id(os_0); current_location.update_lineno(97); /* BTS_Tests_OML.ttcn, line 97 */ OCTETSTRING sw__desc(os_0); current_location.update_lineno(100); /* BTS_Tests_OML.ttcn, line 100 */ BSC__OML__CT_component_OML.send(AbisOML__Types::ts__OML__ActivateSw(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), OCTETSTRING_template(file__id), OCTETSTRING_template(sw__desc)), FALSE, NULL); current_location.update_lineno(101); /* BTS_Tests_OML.ttcn, line 101 */ { size_t tmp_0_state[2]; tmp_0_state[0]=2; tmp_0_state[1]=2; alt_status tmp_0_alt_flag[3]; tmp_0: for(size_t tmp_i=0; tmp_i<2; tmp_i++) tmp_0_alt_flag[tmp_i]=ALT_UNCHECKED; tmp_0_alt_flag[2]=ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for( ; ; ) { if(tmp_0_state[0]==1 && tmp_0_state[1]==1) break; current_location.update_lineno(102); /* BTS_Tests_OML.ttcn, line 102 */ if(tmp_0_alt_flag[0]==ALT_UNCHECKED) { if(tmp_0_state[0]==2) { tmp_0_alt_flag[0]=ALT_MAYBE; } else tmp_0_alt_flag[0]=ALT_NO; } if(tmp_0_alt_flag[0]==ALT_MAYBE) { tmp_0_alt_flag[0]=BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__ActivateSwACK(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), OCTETSTRING_template(file__id), OCTETSTRING_template(sw__desc)), NULL, any_compref, NULL, NULL, NULL); if(tmp_0_alt_flag[0]==ALT_YES) { tmp_0_state[0]=1; goto tmp_0; } } current_location.update_lineno(103); /* BTS_Tests_OML.ttcn, line 103 */ if(tmp_0_alt_flag[1]==ALT_UNCHECKED) { if(tmp_0_state[1]==2) { tmp_0_alt_flag[1]=ALT_MAYBE; } else tmp_0_alt_flag[1]=ALT_NO; } if(tmp_0_alt_flag[1]==ALT_MAYBE) { tmp_0_alt_flag[1]=BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__SwActivatedRep(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst)), NULL, any_compref, NULL, NULL, NULL); if(tmp_0_alt_flag[1]==ALT_YES) { tmp_0_state[1]=1; goto tmp_0; } } if(tmp_0_alt_flag[2]==ALT_MAYBE) { tmp_0_alt_flag[2]=TTCN_Default::try_altsteps(first_run); if(tmp_0_alt_flag[2]==ALT_YES || tmp_0_alt_flag[2]==ALT_BREAK) break; else if(tmp_0_alt_flag[2]==ALT_REPEAT) goto tmp_0; } current_location.update_lineno(101); /* BTS_Tests_OML.ttcn, line 101 */ for(size_t tmp_i=0; tmp_i<3; tmp_i++) if(tmp_0_alt_flag[tmp_i]!=ALT_NO) goto tmp_0_newsnapshot; TTCN_error("None of the branches can be chosen in the interleave statement in file BTS_Tests_OML.ttcn between lines 101 and 104."); tmp_0_newsnapshot: TTCN_Snapshot::take_new(TRUE); first_run = FALSE; continue; current_location.update_lineno(101); /* BTS_Tests_OML.ttcn, line 101 */ } } current_location.update_lineno(105); /* BTS_Tests_OML.ttcn, line 105 */ return ALT_REPEAT; } case ALT_MAYBE: ret_val = ALT_MAYBE; default: break; } return ret_val; } void as__SwAct(boolean nodefault_modifier) { altstep_begin: boolean block_flag = FALSE; alt_status altstep_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; for ( ; ; ) { TTCN_Snapshot::take_new(block_flag); if (altstep_flag != ALT_NO) { altstep_flag = as__SwAct_instance(!block_flag); if (altstep_flag == ALT_YES || altstep_flag == ALT_BREAK) return; else if (altstep_flag == ALT_REPEAT) goto altstep_begin; } if (!nodefault_modifier && default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(!block_flag); if (default_flag == ALT_YES || default_flag == ALT_BREAK) return; else if (default_flag == ALT_REPEAT) goto altstep_begin; } if (altstep_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in altstep as_SwAct."); else block_flag = TRUE; } } Default_Base *activate_as__SwAct() { return new as__SwAct_Default(); } alt_status as__IPA__evt_instance(boolean first_alt_run) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 109, TTCN_Location::LOCATION_ALTSTEP, "as_IPA_evt"); current_location.update_lineno(110); /* BTS_Tests_OML.ttcn, line 110 */ IPA__Emulation::ASP__IPA__Event evt; alt_status ret_val = ALT_NO; current_location.update_lineno(111); /* BTS_Tests_OML.ttcn, line 111 */ switch (BSC__OML__CT_component_OML.receive(IPA__Emulation::ASP__IPA__Event_template(ANY_VALUE), &(evt), any_compref, NULL, NULL, NULL)) { case ALT_YES: { current_location.update_lineno(112); /* BTS_Tests_OML.ttcn, line 112 */ try { TTCN_Logger::begin_event(TTCN_USER); TTCN_Logger::log_event_str("Ignoring "); evt.log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } current_location.update_lineno(113); /* BTS_Tests_OML.ttcn, line 113 */ return ALT_REPEAT; } case ALT_MAYBE: ret_val = ALT_MAYBE; default: break; } return ret_val; } void as__IPA__evt(boolean nodefault_modifier) { altstep_begin: boolean block_flag = FALSE; alt_status altstep_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; for ( ; ; ) { TTCN_Snapshot::take_new(block_flag); if (altstep_flag != ALT_NO) { altstep_flag = as__IPA__evt_instance(!block_flag); if (altstep_flag == ALT_YES || altstep_flag == ALT_BREAK) return; else if (altstep_flag == ALT_REPEAT) goto altstep_begin; } if (!nodefault_modifier && default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(!block_flag); if (default_flag == ALT_YES || default_flag == ALT_BREAK) return; else if (default_flag == ALT_REPEAT) goto altstep_begin; } if (altstep_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in altstep as_IPA_evt."); else block_flag = TRUE; } } Default_Base *activate_as__IPA__evt() { return new as__IPA__evt_Default(); } void f__init__oml(const CHARSTRING& id) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 117, TTCN_Location::LOCATION_FUNCTION, "f_init_oml"); current_location.update_lineno(118); /* BTS_Tests_OML.ttcn, line 118 */ BSC__OML__CT_component_vc__IPA__OML = TTCN_Runtime::create_component("IPA_Emulation", "IPA_Emulation_CT", (id + cs_1), NULL, TRUE); current_location.update_lineno(119); /* BTS_Tests_OML.ttcn, line 119 */ { Map_Params tmp_2(0); TTCN_Runtime::map_port(BSC__OML__CT_component_vc__IPA__OML, IPA__Emulation::IPA__Emulation__CT_component_IPA__PORT.get_name(), SYSTEM_COMPREF, "IPA_CODEC_PT", tmp_2); } current_location.update_lineno(120); /* BTS_Tests_OML.ttcn, line 120 */ TTCN_Runtime::connect_port(BSC__OML__CT_component_vc__IPA__OML, IPA__Emulation::IPA__Emulation__CT_component_IPA__OML__PORT.get_name(), self, BSC__OML__CT_component_OML.get_name()); current_location.update_lineno(121); /* BTS_Tests_OML.ttcn, line 121 */ TTCN_Runtime::connect_port(BSC__OML__CT_component_vc__IPA__OML, IPA__Emulation::IPA__Emulation__CT_component_IPA__OSMO__PCU__PORT.get_name(), self, BSC__OML__CT_component_IPA__OSMO__PCU.get_name()); current_location.update_lineno(122); /* BTS_Tests_OML.ttcn, line 122 */ IPA__Emulation::start_main__server(BSC__OML__CT_component_vc__IPA__OML, mp__oml__ip, mp__oml__port, IPA__Emulation::main__server_ccm__enabled_defval, IPA__Emulation::main__server_init__behavior_defval, IPA__Emulation::main__server_server__stop__on__ipa__ev__down_defval); current_location.update_lineno(124); /* BTS_Tests_OML.ttcn, line 124 */ BSC__OML__CT_component_T__oml__guard.start(); current_location.update_lineno(125); /* BTS_Tests_OML.ttcn, line 125 */ activate_as__Tguard(); current_location.update_lineno(127); /* BTS_Tests_OML.ttcn, line 127 */ { tmp_3: alt_status alt_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (alt_flag != ALT_NO) { alt_flag = BSC__OML__CT_component_OML.receive(IPA__Emulation::tr__ASP__IPA__EV(IPA__Emulation::ASP__IPA__EventType_template(IPA__Emulation::ASP__IPA__EventType::ASP__IPA__EVENT__UP), IPA__Emulation::tr__ASP__IPA__EV_conn__id_defval, IPA__Emulation::tr__ASP__IPA__EV_id__resp_defval), NULL, any_compref, NULL, NULL, NULL); if (alt_flag == ALT_YES) break; } if (default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(first_run); if (default_flag == ALT_YES || default_flag == ALT_BREAK) break; else if (default_flag == ALT_REPEAT) goto tmp_3; } current_location.update_lineno(127); /* BTS_Tests_OML.ttcn, line 127 */ if (alt_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("Stand-alone receive statement failed in file BTS_Tests_OML.ttcn, line 127."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(130); /* BTS_Tests_OML.ttcn, line 130 */ activate_as__SwAct(); current_location.update_lineno(131); /* BTS_Tests_OML.ttcn, line 131 */ activate_as__IPA__evt(); } void start_f__init__oml(const COMPONENT& component_reference, const CHARSTRING& id) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_init_oml("); id.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_init_oml", text_buf); id.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__init__pcu(PCUIF__CodecPort::PCUIF__CODEC__PT& pt, const CHARSTRING& , INTEGER& pcu__conn__id, PCUIF__Types::PCUIF__Message& pcu__last__info) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 134, TTCN_Location::LOCATION_FUNCTION, "f_init_pcu"); current_location.update_lineno(136); /* BTS_Tests_OML.ttcn, line 136 */ TIMER T("T", 2.0); current_location.update_lineno(137); /* BTS_Tests_OML.ttcn, line 137 */ PCUIF__CodecPort::PCUIF__send__data sd; current_location.update_lineno(139); /* BTS_Tests_OML.ttcn, line 139 */ if ((mp__pcu__socket == cs_2)) { current_location.update_lineno(140); /* BTS_Tests_OML.ttcn, line 140 */ pcu__conn__id = -1; current_location.update_lineno(141); /* BTS_Tests_OML.ttcn, line 141 */ return; } current_location.update_lineno(143); /* BTS_Tests_OML.ttcn, line 143 */ { Map_Params tmp_5(0); TTCN_Runtime::map_port(self, "PCU", SYSTEM_COMPREF, "PCU", tmp_5); } current_location.update_lineno(144); /* BTS_Tests_OML.ttcn, line 144 */ pcu__conn__id = PCUIF__CodecPort::f__pcuif__connect(pt, mp__pcu__socket); current_location.update_lineno(146); /* BTS_Tests_OML.ttcn, line 146 */ T.start(); current_location.update_lineno(147); /* BTS_Tests_OML.ttcn, line 147 */ { tmp_7: alt_status tmp_7_alt_flag_0 = ALT_MAYBE; alt_status tmp_7_alt_flag_1 = ALT_MAYBE; alt_status tmp_7_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_7_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(148); /* BTS_Tests_OML.ttcn, line 148 */ { PCUIF__Types::PCUIF__Message tmp_8; tmp_7_alt_flag_0 = BTS__Tests::as__pcu__info__ind_instance(pt, pcu__conn__id, tmp_8, first_run); if (tmp_8.is_bound()) pcu__last__info = tmp_8; } if (tmp_7_alt_flag_0 == ALT_REPEAT) goto tmp_7; if (tmp_7_alt_flag_0 == ALT_BREAK) break; if (tmp_7_alt_flag_0 == ALT_YES) break; } if (tmp_7_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(149); /* BTS_Tests_OML.ttcn, line 149 */ tmp_7_alt_flag_1 = T.timeout(NULL); if (tmp_7_alt_flag_1 == ALT_YES) { current_location.update_lineno(150); /* BTS_Tests_OML.ttcn, line 150 */ Misc__Helpers::f__shutdown(cs_3, 150, FAIL, cs_4); break; } } if (tmp_7_default_flag == ALT_MAYBE) { tmp_7_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_7_default_flag == ALT_YES || tmp_7_default_flag == ALT_BREAK) break; else if (tmp_7_default_flag == ALT_REPEAT) goto tmp_7; } current_location.update_lineno(147); /* BTS_Tests_OML.ttcn, line 147 */ if (tmp_7_alt_flag_0 == ALT_NO && tmp_7_alt_flag_1 == ALT_NO && tmp_7_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 147 and 152."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(155); /* BTS_Tests_OML.ttcn, line 155 */ pt.send(PCUIF__CodecPort::t__SD__PCUIF(pcu__conn__id, PCUIF__Types::ts__PCUIF__TXT__IND(0, PCUIF__Types::PCUIF__TextType::PCU__VERSION, TTCN_Runtime::get_testcasename())), FALSE, NULL); } void f__shutdown__helper() { TTCN_Location current_location("BTS_Tests_OML.ttcn", 158, TTCN_Location::LOCATION_FUNCTION, "f_shutdown_helper"); current_location.update_lineno(160); /* BTS_Tests_OML.ttcn, line 160 */ Misc__Helpers::f__shutdown(cs_3, 160, PASS, Misc__Helpers::f__shutdown_text_defval); } void start_f__shutdown__helper(const COMPONENT& component_reference) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_shutdown_helper("); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_shutdown_helper", text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__opstart(const AbisOML__Types::OML__FOM__ObjectClass_template& obj__class, const AbisOML__Types::OML__FOM__ObjectInstance_template& obj__inst, const BOOLEAN& exp__fail, const AbisOML__Types::OML__FOM__OperationalState_template& exp__stchg) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 164, TTCN_Location::LOCATION_FUNCTION, "f_oml_opstart"); current_location.update_lineno(169); /* BTS_Tests_OML.ttcn, line 169 */ BOOLEAN check__stchg((!(exp__stchg.get_istemplate_kind((const char*)cs_5)))); current_location.update_lineno(170); /* BTS_Tests_OML.ttcn, line 170 */ BOOLEAN ack__received(FALSE); current_location.update_lineno(171); /* BTS_Tests_OML.ttcn, line 171 */ BOOLEAN stchg__received((!(check__stchg))); current_location.update_lineno(173); /* BTS_Tests_OML.ttcn, line 173 */ BSC__OML__CT_component_OML.send(AbisOML__Types::ts__OML__Opstart(obj__class, obj__inst), FALSE, NULL); current_location.update_lineno(175); /* BTS_Tests_OML.ttcn, line 175 */ { tmp_9: alt_status tmp_9_alt_flag_0 = ALT_UNCHECKED; alt_status tmp_9_alt_flag_1 = ALT_UNCHECKED; alt_status tmp_9_alt_flag_2 = ALT_UNCHECKED; alt_status tmp_9_alt_flag_3 = ALT_UNCHECKED; alt_status tmp_9_alt_flag_4 = ALT_UNCHECKED; alt_status tmp_9_alt_flag_5 = ALT_UNCHECKED; alt_status tmp_9_alt_flag_6 = ALT_MAYBE; alt_status tmp_9_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_9_alt_flag_0 == ALT_UNCHECKED) { current_location.update_lineno(176); /* BTS_Tests_OML.ttcn, line 176 */ if (check__stchg) tmp_9_alt_flag_0 = ALT_MAYBE; else tmp_9_alt_flag_0 = ALT_NO; } if (tmp_9_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(176); /* BTS_Tests_OML.ttcn, line 176 */ tmp_9_alt_flag_0 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__StateChgEvtRep(obj__class, obj__inst, exp__stchg, AbisOML__Types::OML__FOM__AvailabilityStatus_template(AbisOML__Types::OML__FOM__AvailabilityStatus::NM__AVSTATE__OK), AbisOML__Types::tr__OML__StateChgEvtRep_admstate_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_0 == ALT_YES) { current_location.update_lineno(178); /* BTS_Tests_OML.ttcn, line 178 */ stchg__received = TRUE; current_location.update_lineno(179); /* BTS_Tests_OML.ttcn, line 179 */ if ((!(ack__received))) { current_location.update_lineno(180); /* BTS_Tests_OML.ttcn, line 180 */ goto tmp_9; } current_location.update_lineno(182); /* BTS_Tests_OML.ttcn, line 182 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_9_alt_flag_1 == ALT_UNCHECKED) { current_location.update_lineno(184); /* BTS_Tests_OML.ttcn, line 184 */ if (check__stchg) tmp_9_alt_flag_1 = ALT_MAYBE; else tmp_9_alt_flag_1 = ALT_NO; } if (tmp_9_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(184); /* BTS_Tests_OML.ttcn, line 184 */ tmp_9_alt_flag_1 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__StateChgEvtRep(obj__class, obj__inst, AbisOML__Types::OML__FOM__OperationalState_template(ANY_VALUE), AbisOML__Types::OML__FOM__AvailabilityStatus_template(AbisOML__Types::OML__FOM__AvailabilityStatus::NM__AVSTATE__OK), AbisOML__Types::tr__OML__StateChgEvtRep_admstate_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_1 == ALT_YES) { current_location.update_lineno(186); /* BTS_Tests_OML.ttcn, line 186 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected State Change for "),obj__class.log(),TTCN_Logger::log_char(' '),obj__inst.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_9_alt_flag_2 == ALT_UNCHECKED) { current_location.update_lineno(188); /* BTS_Tests_OML.ttcn, line 188 */ if ((!(exp__fail))) tmp_9_alt_flag_2 = ALT_MAYBE; else tmp_9_alt_flag_2 = ALT_NO; } if (tmp_9_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(188); /* BTS_Tests_OML.ttcn, line 188 */ tmp_9_alt_flag_2 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__OpstartACK(obj__class, obj__inst), NULL, any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_2 == ALT_YES) { current_location.update_lineno(189); /* BTS_Tests_OML.ttcn, line 189 */ ack__received = TRUE; current_location.update_lineno(190); /* BTS_Tests_OML.ttcn, line 190 */ if ((!(stchg__received))) { current_location.update_lineno(191); /* BTS_Tests_OML.ttcn, line 191 */ goto tmp_9; } current_location.update_lineno(193); /* BTS_Tests_OML.ttcn, line 193 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_9_alt_flag_3 == ALT_UNCHECKED) { current_location.update_lineno(195); /* BTS_Tests_OML.ttcn, line 195 */ if ((!(exp__fail))) tmp_9_alt_flag_3 = ALT_MAYBE; else tmp_9_alt_flag_3 = ALT_NO; } if (tmp_9_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(195); /* BTS_Tests_OML.ttcn, line 195 */ tmp_9_alt_flag_3 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__OpstartNACK(obj__class, obj__inst, AbisOML__Types::tr__OML__OpstartNACK_cause_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_3 == ALT_YES) { current_location.update_lineno(196); /* BTS_Tests_OML.ttcn, line 196 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected OPSTART NACK for "),obj__class.log(),TTCN_Logger::log_char(' '),obj__inst.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_9_alt_flag_4 == ALT_UNCHECKED) { current_location.update_lineno(198); /* BTS_Tests_OML.ttcn, line 198 */ if (exp__fail) tmp_9_alt_flag_4 = ALT_MAYBE; else tmp_9_alt_flag_4 = ALT_NO; } if (tmp_9_alt_flag_4 == ALT_MAYBE) { current_location.update_lineno(198); /* BTS_Tests_OML.ttcn, line 198 */ tmp_9_alt_flag_4 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__OpstartACK(obj__class, obj__inst), NULL, any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_4 == ALT_YES) { current_location.update_lineno(199); /* BTS_Tests_OML.ttcn, line 199 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected OPSTART ACK for "),obj__class.log(),TTCN_Logger::log_char(' '),obj__inst.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_9_alt_flag_5 == ALT_UNCHECKED) { current_location.update_lineno(201); /* BTS_Tests_OML.ttcn, line 201 */ if (exp__fail) tmp_9_alt_flag_5 = ALT_MAYBE; else tmp_9_alt_flag_5 = ALT_NO; } if (tmp_9_alt_flag_5 == ALT_MAYBE) { current_location.update_lineno(201); /* BTS_Tests_OML.ttcn, line 201 */ tmp_9_alt_flag_5 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__OpstartNACK(obj__class, obj__inst, AbisOML__Types::tr__OML__OpstartNACK_cause_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_5 == ALT_YES) { current_location.update_lineno(202); /* BTS_Tests_OML.ttcn, line 202 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_9_alt_flag_6 == ALT_MAYBE) { current_location.update_lineno(204); /* BTS_Tests_OML.ttcn, line 204 */ tmp_9_alt_flag_6 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_9_alt_flag_6 == ALT_YES) { current_location.update_lineno(204); /* BTS_Tests_OML.ttcn, line 204 */ goto tmp_9; } } if (tmp_9_default_flag == ALT_MAYBE) { tmp_9_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_9_default_flag == ALT_YES || tmp_9_default_flag == ALT_BREAK) break; else if (tmp_9_default_flag == ALT_REPEAT) goto tmp_9; } current_location.update_lineno(175); /* BTS_Tests_OML.ttcn, line 175 */ if (tmp_9_alt_flag_0 == ALT_NO && tmp_9_alt_flag_1 == ALT_NO && tmp_9_alt_flag_2 == ALT_NO && tmp_9_alt_flag_3 == ALT_NO && tmp_9_alt_flag_4 == ALT_NO && tmp_9_alt_flag_5 == ALT_NO && tmp_9_alt_flag_6 == ALT_NO && tmp_9_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 175 and 205."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__opstart(const COMPONENT& component_reference, const AbisOML__Types::OML__FOM__ObjectClass_template& obj__class, const AbisOML__Types::OML__FOM__ObjectInstance_template& obj__inst, const BOOLEAN& exp__fail, const AbisOML__Types::OML__FOM__OperationalState_template& exp__stchg) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_opstart("); obj__class.log(); TTCN_Logger::log_event_str(", "); obj__inst.log(); TTCN_Logger::log_event_str(", "); exp__fail.log(); TTCN_Logger::log_event_str(", "); exp__stchg.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_opstart", text_buf); obj__class.encode_text(text_buf); obj__inst.encode_text(text_buf); exp__fail.encode_text(text_buf); exp__stchg.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__chg__adm__st(const AbisOML__Types::OML__FOM__ObjectClass_template& obj__class, const AbisOML__Types::OML__FOM__ObjectInstance_template& obj__inst, const AbisOML__Types::OML__FOM__AdministrativeState_template& adm__st, const BOOLEAN& exp__fail) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 209, TTCN_Location::LOCATION_FUNCTION, "f_oml_chg_adm_st"); current_location.update_lineno(214); /* BTS_Tests_OML.ttcn, line 214 */ BSC__OML__CT_component_OML.send(AbisOML__Types::ts__OML__ChangeAdmState(obj__class, obj__inst, adm__st), FALSE, NULL); current_location.update_lineno(215); /* BTS_Tests_OML.ttcn, line 215 */ { tmp_12: alt_status tmp_12_alt_flag_0 = ALT_UNCHECKED; alt_status tmp_12_alt_flag_1 = ALT_UNCHECKED; alt_status tmp_12_alt_flag_2 = ALT_UNCHECKED; alt_status tmp_12_alt_flag_3 = ALT_UNCHECKED; alt_status tmp_12_alt_flag_4 = ALT_MAYBE; alt_status tmp_12_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_12_alt_flag_0 == ALT_UNCHECKED) { current_location.update_lineno(216); /* BTS_Tests_OML.ttcn, line 216 */ if ((!(exp__fail))) tmp_12_alt_flag_0 = ALT_MAYBE; else tmp_12_alt_flag_0 = ALT_NO; } if (tmp_12_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(216); /* BTS_Tests_OML.ttcn, line 216 */ tmp_12_alt_flag_0 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__ChangeAdmStateACK(obj__class, obj__inst, adm__st), NULL, any_compref, NULL, NULL, NULL); if (tmp_12_alt_flag_0 == ALT_YES) { current_location.update_lineno(217); /* BTS_Tests_OML.ttcn, line 217 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_12_alt_flag_1 == ALT_UNCHECKED) { current_location.update_lineno(219); /* BTS_Tests_OML.ttcn, line 219 */ if ((!(exp__fail))) tmp_12_alt_flag_1 = ALT_MAYBE; else tmp_12_alt_flag_1 = ALT_NO; } if (tmp_12_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(219); /* BTS_Tests_OML.ttcn, line 219 */ tmp_12_alt_flag_1 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__ChangeAdmStateNACK(obj__class, obj__inst, AbisOML__Types::tr__OML__ChangeAdmStateNACK_cause_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_12_alt_flag_1 == ALT_YES) { current_location.update_lineno(220); /* BTS_Tests_OML.ttcn, line 220 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected CHANGE ADM STATE NACK for "),obj__class.log(),TTCN_Logger::log_char(' '),obj__inst.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_12_alt_flag_2 == ALT_UNCHECKED) { current_location.update_lineno(222); /* BTS_Tests_OML.ttcn, line 222 */ if (exp__fail) tmp_12_alt_flag_2 = ALT_MAYBE; else tmp_12_alt_flag_2 = ALT_NO; } if (tmp_12_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(222); /* BTS_Tests_OML.ttcn, line 222 */ tmp_12_alt_flag_2 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__ChangeAdmStateACK(obj__class, obj__inst, adm__st), NULL, any_compref, NULL, NULL, NULL); if (tmp_12_alt_flag_2 == ALT_YES) { current_location.update_lineno(223); /* BTS_Tests_OML.ttcn, line 223 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected CHANGE ADM STATE ACK for "),obj__class.log(),TTCN_Logger::log_char(' '),obj__inst.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_12_alt_flag_3 == ALT_UNCHECKED) { current_location.update_lineno(225); /* BTS_Tests_OML.ttcn, line 225 */ if (exp__fail) tmp_12_alt_flag_3 = ALT_MAYBE; else tmp_12_alt_flag_3 = ALT_NO; } if (tmp_12_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(225); /* BTS_Tests_OML.ttcn, line 225 */ tmp_12_alt_flag_3 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__ChangeAdmStateNACK(obj__class, obj__inst, AbisOML__Types::tr__OML__ChangeAdmStateNACK_cause_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_12_alt_flag_3 == ALT_YES) { current_location.update_lineno(226); /* BTS_Tests_OML.ttcn, line 226 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_12_alt_flag_4 == ALT_MAYBE) { current_location.update_lineno(228); /* BTS_Tests_OML.ttcn, line 228 */ tmp_12_alt_flag_4 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_12_alt_flag_4 == ALT_YES) { current_location.update_lineno(228); /* BTS_Tests_OML.ttcn, line 228 */ goto tmp_12; } } if (tmp_12_default_flag == ALT_MAYBE) { tmp_12_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_12_default_flag == ALT_YES || tmp_12_default_flag == ALT_BREAK) break; else if (tmp_12_default_flag == ALT_REPEAT) goto tmp_12; } current_location.update_lineno(215); /* BTS_Tests_OML.ttcn, line 215 */ if (tmp_12_alt_flag_0 == ALT_NO && tmp_12_alt_flag_1 == ALT_NO && tmp_12_alt_flag_2 == ALT_NO && tmp_12_alt_flag_3 == ALT_NO && tmp_12_alt_flag_4 == ALT_NO && tmp_12_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 215 and 229."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__chg__adm__st(const COMPONENT& component_reference, const AbisOML__Types::OML__FOM__ObjectClass_template& obj__class, const AbisOML__Types::OML__FOM__ObjectInstance_template& obj__inst, const AbisOML__Types::OML__FOM__AdministrativeState_template& adm__st, const BOOLEAN& exp__fail) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_chg_adm_st("); obj__class.log(); TTCN_Logger::log_event_str(", "); obj__inst.log(); TTCN_Logger::log_event_str(", "); adm__st.log(); TTCN_Logger::log_event_str(", "); exp__fail.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_chg_adm_st", text_buf); obj__class.encode_text(text_buf); obj__inst.encode_text(text_buf); adm__st.encode_text(text_buf); exp__fail.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__radio__attr(const INTEGER& trx__nr) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 233, TTCN_Location::LOCATION_FUNCTION, "f_oml_radio_attr"); current_location.update_lineno(235); /* BTS_Tests_OML.ttcn, line 235 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, trx__nr, 255).valueof()); current_location.update_lineno(236); /* BTS_Tests_OML.ttcn, line 236 */ AbisOML__Types::OML__PDU cmd; { AbisOML__Types::OML__ArfcnList_template tmp_13; tmp_13.set_size(1); tmp_13[0] = const_cast< const ArfcnList&>(mp__arfcn)[trx__nr]; cmd = AbisOML__Types::ts__OML__SetRadioAttr(AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), INTEGER_template(0), tmp_13).valueof(); } current_location.update_lineno(237); /* BTS_Tests_OML.ttcn, line 237 */ AbisOML__Types::OML__PDU_template exp__ack(AbisOML__Types::f__OML__make__ack__exp(cmd)); current_location.update_lineno(238); /* BTS_Tests_OML.ttcn, line 238 */ AbisOML__Types::OML__PDU_template exp__nack(AbisOML__Types::f__OML__make__nack__exp(cmd, AbisOML__Types::OML__FOM__NackCause_template(ANY_VALUE))); current_location.update_lineno(239); /* BTS_Tests_OML.ttcn, line 239 */ AbisOML__Types::OML__PDU rx; current_location.update_lineno(241); /* BTS_Tests_OML.ttcn, line 241 */ BSC__OML__CT_component_OML.send(cmd, FALSE, NULL); current_location.update_lineno(242); /* BTS_Tests_OML.ttcn, line 242 */ { tmp_14: alt_status tmp_14_alt_flag_0 = ALT_MAYBE; alt_status tmp_14_alt_flag_1 = ALT_MAYBE; alt_status tmp_14_alt_flag_2 = ALT_MAYBE; alt_status tmp_14_alt_flag_3 = ALT_MAYBE; alt_status tmp_14_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_14_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(243); /* BTS_Tests_OML.ttcn, line 243 */ tmp_14_alt_flag_0 = BSC__OML__CT_component_OML.receive(exp__ack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_14_alt_flag_0 == ALT_YES) { current_location.update_lineno(244); /* BTS_Tests_OML.ttcn, line 244 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_14_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(246); /* BTS_Tests_OML.ttcn, line 246 */ tmp_14_alt_flag_1 = BSC__OML__CT_component_OML.receive(exp__nack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_14_alt_flag_1 == ALT_YES) { current_location.update_lineno(247); /* BTS_Tests_OML.ttcn, line 247 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("SET RADIO CARRIER ATTRIBUTES NACK "),exp__nack.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_14_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(249); /* BTS_Tests_OML.ttcn, line 249 */ tmp_14_alt_flag_2 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__MsgType(AbisOML__Types::OML__FOM__MessageType_template(AbisOML__Types::OML__FOM__MessageType::NM__MT__SET__RADIO__ATTR__ACK), AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__RADIO__CARRIER), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__IE__List_template(OMIT_VALUE)), NULL, any_compref, NULL, NULL, NULL); if (tmp_14_alt_flag_2 == ALT_YES) { current_location.update_lineno(250); /* BTS_Tests_OML.ttcn, line 250 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("SET RADIO CARRIER ATTRIBUTES ACK without IEs"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_14_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(252); /* BTS_Tests_OML.ttcn, line 252 */ tmp_14_alt_flag_3 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_14_alt_flag_3 == ALT_YES) { current_location.update_lineno(252); /* BTS_Tests_OML.ttcn, line 252 */ goto tmp_14; } } if (tmp_14_default_flag == ALT_MAYBE) { tmp_14_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_14_default_flag == ALT_YES || tmp_14_default_flag == ALT_BREAK) break; else if (tmp_14_default_flag == ALT_REPEAT) goto tmp_14; } current_location.update_lineno(242); /* BTS_Tests_OML.ttcn, line 242 */ if (tmp_14_alt_flag_0 == ALT_NO && tmp_14_alt_flag_1 == ALT_NO && tmp_14_alt_flag_2 == ALT_NO && tmp_14_alt_flag_3 == ALT_NO && tmp_14_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 242 and 253."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__radio__attr(const COMPONENT& component_reference, const INTEGER& trx__nr) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_radio_attr("); trx__nr.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_radio_attr", text_buf); trx__nr.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__ts__attr(const INTEGER& trx__nr, const INTEGER& ts__nr) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 257, TTCN_Location::LOCATION_FUNCTION, "f_oml_ts_attr"); current_location.update_lineno(259); /* BTS_Tests_OML.ttcn, line 259 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, trx__nr, ts__nr).valueof()); current_location.update_lineno(260); /* BTS_Tests_OML.ttcn, line 260 */ AbisOML__Types::OML__PDU cmd(AbisOML__Types::ts__OML__SetChanAttr(AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__ChannelCombination_template(AbisOML__Types::OML__ChannelCombination::NM__CHANC__TCHFull), INTEGER_template(7)).valueof()); current_location.update_lineno(261); /* BTS_Tests_OML.ttcn, line 261 */ AbisOML__Types::OML__PDU_template exp__ack(AbisOML__Types::f__OML__make__ack__exp(cmd)); current_location.update_lineno(262); /* BTS_Tests_OML.ttcn, line 262 */ AbisOML__Types::OML__PDU_template exp__nack(AbisOML__Types::f__OML__make__nack__exp(cmd, AbisOML__Types::OML__FOM__NackCause_template(ANY_VALUE))); current_location.update_lineno(263); /* BTS_Tests_OML.ttcn, line 263 */ AbisOML__Types::OML__PDU rx; current_location.update_lineno(265); /* BTS_Tests_OML.ttcn, line 265 */ BSC__OML__CT_component_OML.send(cmd, FALSE, NULL); current_location.update_lineno(266); /* BTS_Tests_OML.ttcn, line 266 */ { tmp_15: alt_status tmp_15_alt_flag_0 = ALT_MAYBE; alt_status tmp_15_alt_flag_1 = ALT_MAYBE; alt_status tmp_15_alt_flag_2 = ALT_MAYBE; alt_status tmp_15_alt_flag_3 = ALT_MAYBE; alt_status tmp_15_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_15_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(267); /* BTS_Tests_OML.ttcn, line 267 */ tmp_15_alt_flag_0 = BSC__OML__CT_component_OML.receive(exp__ack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_15_alt_flag_0 == ALT_YES) { current_location.update_lineno(268); /* BTS_Tests_OML.ttcn, line 268 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_15_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(270); /* BTS_Tests_OML.ttcn, line 270 */ tmp_15_alt_flag_1 = BSC__OML__CT_component_OML.receive(exp__nack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_15_alt_flag_1 == ALT_YES) { current_location.update_lineno(271); /* BTS_Tests_OML.ttcn, line 271 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("SET CHANNEL ATTRIBUTES NACK "),exp__nack.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_15_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(273); /* BTS_Tests_OML.ttcn, line 273 */ tmp_15_alt_flag_2 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__MsgType(AbisOML__Types::OML__FOM__MessageType_template(AbisOML__Types::OML__FOM__MessageType::NM__MT__SET__CHAN__ATTR__ACK), AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__CHANNEL), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__IE__List_template(OMIT_VALUE)), NULL, any_compref, NULL, NULL, NULL); if (tmp_15_alt_flag_2 == ALT_YES) { current_location.update_lineno(274); /* BTS_Tests_OML.ttcn, line 274 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("SET CHANNEL ATTRIBUTES ACK without IEs"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_15_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(276); /* BTS_Tests_OML.ttcn, line 276 */ tmp_15_alt_flag_3 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_15_alt_flag_3 == ALT_YES) { current_location.update_lineno(276); /* BTS_Tests_OML.ttcn, line 276 */ goto tmp_15; } } if (tmp_15_default_flag == ALT_MAYBE) { tmp_15_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_15_default_flag == ALT_YES || tmp_15_default_flag == ALT_BREAK) break; else if (tmp_15_default_flag == ALT_REPEAT) goto tmp_15; } current_location.update_lineno(266); /* BTS_Tests_OML.ttcn, line 266 */ if (tmp_15_alt_flag_0 == ALT_NO && tmp_15_alt_flag_1 == ALT_NO && tmp_15_alt_flag_2 == ALT_NO && tmp_15_alt_flag_3 == ALT_NO && tmp_15_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 266 and 277."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__ts__attr(const COMPONENT& component_reference, const INTEGER& trx__nr, const INTEGER& ts__nr) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_ts_attr("); trx__nr.log(); TTCN_Logger::log_event_str(", "); ts__nr.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_ts_attr", text_buf); trx__nr.encode_text(text_buf); ts__nr.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__bts__setattr() { TTCN_Location current_location("BTS_Tests_OML.ttcn", 282, TTCN_Location::LOCATION_FUNCTION, "f_oml_bts_setattr"); current_location.update_lineno(284); /* BTS_Tests_OML.ttcn, line 284 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(285); /* BTS_Tests_OML.ttcn, line 285 */ AbisOML__Types::OML__FOM__IE__List_template ies; ies.set_size(13); { AbisOML__Types::OML__FOM__IE__Body_template tmp_16; tmp_16.interf__bound() = mp__interf__bound; ies[0] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__INTERF__BOUND, tmp_16); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_17; tmp_17.bcch__arfcn() = const_cast< const ArfcnList&>(mp__arfcn)[0]; ies[1] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__BCCH__ARFCN, tmp_17); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_18; tmp_18.other() = AbisOML__Types::ts__OML__IE__L16V(INTEGER_template(2), OCTETSTRING_template(os_1)); ies[2] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__CONN__FAIL__CRIT, tmp_18); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_19; tmp_19.t200() = mp__t200; ies[3] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__T200, tmp_19); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_20; tmp_20.max__ta() = mp__max__ta; ies[4] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__MAX__TA, tmp_20); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_21; tmp_21.other() = AbisOML__Types::ts__OML__IE__L16V(INTEGER_template(1), OCTETSTRING_template(os_2)); ies[5] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__OVERL__PERIOD, tmp_21); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_22; tmp_22.load__threshold() = mp__load__threshold; ies[6] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__CCCH__L__T, tmp_22); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_23; tmp_23.load__ind__period() = mp__load__ind__period; ies[7] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__CCCH__L__I__P, tmp_23); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_24; tmp_24.rach__b__thresh() = mp__rach__b__thresh; ies[8] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__RACH__B__THRESH, tmp_24); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_25; tmp_25.loadavg__slots() = mp__loadavg__slots; ies[9] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__LDAVG__SLOTS, tmp_25); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_26; tmp_26.air__timer() = mp__air__timer; ies[10] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__BTS__AIR__TIMER, tmp_26); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_27; tmp_27.ny1() = mp__ny1; ies[11] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__NY1, tmp_27); } { AbisOML__Types::OML__FOM__IE__Body_template tmp_28; tmp_28.bsic() = mp__bsic; ies[12] = AbisOML__Types::ts__OML__IE(AbisOML__Types::OML__FOM__IE__Type::NM__ATT__BSIC, tmp_28); } current_location.update_lineno(301); /* BTS_Tests_OML.ttcn, line 301 */ AbisOML__Types::OML__PDU cmd(AbisOML__Types::ts__OML__SetBtsAttr(AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), ies).valueof()); current_location.update_lineno(302); /* BTS_Tests_OML.ttcn, line 302 */ AbisOML__Types::OML__PDU_template exp__ack(AbisOML__Types::f__OML__make__ack__exp(cmd)); current_location.update_lineno(303); /* BTS_Tests_OML.ttcn, line 303 */ AbisOML__Types::OML__PDU_template exp__nack(AbisOML__Types::f__OML__make__nack__exp(cmd, AbisOML__Types::OML__FOM__NackCause_template(ANY_VALUE))); current_location.update_lineno(304); /* BTS_Tests_OML.ttcn, line 304 */ AbisOML__Types::OML__PDU rx; current_location.update_lineno(306); /* BTS_Tests_OML.ttcn, line 306 */ BSC__OML__CT_component_OML.send(cmd, FALSE, NULL); current_location.update_lineno(307); /* BTS_Tests_OML.ttcn, line 307 */ { tmp_29: alt_status tmp_29_alt_flag_0 = ALT_MAYBE; alt_status tmp_29_alt_flag_1 = ALT_MAYBE; alt_status tmp_29_alt_flag_2 = ALT_MAYBE; alt_status tmp_29_alt_flag_3 = ALT_MAYBE; alt_status tmp_29_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_29_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(308); /* BTS_Tests_OML.ttcn, line 308 */ tmp_29_alt_flag_0 = BSC__OML__CT_component_OML.receive(exp__ack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_29_alt_flag_0 == ALT_YES) { current_location.update_lineno(309); /* BTS_Tests_OML.ttcn, line 309 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_29_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(311); /* BTS_Tests_OML.ttcn, line 311 */ tmp_29_alt_flag_1 = BSC__OML__CT_component_OML.receive(exp__nack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_29_alt_flag_1 == ALT_YES) { current_location.update_lineno(312); /* BTS_Tests_OML.ttcn, line 312 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("SET BTS ATTRIBUTES NACK "),exp__nack.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_29_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(315); /* BTS_Tests_OML.ttcn, line 315 */ tmp_29_alt_flag_2 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__MsgType(AbisOML__Types::OML__FOM__MessageType_template(AbisOML__Types::OML__FOM__MessageType::NM__MT__SET__BTS__ATTR__ACK), AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__IE__List_template(OMIT_VALUE)), NULL, any_compref, NULL, NULL, NULL); if (tmp_29_alt_flag_2 == ALT_YES) { current_location.update_lineno(316); /* BTS_Tests_OML.ttcn, line 316 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("SET BTS ATTRIBUTES ACK without IEs"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_29_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(318); /* BTS_Tests_OML.ttcn, line 318 */ tmp_29_alt_flag_3 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_29_alt_flag_3 == ALT_YES) { current_location.update_lineno(318); /* BTS_Tests_OML.ttcn, line 318 */ goto tmp_29; } } if (tmp_29_default_flag == ALT_MAYBE) { tmp_29_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_29_default_flag == ALT_YES || tmp_29_default_flag == ALT_BREAK) break; else if (tmp_29_default_flag == ALT_REPEAT) goto tmp_29; } current_location.update_lineno(307); /* BTS_Tests_OML.ttcn, line 307 */ if (tmp_29_alt_flag_0 == ALT_NO && tmp_29_alt_flag_1 == ALT_NO && tmp_29_alt_flag_2 == ALT_NO && tmp_29_alt_flag_3 == ALT_NO && tmp_29_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 307 and 319."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__bts__setattr(const COMPONENT& component_reference) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_bts_setattr("); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_bts_setattr", text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__send__exp__no__resp(const AbisOML__Types::OML__PDU_template& tx, const CHARSTRING& err__msg, const FLOAT& ) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 323, TTCN_Location::LOCATION_FUNCTION, "f_oml_send_exp_no_resp"); current_location.update_lineno(326); /* BTS_Tests_OML.ttcn, line 326 */ TIMER T("T", 5.0); current_location.update_lineno(328); /* BTS_Tests_OML.ttcn, line 328 */ BSC__OML__CT_component_OML.send(tx, FALSE, NULL); current_location.update_lineno(329); /* BTS_Tests_OML.ttcn, line 329 */ T.start(); current_location.update_lineno(330); /* BTS_Tests_OML.ttcn, line 330 */ { tmp_30: alt_status tmp_30_alt_flag_0 = ALT_MAYBE; alt_status tmp_30_alt_flag_1 = ALT_MAYBE; alt_status tmp_30_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_30_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(331); /* BTS_Tests_OML.ttcn, line 331 */ tmp_30_alt_flag_0 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_30_alt_flag_0 == ALT_YES) { current_location.update_lineno(332); /* BTS_Tests_OML.ttcn, line 332 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),err__msg.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_30_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(334); /* BTS_Tests_OML.ttcn, line 334 */ tmp_30_alt_flag_1 = T.timeout(NULL); if (tmp_30_alt_flag_1 == ALT_YES) { current_location.update_lineno(335); /* BTS_Tests_OML.ttcn, line 335 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_30_default_flag == ALT_MAYBE) { tmp_30_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_30_default_flag == ALT_YES || tmp_30_default_flag == ALT_BREAK) break; else if (tmp_30_default_flag == ALT_REPEAT) goto tmp_30; } current_location.update_lineno(330); /* BTS_Tests_OML.ttcn, line 330 */ if (tmp_30_alt_flag_0 == ALT_NO && tmp_30_alt_flag_1 == ALT_NO && tmp_30_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 330 and 337."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__send__exp__no__resp(const COMPONENT& component_reference, const AbisOML__Types::OML__PDU_template& tx, const CHARSTRING& err__msg, const FLOAT& tout) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_send_exp_no_resp("); tx.log(); TTCN_Logger::log_event_str(", "); err__msg.log(); TTCN_Logger::log_event_str(", "); tout.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_send_exp_no_resp", text_buf); tx.encode_text(text_buf); err__msg.encode_text(text_buf); tout.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } AbisOML__Types::OML__PDU f__oml__exp__rx(const AbisOML__Types::OML__PDU_template& exp__rx, const CHARSTRING& err__msg) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 340, TTCN_Location::LOCATION_FUNCTION, "f_oml_exp_rx"); current_location.update_lineno(343); /* BTS_Tests_OML.ttcn, line 343 */ AbisOML__Types::OML__PDU rx; current_location.update_lineno(344); /* BTS_Tests_OML.ttcn, line 344 */ TIMER T("T", 5.0); current_location.update_lineno(346); /* BTS_Tests_OML.ttcn, line 346 */ T.start(); current_location.update_lineno(347); /* BTS_Tests_OML.ttcn, line 347 */ { tmp_31: alt_status tmp_31_alt_flag_0 = ALT_MAYBE; alt_status tmp_31_alt_flag_1 = ALT_MAYBE; alt_status tmp_31_alt_flag_2 = ALT_MAYBE; alt_status tmp_31_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_31_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(348); /* BTS_Tests_OML.ttcn, line 348 */ tmp_31_alt_flag_0 = BSC__OML__CT_component_OML.receive(exp__rx, &(rx), any_compref, NULL, NULL, NULL); if (tmp_31_alt_flag_0 == ALT_YES) { current_location.update_lineno(349); /* BTS_Tests_OML.ttcn, line 349 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_31_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(351); /* BTS_Tests_OML.ttcn, line 351 */ tmp_31_alt_flag_1 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_31_alt_flag_1 == ALT_YES) { current_location.update_lineno(351); /* BTS_Tests_OML.ttcn, line 351 */ goto tmp_31; } } if (tmp_31_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(352); /* BTS_Tests_OML.ttcn, line 352 */ tmp_31_alt_flag_2 = T.timeout(NULL); if (tmp_31_alt_flag_2 == ALT_YES) { current_location.update_lineno(353); /* BTS_Tests_OML.ttcn, line 353 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Timeout waiting for "),err__msg.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_31_default_flag == ALT_MAYBE) { tmp_31_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_31_default_flag == ALT_YES || tmp_31_default_flag == ALT_BREAK) break; else if (tmp_31_default_flag == ALT_REPEAT) goto tmp_31; } current_location.update_lineno(347); /* BTS_Tests_OML.ttcn, line 347 */ if (tmp_31_alt_flag_0 == ALT_NO && tmp_31_alt_flag_1 == ALT_NO && tmp_31_alt_flag_2 == ALT_NO && tmp_31_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 347 and 355."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(356); /* BTS_Tests_OML.ttcn, line 356 */ return rx; } void start_f__oml__exp__rx(const COMPONENT& component_reference, const AbisOML__Types::OML__PDU_template& exp__rx, const CHARSTRING& err__msg) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_exp_rx("); exp__rx.log(); TTCN_Logger::log_event_str(", "); err__msg.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_exp_rx", text_buf); exp__rx.encode_text(text_buf); err__msg.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__send__exp__fail__rep(const AbisOML__Types::OML__PDU_template& tx, const CHARSTRING& , const AbisOML__Types::OML__FOM__EventType_template& evt, const AbisOML__Types::OML__FOM__Severity_template& severity, const AbisOML__Types::OML__FOM__ProbableCause_template& cause, const FLOAT& ) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 360, TTCN_Location::LOCATION_FUNCTION, "f_oml_send_exp_fail_rep"); current_location.update_lineno(366); /* BTS_Tests_OML.ttcn, line 366 */ AbisOML__Types::OML__FOM__ObjectClass_template obj__class(ANY_VALUE); current_location.update_lineno(367); /* BTS_Tests_OML.ttcn, line 367 */ AbisOML__Types::OML__FOM__ObjectInstance_template obj__inst(ANY_VALUE); current_location.update_lineno(368); /* BTS_Tests_OML.ttcn, line 368 */ { boolean tmp_35; { boolean tmp_32 = tx.is_bound(); if(tmp_32) { switch (tx.get_selection()) { case UNINITIALIZED_TEMPLATE: tmp_32 = FALSE; break; case ANY_VALUE: tmp_32 = FALSE; break; case SPECIFIC_VALUE: { if(tmp_32) { const AbisOML__Types::OML__PDU_template& tmp_33 = tx; const AbisOML__Types::OML__Union_template& tmp_34 = tmp_33.u(); tmp_32 = tmp_34.is_bound(); if (tmp_32) { tmp_32 = tmp_34.ischosen(AbisOML__Types::OML__Union::ALT_fom); } } break;} default: tmp_32 = FALSE; break; } } tmp_35 = tmp_32; } if (tmp_35) { current_location.update_lineno(369); /* BTS_Tests_OML.ttcn, line 369 */ obj__class = const_cast< const AbisOML__Types::OML__PDU_template&>(tx).u().fom().hdr().obj__class(); current_location.update_lineno(370); /* BTS_Tests_OML.ttcn, line 370 */ obj__inst = const_cast< const AbisOML__Types::OML__PDU_template&>(tx).u().fom().hdr().obj__inst(); } } current_location.update_lineno(372); /* BTS_Tests_OML.ttcn, line 372 */ AbisOML__Types::OML__PDU_template exp__fail(AbisOML__Types::tr__OML__FailureEvtRep(obj__class, obj__inst, evt, severity, cause)); current_location.update_lineno(374); /* BTS_Tests_OML.ttcn, line 374 */ BSC__OML__CT_component_OML.send(tx, FALSE, NULL); current_location.update_lineno(375); /* BTS_Tests_OML.ttcn, line 375 */ f__oml__exp__rx(exp__fail, cs_6); } void start_f__oml__send__exp__fail__rep(const COMPONENT& component_reference, const AbisOML__Types::OML__PDU_template& tx, const CHARSTRING& err__msg, const AbisOML__Types::OML__FOM__EventType_template& evt, const AbisOML__Types::OML__FOM__Severity_template& severity, const AbisOML__Types::OML__FOM__ProbableCause_template& cause, const FLOAT& tout) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_send_exp_fail_rep("); tx.log(); TTCN_Logger::log_event_str(", "); err__msg.log(); TTCN_Logger::log_event_str(", "); evt.log(); TTCN_Logger::log_event_str(", "); severity.log(); TTCN_Logger::log_event_str(", "); cause.log(); TTCN_Logger::log_event_str(", "); tout.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_send_exp_fail_rep", text_buf); tx.encode_text(text_buf); err__msg.encode_text(text_buf); evt.encode_text(text_buf); severity.encode_text(text_buf); cause.encode_text(text_buf); tout.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__send__exp__nack(const AbisOML__Types::OML__PDU_template& tx, const AbisOML__Types::OML__FOM__NackCause_template& exp__cause, const FLOAT& ) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 379, TTCN_Location::LOCATION_FUNCTION, "f_oml_send_exp_nack"); current_location.update_lineno(382); /* BTS_Tests_OML.ttcn, line 382 */ TIMER T("T", 5.0); current_location.update_lineno(384); /* BTS_Tests_OML.ttcn, line 384 */ AbisOML__Types::OML__PDU_template exp__nack(AbisOML__Types::f__OML__make__nack__exp(tx.valueof(), exp__cause)); current_location.update_lineno(385); /* BTS_Tests_OML.ttcn, line 385 */ AbisOML__Types::OML__PDU_template exp__ack(AbisOML__Types::f__OML__make__ack__exp(tx.valueof())); current_location.update_lineno(386); /* BTS_Tests_OML.ttcn, line 386 */ AbisOML__Types::OML__PDU rx; current_location.update_lineno(388); /* BTS_Tests_OML.ttcn, line 388 */ BSC__OML__CT_component_OML.send(tx, FALSE, NULL); current_location.update_lineno(389); /* BTS_Tests_OML.ttcn, line 389 */ T.start(); current_location.update_lineno(390); /* BTS_Tests_OML.ttcn, line 390 */ { tmp_38: alt_status tmp_38_alt_flag_0 = ALT_MAYBE; alt_status tmp_38_alt_flag_1 = ALT_MAYBE; alt_status tmp_38_alt_flag_2 = ALT_MAYBE; alt_status tmp_38_alt_flag_3 = ALT_MAYBE; alt_status tmp_38_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_38_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(391); /* BTS_Tests_OML.ttcn, line 391 */ tmp_38_alt_flag_0 = BSC__OML__CT_component_OML.receive(exp__ack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_38_alt_flag_0 == ALT_YES) { current_location.update_lineno(392); /* BTS_Tests_OML.ttcn, line 392 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected ACK "),rx.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_38_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(394); /* BTS_Tests_OML.ttcn, line 394 */ tmp_38_alt_flag_1 = BSC__OML__CT_component_OML.receive(exp__nack, &(rx), any_compref, NULL, NULL, NULL); if (tmp_38_alt_flag_1 == ALT_YES) { current_location.update_lineno(395); /* BTS_Tests_OML.ttcn, line 395 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_38_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(397); /* BTS_Tests_OML.ttcn, line 397 */ tmp_38_alt_flag_2 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_38_alt_flag_2 == ALT_YES) { current_location.update_lineno(397); /* BTS_Tests_OML.ttcn, line 397 */ goto tmp_38; } } if (tmp_38_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(398); /* BTS_Tests_OML.ttcn, line 398 */ tmp_38_alt_flag_3 = T.timeout(NULL); if (tmp_38_alt_flag_3 == ALT_YES) { current_location.update_lineno(399); /* BTS_Tests_OML.ttcn, line 399 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Timeout waiting for NACK "),exp__nack.log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_38_default_flag == ALT_MAYBE) { tmp_38_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_38_default_flag == ALT_YES || tmp_38_default_flag == ALT_BREAK) break; else if (tmp_38_default_flag == ALT_REPEAT) goto tmp_38; } current_location.update_lineno(390); /* BTS_Tests_OML.ttcn, line 390 */ if (tmp_38_alt_flag_0 == ALT_NO && tmp_38_alt_flag_1 == ALT_NO && tmp_38_alt_flag_2 == ALT_NO && tmp_38_alt_flag_3 == ALT_NO && tmp_38_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 390 and 401."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } } void start_f__oml__send__exp__nack(const COMPONENT& component_reference, const AbisOML__Types::OML__PDU_template& tx, const AbisOML__Types::OML__FOM__NackCause_template& exp__cause, const FLOAT& tout) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_send_exp_nack("); tx.log(); TTCN_Logger::log_event_str(", "); exp__cause.log(); TTCN_Logger::log_event_str(", "); tout.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_send_exp_nack", text_buf); tx.encode_text(text_buf); exp__cause.encode_text(text_buf); tout.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } void f__oml__getattr(const AbisOML__Types::OML__PDU_template& exp__rx) { TTCN_Location current_location("BTS_Tests_OML.ttcn", 405, TTCN_Location::LOCATION_FUNCTION, "f_oml_getattr"); current_location.update_lineno(407); /* BTS_Tests_OML.ttcn, line 407 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(408); /* BTS_Tests_OML.ttcn, line 408 */ VALUE_ARRAY attr__li; attr__li[0] = AbisOML__Types::OML__FOM__IE__Type::NM__ATT__MANUF__ID; attr__li[1] = AbisOML__Types::OML__FOM__IE__Type::NM__ATT__SW__CONFIG; current_location.update_lineno(409); /* BTS_Tests_OML.ttcn, line 409 */ OCTETSTRING req__attr(os_0); { current_location.update_lineno(410); /* BTS_Tests_OML.ttcn, line 410 */ INTEGER i(0); current_location.update_lineno(410); /* BTS_Tests_OML.ttcn, line 410 */ for ( ; ; ) { current_location.update_lineno(410); /* BTS_Tests_OML.ttcn, line 410 */ if (!(i < attr__li.lengthof())) break; current_location.update_lineno(411); /* BTS_Tests_OML.ttcn, line 411 */ { OCTETSTRING tmp_39; tmp_39 = (req__attr + int2oct(AbisOML__Types::OML__FOM__IE__Type::enum2int(const_cast< const VALUE_ARRAY&>(attr__li)[i]), 1)); req__attr = tmp_39; } current_location.update_lineno(410); /* BTS_Tests_OML.ttcn, line 410 */ { INTEGER tmp_40; ++i; } } } current_location.update_lineno(413); /* BTS_Tests_OML.ttcn, line 413 */ AbisOML__Types::OML__PDU cmd(AbisOML__Types::ts__OML__GetAttributes(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), OCTETSTRING_template(req__attr)).valueof()); current_location.update_lineno(415); /* BTS_Tests_OML.ttcn, line 415 */ BSC__OML__CT_component_OML.send(cmd, FALSE, NULL); current_location.update_lineno(416); /* BTS_Tests_OML.ttcn, line 416 */ AbisOML__Types::OML__PDU rx(f__oml__exp__rx(exp__rx, cs_7)); current_location.update_lineno(418); /* BTS_Tests_OML.ttcn, line 418 */ AbisOML__Types::OML__FOM__IE__Body ie__ari(AbisOML__Types::f__OML__FOM__get__ie(const_cast< const AbisOML__Types::OML__PDU&>(rx).u().fom(), AbisOML__Types::OML__FOM__IE__Type::NM__ATT__GET__ARI)); current_location.update_lineno(419); /* BTS_Tests_OML.ttcn, line 419 */ AbisOML__Types::OML__FOM__IE__Body manuf__id(AbisOML__Types::f__OML__FOM__IE__List__get__ie(const_cast< const AbisOML__Types::OML__FOM__IE__Body&>(ie__ari).ari().ies(), AbisOML__Types::OML__FOM__IE__Type::NM__ATT__MANUF__ID)); current_location.update_lineno(420); /* BTS_Tests_OML.ttcn, line 420 */ BSC__OML__CT_component_g__bts__features = oct2bit(const_cast< const AbisOML__Types::OML__FOM__IE__Body&>(manuf__id).other().payload()); } void start_f__oml__getattr(const COMPONENT& component_reference, const AbisOML__Types::OML__PDU_template& exp__rx) { TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_getattr("); exp__rx.log(); TTCN_Logger::log_event_str(") on component "); component_reference.log(); TTCN_Logger::log_char('.'); TTCN_Logger::end_event(); Text_Buf text_buf; TTCN_Runtime::prepare_start_component(component_reference, "BTS_Tests_OML", "f_oml_getattr", text_buf); exp__rx.encode_text(text_buf); TTCN_Runtime::send_start_component(text_buf); } verdicttype testcase_TC__oml__selftest(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 425, TTCN_Location::LOCATION_TESTCASE, "TC_oml_selftest"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_oml_selftest", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(426); /* BTS_Tests_OML.ttcn, line 426 */ OCTETSTRING state__chg__bts(os_3); current_location.update_lineno(427); /* BTS_Tests_OML.ttcn, line 427 */ OCTETSTRING set__attr__bts(os_4); current_location.update_lineno(428); /* BTS_Tests_OML.ttcn, line 428 */ OCTETSTRING set__attr__radio(os_5); current_location.update_lineno(429); /* BTS_Tests_OML.ttcn, line 429 */ OCTETSTRING set__attr__ts0(os_6); current_location.update_lineno(430); /* BTS_Tests_OML.ttcn, line 430 */ OCTETSTRING ipa__rsl__connect(os_7); current_location.update_lineno(432); /* BTS_Tests_OML.ttcn, line 432 */ try { TTCN_Logger::begin_event(TTCN_USER); AbisOML__Types::dec__OML__PDU(os_3).log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } current_location.update_lineno(433); /* BTS_Tests_OML.ttcn, line 433 */ try { TTCN_Logger::begin_event(TTCN_USER); AbisOML__Types::dec__OML__PDU(os_4).log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } current_location.update_lineno(434); /* BTS_Tests_OML.ttcn, line 434 */ try { TTCN_Logger::begin_event(TTCN_USER); AbisOML__Types::dec__OML__PDU(os_5).log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } current_location.update_lineno(435); /* BTS_Tests_OML.ttcn, line 435 */ try { TTCN_Logger::begin_event(TTCN_USER); AbisOML__Types::dec__OML__PDU(os_6).log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } current_location.update_lineno(436); /* BTS_Tests_OML.ttcn, line 436 */ try { TTCN_Logger::begin_event(TTCN_USER); AbisOML__Types::dec__OML__PDU(os_7).log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_oml_selftest was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__oml__nothing(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 439, TTCN_Location::LOCATION_TESTCASE, "TC_oml_nothing"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_oml_nothing", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(440); /* BTS_Tests_OML.ttcn, line 440 */ f__init__oml(cs_8); current_location.update_lineno(441); /* BTS_Tests_OML.ttcn, line 441 */ Osmocom__Types::f__sleep(1.0e2); current_location.update_lineno(442); /* BTS_Tests_OML.ttcn, line 442 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_oml_nothing was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__mdisc(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 446, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_mdisc"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_mdisc", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(447); /* BTS_Tests_OML.ttcn, line 447 */ f__init__oml(cs_9); current_location.update_lineno(449); /* BTS_Tests_OML.ttcn, line 449 */ AbisOML__Types::OML__PDU mmi__pdu; mmi__pdu.mdisc() = AbisOML__Types::OML__MessageDiscriminator::ABIS__OM__MDISC__MMI; mmi__pdu.placement() = AbisOML__Types::OML__Placement::ABIS__OM__PLACEMENT__ONLY; mmi__pdu.sequence() = 0; mmi__pdu.u().other() = os_8; current_location.update_lineno(458); /* BTS_Tests_OML.ttcn, line 458 */ f__oml__send__exp__fail__rep(AbisOML__Types::OML__PDU_template(mmi__pdu), cs_10, f__oml__send__exp__fail__rep_evt_defval, f__oml__send__exp__fail__rep_severity_defval, f__oml__send__exp__fail__rep_cause_defval, f__oml__send__exp__fail__rep_tout_defval); current_location.update_lineno(459); /* BTS_Tests_OML.ttcn, line 459 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_mdisc was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__msgtype(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 463, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_msgtype"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_msgtype", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(464); /* BTS_Tests_OML.ttcn, line 464 */ f__init__oml(cs_11); current_location.update_lineno(465); /* BTS_Tests_OML.ttcn, line 465 */ AbisOML__Types::OML__PDU tx(AbisOML__Types::ts__OML__MsgType(AbisOML__Types::OML__FOM__MessageType_template(AbisOML__Types::OML__FOM__MessageType::NM__MT__ESTABLISH__TEI), AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::ts__OML__ObjectInstance(0, 255, 255), AbisOML__Types::OML__FOM__IE__List_template(OMIT_VALUE)).valueof()); current_location.update_lineno(467); /* BTS_Tests_OML.ttcn, line 467 */ f__oml__send__exp__fail__rep(AbisOML__Types::OML__PDU_template(tx), cs_12, f__oml__send__exp__fail__rep_evt_defval, f__oml__send__exp__fail__rep_severity_defval, f__oml__send__exp__fail__rep_cause_defval, f__oml__send__exp__fail__rep_tout_defval); current_location.update_lineno(468); /* BTS_Tests_OML.ttcn, line 468 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_msgtype was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__short__length(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 472, TTCN_Location::LOCATION_TESTCASE, "TC_short_length"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_short_length", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(473); /* BTS_Tests_OML.ttcn, line 473 */ f__init__oml(cs_13); current_location.update_lineno(476); /* BTS_Tests_OML.ttcn, line 476 */ BSC__OML__CT_component_OML.send(os_9, FALSE, NULL); current_location.update_lineno(478); /* BTS_Tests_OML.ttcn, line 478 */ AbisOML__Types::OML__PDU_template exp__fail(AbisOML__Types::tr__OML__FailureEvtRep(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::ts__OML__ObjectInstance(0, 255, 255), AbisOML__Types::OML__FOM__EventType_template(ANY_VALUE), AbisOML__Types::OML__FOM__Severity_template(ANY_VALUE), AbisOML__Types::OML__FOM__ProbableCause_template(ANY_VALUE))); current_location.update_lineno(481); /* BTS_Tests_OML.ttcn, line 481 */ f__oml__exp__rx(exp__fail, cs_6); current_location.update_lineno(482); /* BTS_Tests_OML.ttcn, line 482 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_short_length was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__long__length(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 486, TTCN_Location::LOCATION_TESTCASE, "TC_long_length"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_long_length", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(487); /* BTS_Tests_OML.ttcn, line 487 */ f__init__oml(cs_14); current_location.update_lineno(489); /* BTS_Tests_OML.ttcn, line 489 */ BSC__OML__CT_component_OML.send(os_10, FALSE, NULL); current_location.update_lineno(491); /* BTS_Tests_OML.ttcn, line 491 */ AbisOML__Types::OML__PDU_template exp(AbisOML__Types::tr__OML__ChangeAdmStateACK(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::ts__OML__ObjectInstance(0, 255, 255), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED))); current_location.update_lineno(494); /* BTS_Tests_OML.ttcn, line 494 */ f__oml__exp__rx(exp, cs_15); current_location.update_lineno(495); /* BTS_Tests_OML.ttcn, line 495 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_long_length was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__placement(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 499, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_placement"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_placement", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(500); /* BTS_Tests_OML.ttcn, line 500 */ f__init__oml(cs_16); current_location.update_lineno(502); /* BTS_Tests_OML.ttcn, line 502 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS); current_location.update_lineno(503); /* BTS_Tests_OML.ttcn, line 503 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(505); /* BTS_Tests_OML.ttcn, line 505 */ AbisOML__Types::OML__PDU pdu(AbisOML__Types::ts__OML__ChangeAdmState(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED)).valueof()); current_location.update_lineno(507); /* BTS_Tests_OML.ttcn, line 507 */ pdu.placement() = AbisOML__Types::OML__Placement::ABIS__OM__PLACEMENT__FIRST; current_location.update_lineno(508); /* BTS_Tests_OML.ttcn, line 508 */ f__oml__send__exp__fail__rep(AbisOML__Types::OML__PDU_template(pdu), cs_17, f__oml__send__exp__fail__rep_evt_defval, f__oml__send__exp__fail__rep_severity_defval, f__oml__send__exp__fail__rep_cause_defval, f__oml__send__exp__fail__rep_tout_defval); current_location.update_lineno(510); /* BTS_Tests_OML.ttcn, line 510 */ pdu.placement() = AbisOML__Types::OML__Placement::ABIS__OM__PLACEMENT__MIDDLE; current_location.update_lineno(511); /* BTS_Tests_OML.ttcn, line 511 */ f__oml__send__exp__fail__rep(AbisOML__Types::OML__PDU_template(pdu), cs_18, f__oml__send__exp__fail__rep_evt_defval, f__oml__send__exp__fail__rep_severity_defval, f__oml__send__exp__fail__rep_cause_defval, f__oml__send__exp__fail__rep_tout_defval); current_location.update_lineno(513); /* BTS_Tests_OML.ttcn, line 513 */ pdu.placement() = AbisOML__Types::OML__Placement::ABIS__OM__PLACEMENT__LAST; current_location.update_lineno(514); /* BTS_Tests_OML.ttcn, line 514 */ f__oml__send__exp__fail__rep(AbisOML__Types::OML__PDU_template(pdu), cs_19, f__oml__send__exp__fail__rep_evt_defval, f__oml__send__exp__fail__rep_severity_defval, f__oml__send__exp__fail__rep_cause_defval, f__oml__send__exp__fail__rep_tout_defval); current_location.update_lineno(515); /* BTS_Tests_OML.ttcn, line 515 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_placement was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__seq(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 519, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_seq"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_seq", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(520); /* BTS_Tests_OML.ttcn, line 520 */ f__init__oml(cs_20); current_location.update_lineno(522); /* BTS_Tests_OML.ttcn, line 522 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS); current_location.update_lineno(523); /* BTS_Tests_OML.ttcn, line 523 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(524); /* BTS_Tests_OML.ttcn, line 524 */ AbisOML__Types::OML__PDU pdu(AbisOML__Types::ts__OML__ChangeAdmState(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED)).valueof()); current_location.update_lineno(526); /* BTS_Tests_OML.ttcn, line 526 */ BSC__OML__CT_component_OML.clear(); current_location.update_lineno(528); /* BTS_Tests_OML.ttcn, line 528 */ pdu.sequence() = 23; current_location.update_lineno(529); /* BTS_Tests_OML.ttcn, line 529 */ f__oml__send__exp__fail__rep(AbisOML__Types::OML__PDU_template(pdu), cs_21, f__oml__send__exp__fail__rep_evt_defval, f__oml__send__exp__fail__rep_severity_defval, f__oml__send__exp__fail__rep_cause_defval, f__oml__send__exp__fail__rep_tout_defval); current_location.update_lineno(530); /* BTS_Tests_OML.ttcn, line 530 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_seq was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__obj__class(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 534, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_obj_class"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_obj_class", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(535); /* BTS_Tests_OML.ttcn, line 535 */ f__init__oml(cs_22); current_location.update_lineno(537); /* BTS_Tests_OML.ttcn, line 537 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS); current_location.update_lineno(538); /* BTS_Tests_OML.ttcn, line 538 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(539); /* BTS_Tests_OML.ttcn, line 539 */ AbisOML__Types::OML__PDU pdu(AbisOML__Types::ts__OML__ChangeAdmState(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED)).valueof()); current_location.update_lineno(540); /* BTS_Tests_OML.ttcn, line 540 */ pdu.u().fom().hdr().obj__class() = AbisOML__Types::OML__FOM__ObjectClass::NM__OC__NULL; current_location.update_lineno(543); /* BTS_Tests_OML.ttcn, line 543 */ f__oml__send__exp__nack(AbisOML__Types::OML__PDU_template(pdu), AbisOML__Types::OML__FOM__NackCause_template(AbisOML__Types::OML__FOM__NackCause::NM__NACK__OBJCLASS__NOTSUPP), f__oml__send__exp__nack_tout_defval); current_location.update_lineno(544); /* BTS_Tests_OML.ttcn, line 544 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_obj_class was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__bts__nr(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 548, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_bts_nr"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_bts_nr", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(549); /* BTS_Tests_OML.ttcn, line 549 */ f__init__oml(cs_23); current_location.update_lineno(551); /* BTS_Tests_OML.ttcn, line 551 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS); current_location.update_lineno(552); /* BTS_Tests_OML.ttcn, line 552 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(250, 255, 255).valueof()); current_location.update_lineno(553); /* BTS_Tests_OML.ttcn, line 553 */ AbisOML__Types::OML__PDU pdu(AbisOML__Types::ts__OML__ChangeAdmState(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED)).valueof()); current_location.update_lineno(555); /* BTS_Tests_OML.ttcn, line 555 */ f__oml__send__exp__nack(AbisOML__Types::OML__PDU_template(pdu), AbisOML__Types::OML__FOM__NackCause_template(AbisOML__Types::OML__FOM__NackCause::NM__NACK__BTSNR__UNKN), f__oml__send__exp__nack_tout_defval); current_location.update_lineno(556); /* BTS_Tests_OML.ttcn, line 556 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_bts_nr was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__trx__nr(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 560, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_trx_nr"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_trx_nr", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(561); /* BTS_Tests_OML.ttcn, line 561 */ f__init__oml(cs_24); current_location.update_lineno(563); /* BTS_Tests_OML.ttcn, line 563 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__RADIO__CARRIER); current_location.update_lineno(564); /* BTS_Tests_OML.ttcn, line 564 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 250, 255).valueof()); current_location.update_lineno(565); /* BTS_Tests_OML.ttcn, line 565 */ AbisOML__Types::OML__PDU pdu(AbisOML__Types::ts__OML__ChangeAdmState(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED)).valueof()); current_location.update_lineno(567); /* BTS_Tests_OML.ttcn, line 567 */ f__oml__send__exp__nack(AbisOML__Types::OML__PDU_template(pdu), AbisOML__Types::OML__FOM__NackCause_template(AbisOML__Types::OML__FOM__NackCause::NM__NACK__TRXNR__UNKN), f__oml__send__exp__nack_tout_defval); current_location.update_lineno(568); /* BTS_Tests_OML.ttcn, line 568 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_trx_nr was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__wrong__ts__nr(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 572, TTCN_Location::LOCATION_TESTCASE, "TC_wrong_ts_nr"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_wrong_ts_nr", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(573); /* BTS_Tests_OML.ttcn, line 573 */ f__init__oml(cs_25); current_location.update_lineno(575); /* BTS_Tests_OML.ttcn, line 575 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__RADIO__CARRIER); current_location.update_lineno(576); /* BTS_Tests_OML.ttcn, line 576 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 0, 250).valueof()); current_location.update_lineno(577); /* BTS_Tests_OML.ttcn, line 577 */ AbisOML__Types::OML__PDU pdu(AbisOML__Types::ts__OML__ChangeAdmState(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), AbisOML__Types::OML__FOM__AdministrativeState_template(AbisOML__Types::OML__FOM__AdministrativeState::NM__STATE__LOCKED)).valueof()); current_location.update_lineno(579); /* BTS_Tests_OML.ttcn, line 579 */ f__oml__send__exp__nack(AbisOML__Types::OML__PDU_template(pdu), AbisOML__Types::OML__FOM__NackCause_template(AbisOML__Types::OML__FOM__NackCause::NM__NACK__OBJINST__UNKN), f__oml__send__exp__nack_tout_defval); current_location.update_lineno(580); /* BTS_Tests_OML.ttcn, line 580 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_wrong_ts_nr was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__radio__carrier__opstart(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 584, TTCN_Location::LOCATION_TESTCASE, "TC_radio_carrier_opstart"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_radio_carrier_opstart", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(585); /* BTS_Tests_OML.ttcn, line 585 */ f__init__oml(cs_26); current_location.update_lineno(587); /* BTS_Tests_OML.ttcn, line 587 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__RADIO__CARRIER); current_location.update_lineno(588); /* BTS_Tests_OML.ttcn, line 588 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 0, 255).valueof()); current_location.update_lineno(590); /* BTS_Tests_OML.ttcn, line 590 */ f__oml__radio__attr(0); current_location.update_lineno(591); /* BTS_Tests_OML.ttcn, line 591 */ f__oml__opstart(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), f__oml__opstart_exp__fail_defval, f__oml__opstart_exp__stchg_defval); current_location.update_lineno(592); /* BTS_Tests_OML.ttcn, line 592 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_radio_carrier_opstart was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__radio__carrier__opstart__noattr(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 596, TTCN_Location::LOCATION_TESTCASE, "TC_radio_carrier_opstart_noattr"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_radio_carrier_opstart_noattr", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(597); /* BTS_Tests_OML.ttcn, line 597 */ f__init__oml(cs_27); current_location.update_lineno(599); /* BTS_Tests_OML.ttcn, line 599 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__RADIO__CARRIER); current_location.update_lineno(600); /* BTS_Tests_OML.ttcn, line 600 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 0, 255).valueof()); current_location.update_lineno(603); /* BTS_Tests_OML.ttcn, line 603 */ f__oml__opstart(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), TRUE, f__oml__opstart_exp__stchg_defval); current_location.update_lineno(604); /* BTS_Tests_OML.ttcn, line 604 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_radio_carrier_opstart_noattr was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__bts__opstart(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 609, TTCN_Location::LOCATION_TESTCASE, "TC_bts_opstart"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_bts_opstart", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(610); /* BTS_Tests_OML.ttcn, line 610 */ f__init__oml(cs_28); current_location.update_lineno(612); /* BTS_Tests_OML.ttcn, line 612 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS); current_location.update_lineno(613); /* BTS_Tests_OML.ttcn, line 613 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(615); /* BTS_Tests_OML.ttcn, line 615 */ { tmp_47: alt_status tmp_47_alt_flag_0 = ALT_MAYBE; alt_status tmp_47_alt_flag_1 = ALT_MAYBE; alt_status tmp_47_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_47_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(616); /* BTS_Tests_OML.ttcn, line 616 */ tmp_47_alt_flag_0 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__SwActivatedRep(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255)), NULL, any_compref, NULL, NULL, NULL); if (tmp_47_alt_flag_0 == ALT_YES) { current_location.update_lineno(617); /* BTS_Tests_OML.ttcn, line 617 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_47_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(619); /* BTS_Tests_OML.ttcn, line 619 */ tmp_47_alt_flag_1 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_47_alt_flag_1 == ALT_YES) { current_location.update_lineno(619); /* BTS_Tests_OML.ttcn, line 619 */ goto tmp_47; } } if (tmp_47_default_flag == ALT_MAYBE) { tmp_47_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_47_default_flag == ALT_YES || tmp_47_default_flag == ALT_BREAK) break; else if (tmp_47_default_flag == ALT_REPEAT) goto tmp_47; } current_location.update_lineno(615); /* BTS_Tests_OML.ttcn, line 615 */ if (tmp_47_alt_flag_0 == ALT_NO && tmp_47_alt_flag_1 == ALT_NO && tmp_47_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 615 and 620."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(622); /* BTS_Tests_OML.ttcn, line 622 */ f__oml__bts__setattr(); current_location.update_lineno(623); /* BTS_Tests_OML.ttcn, line 623 */ f__oml__opstart(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), FALSE, AbisOML__Types::OML__FOM__OperationalState_template(AbisOML__Types::OML__FOM__OperationalState::NM__OPSTATE__ENABLED)); current_location.update_lineno(624); /* BTS_Tests_OML.ttcn, line 624 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_bts_opstart was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__bts__opstart__noattr(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 629, TTCN_Location::LOCATION_TESTCASE, "TC_bts_opstart_noattr"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_bts_opstart_noattr", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(630); /* BTS_Tests_OML.ttcn, line 630 */ f__init__oml(cs_29); current_location.update_lineno(632); /* BTS_Tests_OML.ttcn, line 632 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS); current_location.update_lineno(633); /* BTS_Tests_OML.ttcn, line 633 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 255, 255).valueof()); current_location.update_lineno(636); /* BTS_Tests_OML.ttcn, line 636 */ f__oml__opstart(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), TRUE, f__oml__opstart_exp__stchg_defval); current_location.update_lineno(637); /* BTS_Tests_OML.ttcn, line 637 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_bts_opstart_noattr was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__ts__opstart(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 641, TTCN_Location::LOCATION_TESTCASE, "TC_ts_opstart"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_ts_opstart", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(642); /* BTS_Tests_OML.ttcn, line 642 */ f__init__oml(cs_30); current_location.update_lineno(644); /* BTS_Tests_OML.ttcn, line 644 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__CHANNEL); current_location.update_lineno(645); /* BTS_Tests_OML.ttcn, line 645 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 0, 1).valueof()); current_location.update_lineno(647); /* BTS_Tests_OML.ttcn, line 647 */ f__oml__ts__attr(0, 1); current_location.update_lineno(648); /* BTS_Tests_OML.ttcn, line 648 */ f__oml__opstart(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), f__oml__opstart_exp__fail_defval, f__oml__opstart_exp__stchg_defval); current_location.update_lineno(649); /* BTS_Tests_OML.ttcn, line 649 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_ts_opstart was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__ts__opstart__noattr(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 654, TTCN_Location::LOCATION_TESTCASE, "TC_ts_opstart_noattr"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_ts_opstart_noattr", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(655); /* BTS_Tests_OML.ttcn, line 655 */ f__init__oml(cs_31); current_location.update_lineno(657); /* BTS_Tests_OML.ttcn, line 657 */ AbisOML__Types::OML__FOM__ObjectClass obj__class(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__CHANNEL); current_location.update_lineno(658); /* BTS_Tests_OML.ttcn, line 658 */ AbisOML__Types::OML__FOM__ObjectInstance obj__inst(AbisOML__Types::ts__OML__ObjectInstance(BSC__OML__CT_component_g__bts__nr, 0, 1).valueof()); current_location.update_lineno(661); /* BTS_Tests_OML.ttcn, line 661 */ f__oml__opstart(AbisOML__Types::OML__FOM__ObjectClass_template(obj__class), AbisOML__Types::OML__FOM__ObjectInstance_template(obj__inst), TRUE, f__oml__opstart_exp__stchg_defval); current_location.update_lineno(662); /* BTS_Tests_OML.ttcn, line 662 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_ts_opstart_noattr was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__initial__state__reports(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 666, TTCN_Location::LOCATION_TESTCASE, "TC_initial_state_reports"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_initial_state_reports", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(667); /* BTS_Tests_OML.ttcn, line 667 */ f__init__oml(cs_32); current_location.update_lineno(669); /* BTS_Tests_OML.ttcn, line 669 */ { size_t tmp_48_state[3]; tmp_48_state[0]=2; tmp_48_state[1]=2; tmp_48_state[2]=2; alt_status tmp_48_alt_flag[4]; tmp_48: for(size_t tmp_i=0; tmp_i<3; tmp_i++) tmp_48_alt_flag[tmp_i]=ALT_UNCHECKED; tmp_48_alt_flag[3]=ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for( ; ; ) { if(tmp_48_state[0]==1 && tmp_48_state[1]==1 && tmp_48_state[2]==1) break; current_location.update_lineno(670); /* BTS_Tests_OML.ttcn, line 670 */ if(tmp_48_alt_flag[0]==ALT_UNCHECKED) { if(tmp_48_state[0]==2) { tmp_48_alt_flag[0]=ALT_MAYBE; } else tmp_48_alt_flag[0]=ALT_NO; } if(tmp_48_alt_flag[0]==ALT_MAYBE) { tmp_48_alt_flag[0]=BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__StateChgEvtRep(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__SITE__MANAGER), AbisOML__Types::ts__OML__ObjectInstance(255, 255, 255), AbisOML__Types::OML__FOM__OperationalState_template(AbisOML__Types::OML__FOM__OperationalState::NM__OPSTATE__ENABLED), AbisOML__Types::OML__FOM__AvailabilityStatus_template(AbisOML__Types::OML__FOM__AvailabilityStatus::NM__AVSTATE__OK), AbisOML__Types::tr__OML__StateChgEvtRep_admstate_defval), NULL, any_compref, NULL, NULL, NULL); if(tmp_48_alt_flag[0]==ALT_YES) { tmp_48_state[0]=1; goto tmp_48; } } current_location.update_lineno(672); /* BTS_Tests_OML.ttcn, line 672 */ if(tmp_48_alt_flag[1]==ALT_UNCHECKED) { if(tmp_48_state[1]==2) { tmp_48_alt_flag[1]=ALT_MAYBE; } else tmp_48_alt_flag[1]=ALT_NO; } if(tmp_48_alt_flag[1]==ALT_MAYBE) { tmp_48_alt_flag[1]=BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__StateChgEvtRep(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::ts__OML__ObjectInstance(0, 255, 255), AbisOML__Types::OML__FOM__OperationalState_template(AbisOML__Types::OML__FOM__OperationalState::NM__OPSTATE__DISABLED), AbisOML__Types::OML__FOM__AvailabilityStatus_template(AbisOML__Types::OML__FOM__AvailabilityStatus::NM__AVSTATE__DEPENDENCY), AbisOML__Types::tr__OML__StateChgEvtRep_admstate_defval), NULL, any_compref, NULL, NULL, NULL); if(tmp_48_alt_flag[1]==ALT_YES) { tmp_48_state[1]=1; goto tmp_48; } } current_location.update_lineno(674); /* BTS_Tests_OML.ttcn, line 674 */ if(tmp_48_alt_flag[2]==ALT_UNCHECKED) { if(tmp_48_state[2]==2) { tmp_48_alt_flag[2]=ALT_MAYBE; } else tmp_48_alt_flag[2]=ALT_NO; } if(tmp_48_alt_flag[2]==ALT_MAYBE) { tmp_48_alt_flag[2]=BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__StateChgEvtRep(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::ts__OML__ObjectInstance(0, 255, 255), AbisOML__Types::OML__FOM__OperationalState_template(AbisOML__Types::OML__FOM__OperationalState::NM__OPSTATE__DISABLED), AbisOML__Types::OML__FOM__AvailabilityStatus_template(AbisOML__Types::OML__FOM__AvailabilityStatus::NM__AVSTATE__DEPENDENCY), AbisOML__Types::tr__OML__StateChgEvtRep_admstate_defval), NULL, any_compref, NULL, NULL, NULL); if(tmp_48_alt_flag[2]==ALT_YES) { tmp_48_state[2]=1; goto tmp_48; } } if(tmp_48_alt_flag[3]==ALT_MAYBE) { tmp_48_alt_flag[3]=TTCN_Default::try_altsteps(first_run); if(tmp_48_alt_flag[3]==ALT_YES || tmp_48_alt_flag[3]==ALT_BREAK) break; else if(tmp_48_alt_flag[3]==ALT_REPEAT) goto tmp_48; } current_location.update_lineno(669); /* BTS_Tests_OML.ttcn, line 669 */ for(size_t tmp_i=0; tmp_i<4; tmp_i++) if(tmp_48_alt_flag[tmp_i]!=ALT_NO) goto tmp_48_newsnapshot; TTCN_error("None of the branches can be chosen in the interleave statement in file BTS_Tests_OML.ttcn between lines 669 and 676."); tmp_48_newsnapshot: TTCN_Snapshot::take_new(TRUE); first_run = FALSE; continue; current_location.update_lineno(669); /* BTS_Tests_OML.ttcn, line 669 */ } } current_location.update_lineno(677); /* BTS_Tests_OML.ttcn, line 677 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_initial_state_reports was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__ipa__rsl__connect__nack(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 681, TTCN_Location::LOCATION_TESTCASE, "TC_ipa_rsl_connect_nack"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_ipa_rsl_connect_nack", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(682); /* BTS_Tests_OML.ttcn, line 682 */ TIMER T("T", 2.0); current_location.update_lineno(684); /* BTS_Tests_OML.ttcn, line 684 */ AbisOML__Types::OML__FOM__ObjectInstance_template obj__inst(AbisOML__Types::ts__OML__ObjectInstance(0, 200, 255)); current_location.update_lineno(686); /* BTS_Tests_OML.ttcn, line 686 */ f__init__oml(cs_33); current_location.update_lineno(688); /* BTS_Tests_OML.ttcn, line 688 */ BSC__OML__CT_component_OML.send(AbisOML__Types::ts__OML__IPA__RslConnect(obj__inst, INTEGER_template(0), INTEGER_template(65535)), FALSE, NULL); current_location.update_lineno(690); /* BTS_Tests_OML.ttcn, line 690 */ T.start(); current_location.update_lineno(691); /* BTS_Tests_OML.ttcn, line 691 */ { tmp_49: alt_status tmp_49_alt_flag_0 = ALT_MAYBE; alt_status tmp_49_alt_flag_1 = ALT_MAYBE; alt_status tmp_49_alt_flag_2 = ALT_MAYBE; alt_status tmp_49_alt_flag_3 = ALT_MAYBE; alt_status tmp_49_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_49_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(692); /* BTS_Tests_OML.ttcn, line 692 */ tmp_49_alt_flag_0 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__IPA__MsgType(AbisOML__Types::OML__FOM__MessageType_template(AbisOML__Types::OML__FOM__MessageType::NM__MT__IPACC__RSL__CONNECT__NACK), AbisOML__Types::tr__OML__IPA__MsgType_obj__class_defval, AbisOML__Types::tr__OML__IPA__MsgType_obj__inst_defval, AbisOML__Types::tr__OML__IPA__MsgType_ies_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_49_alt_flag_0 == ALT_YES) { current_location.update_lineno(693); /* BTS_Tests_OML.ttcn, line 693 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_49_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(695); /* BTS_Tests_OML.ttcn, line 695 */ tmp_49_alt_flag_1 = BSC__OML__CT_component_OML.receive(AbisOML__Types::tr__OML__IPA__MsgType(AbisOML__Types::OML__FOM__MessageType_template(AbisOML__Types::OML__FOM__MessageType::NM__MT__IPACC__RSL__CONNECT__ACK), AbisOML__Types::tr__OML__IPA__MsgType_obj__class_defval, AbisOML__Types::tr__OML__IPA__MsgType_obj__inst_defval, AbisOML__Types::tr__OML__IPA__MsgType_ies_defval), NULL, any_compref, NULL, NULL, NULL); if (tmp_49_alt_flag_1 == ALT_YES) { current_location.update_lineno(696); /* BTS_Tests_OML.ttcn, line 696 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("RSL Connect ACK is not expected"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_49_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(698); /* BTS_Tests_OML.ttcn, line 698 */ tmp_49_alt_flag_2 = BSC__OML__CT_component_OML.receive(any_compref, NULL, NULL, NULL); if (tmp_49_alt_flag_2 == ALT_YES) { current_location.update_lineno(698); /* BTS_Tests_OML.ttcn, line 698 */ goto tmp_49; } } if (tmp_49_alt_flag_3 == ALT_MAYBE) { current_location.update_lineno(699); /* BTS_Tests_OML.ttcn, line 699 */ tmp_49_alt_flag_3 = T.timeout(NULL); if (tmp_49_alt_flag_3 == ALT_YES) { current_location.update_lineno(700); /* BTS_Tests_OML.ttcn, line 700 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Timeout waiting for RSL Connect NACK"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_49_default_flag == ALT_MAYBE) { tmp_49_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_49_default_flag == ALT_YES || tmp_49_default_flag == ALT_BREAK) break; else if (tmp_49_default_flag == ALT_REPEAT) goto tmp_49; } current_location.update_lineno(691); /* BTS_Tests_OML.ttcn, line 691 */ if (tmp_49_alt_flag_0 == ALT_NO && tmp_49_alt_flag_1 == ALT_NO && tmp_49_alt_flag_2 == ALT_NO && tmp_49_alt_flag_3 == ALT_NO && tmp_49_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 691 and 702."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(703); /* BTS_Tests_OML.ttcn, line 703 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_ipa_rsl_connect_nack was stopped."); } return TTCN_Runtime::end_testcase(); } verdicttype testcase_TC__ipa__osmo__pcu__anr__fwd(boolean has_timer, double timer_value) { TTCN_Runtime::check_begin_testcase(has_timer, timer_value); TTCN_Location current_location("BTS_Tests_OML.ttcn", 707, TTCN_Location::LOCATION_TESTCASE, "TC_ipa_osmo_pcu_anr_fwd"); try { TTCN_Runtime::begin_testcase("BTS_Tests_OML", "TC_ipa_osmo_pcu_anr_fwd", "BTS_Tests_OML", "BSC_OML_CT", "BTS_Tests_OML", "BSC_OML_CT", has_timer, timer_value); current_location.update_lineno(708); /* BTS_Tests_OML.ttcn, line 708 */ PCUIF__CodecPort::PCUIF__send__data pcu__sd__msg; current_location.update_lineno(709); /* BTS_Tests_OML.ttcn, line 709 */ PCUIF__Types::PCUIF__Message msg__rx; current_location.update_lineno(710); /* BTS_Tests_OML.ttcn, line 710 */ TIMER T("T", 2.0); current_location.update_lineno(712); /* BTS_Tests_OML.ttcn, line 712 */ f__init__oml(cs_34); current_location.update_lineno(713); /* BTS_Tests_OML.ttcn, line 713 */ { INTEGER tmp_50; PCUIF__Types::PCUIF__Message tmp_51; f__init__pcu(BSC__OML__CT_component_PCU, cs_34, tmp_50, tmp_51); if (tmp_50.is_bound()) BSC__OML__CT_component_g__pcu__conn__id = tmp_50; if (tmp_51.is_bound()) BSC__OML__CT_component_g__pcu__last__info = tmp_51; } current_location.update_lineno(714); /* BTS_Tests_OML.ttcn, line 714 */ f__oml__getattr(f__oml__getattr_exp__rx_defval); current_location.update_lineno(716); /* BTS_Tests_OML.ttcn, line 716 */ try { TTCN_Logger::begin_event(TTCN_USER); TTCN_Logger::log_event_str("BTS Features:"); BSC__OML__CT_component_g__bts__features.log(); TTCN_Logger::end_event(); } catch (...) { TTCN_Logger::finish_event(); throw; } current_location.update_lineno(717); /* BTS_Tests_OML.ttcn, line 717 */ { boolean tmp_52; tmp_52 = (BSC__OML__CT_component_g__bts__features.lengthof() < 21); if (!tmp_52) tmp_52 = (const_cast< const BITSTRING&>(BSC__OML__CT_component_g__bts__features)[20] != bs_0); if (tmp_52) { current_location.update_lineno(718); /* BTS_Tests_OML.ttcn, line 718 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Feature ABIS_OSMO_PCU not supported!"),TTCN_Logger::end_event_log2str())); } } current_location.update_lineno(721); /* BTS_Tests_OML.ttcn, line 721 */ { tmp_53: alt_status alt_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (alt_flag != ALT_NO) { alt_flag = BSC__OML__CT_component_IPA__OSMO__PCU.receive(IPA__Emulation::tr__ASP__IPA__EV(IPA__Emulation::ASP__IPA__EventType_template(IPA__Emulation::ASP__IPA__EventType::ASP__IPA__EVENT__UP), IPA__Emulation::tr__ASP__IPA__EV_conn__id_defval, IPA__Emulation::tr__ASP__IPA__EV_id__resp_defval), NULL, any_compref, NULL, NULL, NULL); if (alt_flag == ALT_YES) break; } if (default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(first_run); if (default_flag == ALT_YES || default_flag == ALT_BREAK) break; else if (default_flag == ALT_REPEAT) goto tmp_53; } current_location.update_lineno(721); /* BTS_Tests_OML.ttcn, line 721 */ if (alt_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("Stand-alone receive statement failed in file BTS_Tests_OML.ttcn, line 721."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(722); /* BTS_Tests_OML.ttcn, line 722 */ { tmp_54: alt_status alt_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (alt_flag != ALT_NO) { alt_flag = BSC__OML__CT_component_IPA__OSMO__PCU.receive(IPA__Emulation::tr__ASP__IPA__EV(IPA__Emulation::ASP__IPA__EventType_template(IPA__Emulation::ASP__IPA__EventType::ASP__IPA__EVENT__ID__RESP), IPA__Emulation::tr__ASP__IPA__EV_conn__id_defval, IPA__Emulation::tr__ASP__IPA__EV_id__resp_defval), NULL, any_compref, NULL, NULL, NULL); if (alt_flag == ALT_YES) break; } if (default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(first_run); if (default_flag == ALT_YES || default_flag == ALT_BREAK) break; else if (default_flag == ALT_REPEAT) goto tmp_54; } current_location.update_lineno(722); /* BTS_Tests_OML.ttcn, line 722 */ if (alt_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("Stand-alone receive statement failed in file BTS_Tests_OML.ttcn, line 722."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(723); /* BTS_Tests_OML.ttcn, line 723 */ { tmp_55: alt_status alt_flag = ALT_UNCHECKED, default_flag = ALT_UNCHECKED; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (alt_flag != ALT_NO) { alt_flag = BSC__OML__CT_component_IPA__OSMO__PCU.receive(IPA__Emulation::tr__ASP__IPA__EV(IPA__Emulation::ASP__IPA__EventType_template(IPA__Emulation::ASP__IPA__EventType::ASP__IPA__EVENT__ID__ACK), IPA__Emulation::tr__ASP__IPA__EV_conn__id_defval, IPA__Emulation::tr__ASP__IPA__EV_id__resp_defval), NULL, any_compref, NULL, NULL, NULL); if (alt_flag == ALT_YES) break; } if (default_flag != ALT_NO) { default_flag = TTCN_Default::try_altsteps(first_run); if (default_flag == ALT_YES || default_flag == ALT_BREAK) break; else if (default_flag == ALT_REPEAT) goto tmp_55; } current_location.update_lineno(723); /* BTS_Tests_OML.ttcn, line 723 */ if (alt_flag == ALT_NO && default_flag == ALT_NO) TTCN_error("Stand-alone receive statement failed in file BTS_Tests_OML.ttcn, line 723."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(726); /* BTS_Tests_OML.ttcn, line 726 */ PCUIF__Types::PCUIF__neigh__addr__req naddr__req; naddr__req.local__lac() = Osmocom__Types::f__rnd__int(Osmocom__Types::c__UINT16__MAX); naddr__req.local__ci() = Osmocom__Types::f__rnd__int(Osmocom__Types::c__UINT16__MAX); naddr__req.tgt__arfcn() = Osmocom__Types::f__rnd__int(Osmocom__Types::c__UINT16__MAX); naddr__req.tgt__bsic() = Osmocom__Types::f__rnd__int(63); current_location.update_lineno(732); /* BTS_Tests_OML.ttcn, line 732 */ PCUIF__Types::PCUIF__container_template ts__payloadReq; ts__payloadReq.msg__type() = PCUIF__Types::PCUIF__MsgType::PCU__IF__MSG__NEIGH__ADDR__REQ; ts__payloadReq.spare() = os_11; ts__payloadReq.len() = 0; ts__payloadReq.u().neigh__addr__req() = naddr__req; current_location.update_lineno(738); /* BTS_Tests_OML.ttcn, line 738 */ PCUIF__Types::PCUIF__container_template tr__payloadReq; tr__payloadReq.msg__type() = PCUIF__Types::PCUIF__MsgType::PCU__IF__MSG__NEIGH__ADDR__REQ; tr__payloadReq.spare() = ANY_VALUE; tr__payloadReq.len() = ANY_VALUE; tr__payloadReq.u().neigh__addr__req() = naddr__req; current_location.update_lineno(745); /* BTS_Tests_OML.ttcn, line 745 */ BSC__OML__CT_component_IPA__OSMO__PCU.send(PCUIF__Types::ts__PCUIF__CONTAINER(INTEGER_template(0), ts__payloadReq), FALSE, NULL); current_location.update_lineno(746); /* BTS_Tests_OML.ttcn, line 746 */ T.start(); current_location.update_lineno(747); /* BTS_Tests_OML.ttcn, line 747 */ { tmp_56: alt_status tmp_56_alt_flag_0 = ALT_MAYBE; alt_status tmp_56_alt_flag_1 = ALT_MAYBE; alt_status tmp_56_alt_flag_2 = ALT_MAYBE; alt_status tmp_56_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_56_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(748); /* BTS_Tests_OML.ttcn, line 748 */ tmp_56_alt_flag_0 = BSC__OML__CT_component_PCU.receive(PCUIF__CodecPort::t__SD__PCUIF(BSC__OML__CT_component_g__pcu__conn__id, PCUIF__Types::tr__PCUIF__CONTAINER(INTEGER_template(0), tr__payloadReq)), NULL, any_compref, NULL, NULL, NULL); if (tmp_56_alt_flag_0 == ALT_YES) { current_location.update_lineno(749); /* BTS_Tests_OML.ttcn, line 749 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_56_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(751); /* BTS_Tests_OML.ttcn, line 751 */ tmp_56_alt_flag_1 = BSC__OML__CT_component_PCU.receive(PCUIF__CodecPort::PCUIF__send__data_template(ANY_VALUE), &(pcu__sd__msg), any_compref, NULL, NULL, NULL); if (tmp_56_alt_flag_1 == ALT_YES) { current_location.update_lineno(752); /* BTS_Tests_OML.ttcn, line 752 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected message received: "),const_cast< const PCUIF__CodecPort::PCUIF__send__data&>(pcu__sd__msg).data().log(),TTCN_Logger::log_event_str(" vs exp: "),PCUIF__CodecPort::t__SD__PCUIF(BSC__OML__CT_component_g__pcu__conn__id, PCUIF__Types::tr__PCUIF__CONTAINER(INTEGER_template(0), tr__payloadReq)).log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_56_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(755); /* BTS_Tests_OML.ttcn, line 755 */ tmp_56_alt_flag_2 = T.timeout(NULL); if (tmp_56_alt_flag_2 == ALT_YES) { current_location.update_lineno(755); /* BTS_Tests_OML.ttcn, line 755 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Timeout waiting for ANR request on PCU inteface"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_56_default_flag == ALT_MAYBE) { tmp_56_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_56_default_flag == ALT_YES || tmp_56_default_flag == ALT_BREAK) break; else if (tmp_56_default_flag == ALT_REPEAT) goto tmp_56; } current_location.update_lineno(747); /* BTS_Tests_OML.ttcn, line 747 */ if (tmp_56_alt_flag_0 == ALT_NO && tmp_56_alt_flag_1 == ALT_NO && tmp_56_alt_flag_2 == ALT_NO && tmp_56_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 747 and 756."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(757); /* BTS_Tests_OML.ttcn, line 757 */ T.stop(); current_location.update_lineno(760); /* BTS_Tests_OML.ttcn, line 760 */ PCUIF__Types::PCUIF__neigh__addr__cnf naddr__cnf; naddr__cnf.orig__req() = naddr__req; naddr__cnf.error__code() = 0; naddr__cnf.mcc() = 262; naddr__cnf.mnc() = 42; naddr__cnf.mnc__3__digits() = 0; naddr__cnf.lac() = Osmocom__Types::f__rnd__int(Osmocom__Types::c__UINT16__MAX); naddr__cnf.rac() = Osmocom__Types::f__rnd__int(255); naddr__cnf.cell__identity() = Osmocom__Types::f__rnd__int(Osmocom__Types::c__UINT16__MAX); current_location.update_lineno(771); /* BTS_Tests_OML.ttcn, line 771 */ PCUIF__Types::PCUIF__container_template ts__payloadRsp; ts__payloadRsp.msg__type() = PCUIF__Types::PCUIF__MsgType::PCU__IF__MSG__NEIGH__ADDR__CNF; ts__payloadRsp.spare() = os_11; ts__payloadRsp.len() = 0; ts__payloadRsp.u().neigh__addr__cnf() = naddr__cnf; current_location.update_lineno(777); /* BTS_Tests_OML.ttcn, line 777 */ PCUIF__Types::PCUIF__container_template tr__payloadRsp; tr__payloadRsp.msg__type() = PCUIF__Types::PCUIF__MsgType::PCU__IF__MSG__NEIGH__ADDR__CNF; tr__payloadRsp.spare() = ANY_VALUE; tr__payloadRsp.len() = ANY_VALUE; tr__payloadRsp.u().neigh__addr__cnf() = naddr__cnf; current_location.update_lineno(785); /* BTS_Tests_OML.ttcn, line 785 */ BSC__OML__CT_component_PCU.send(PCUIF__CodecPort::t__SD__PCUIF(BSC__OML__CT_component_g__pcu__conn__id, PCUIF__Types::ts__PCUIF__CONTAINER(INTEGER_template(0), ts__payloadRsp)), FALSE, NULL); current_location.update_lineno(786); /* BTS_Tests_OML.ttcn, line 786 */ T.start(); current_location.update_lineno(787); /* BTS_Tests_OML.ttcn, line 787 */ { tmp_57: alt_status tmp_57_alt_flag_0 = ALT_MAYBE; alt_status tmp_57_alt_flag_1 = ALT_MAYBE; alt_status tmp_57_alt_flag_2 = ALT_MAYBE; alt_status tmp_57_default_flag = ALT_MAYBE; boolean first_run = TRUE; TTCN_Snapshot::take_new(FALSE); for ( ; ; ) { if (tmp_57_alt_flag_0 == ALT_MAYBE) { current_location.update_lineno(788); /* BTS_Tests_OML.ttcn, line 788 */ tmp_57_alt_flag_0 = BSC__OML__CT_component_IPA__OSMO__PCU.receive(PCUIF__Types::tr__PCUIF__CONTAINER(INTEGER_template(0), tr__payloadRsp), NULL, any_compref, NULL, NULL, NULL); if (tmp_57_alt_flag_0 == ALT_YES) { current_location.update_lineno(789); /* BTS_Tests_OML.ttcn, line 789 */ TTCN_Runtime::setverdict(PASS); break; } } if (tmp_57_alt_flag_1 == ALT_MAYBE) { current_location.update_lineno(791); /* BTS_Tests_OML.ttcn, line 791 */ tmp_57_alt_flag_1 = BSC__OML__CT_component_IPA__OSMO__PCU.receive(PCUIF__Types::PCUIF__Message_template(ANY_VALUE), &(msg__rx), any_compref, NULL, NULL, NULL); if (tmp_57_alt_flag_1 == ALT_YES) { current_location.update_lineno(792); /* BTS_Tests_OML.ttcn, line 792 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Unexpected message received: "),msg__rx.log(),TTCN_Logger::log_event_str(" vs exp: "),PCUIF__Types::tr__PCUIF__CONTAINER(INTEGER_template(0), tr__payloadRsp).log(),TTCN_Logger::end_event_log2str())); break; } } if (tmp_57_alt_flag_2 == ALT_MAYBE) { current_location.update_lineno(795); /* BTS_Tests_OML.ttcn, line 795 */ tmp_57_alt_flag_2 = T.timeout(NULL); if (tmp_57_alt_flag_2 == ALT_YES) { current_location.update_lineno(795); /* BTS_Tests_OML.ttcn, line 795 */ TTCN_Runtime::setverdict(FAIL,(TTCN_Logger::begin_event_log2str(),TTCN_Logger::log_event_str("Timeout waiting for ANR request on BSC inteface"),TTCN_Logger::end_event_log2str())); break; } } if (tmp_57_default_flag == ALT_MAYBE) { tmp_57_default_flag = TTCN_Default::try_altsteps(first_run); if (tmp_57_default_flag == ALT_YES || tmp_57_default_flag == ALT_BREAK) break; else if (tmp_57_default_flag == ALT_REPEAT) goto tmp_57; } current_location.update_lineno(787); /* BTS_Tests_OML.ttcn, line 787 */ if (tmp_57_alt_flag_0 == ALT_NO && tmp_57_alt_flag_1 == ALT_NO && tmp_57_alt_flag_2 == ALT_NO && tmp_57_default_flag == ALT_NO) TTCN_error("None of the branches can be chosen in the alt statement in file BTS_Tests_OML.ttcn between lines 787 and 796."); TTCN_Snapshot::take_new(TRUE); first_run = FALSE; } } current_location.update_lineno(797); /* BTS_Tests_OML.ttcn, line 797 */ f__shutdown__helper(); } catch (const TC_Error& tc_error) { } catch (const TC_End& tc_end) { TTCN_Logger::log_str(TTCN_FUNCTION, "Test case TC_ipa_osmo_pcu_anr_fwd was stopped."); } return TTCN_Runtime::end_testcase(); } void module_control_part() { TTCN_Location current_location("BTS_Tests_OML.ttcn", 801, TTCN_Location::LOCATION_CONTROLPART, "BTS_Tests_OML"); TTCN_Runtime::begin_controlpart("BTS_Tests_OML"); TTCN_ControlPartEnder ender_("BTS_Tests_OML"); current_location.update_lineno(802); /* BTS_Tests_OML.ttcn, line 802 */ testcase_TC__wrong__mdisc(FALSE, 0.0); current_location.update_lineno(803); /* BTS_Tests_OML.ttcn, line 803 */ testcase_TC__wrong__msgtype(FALSE, 0.0); current_location.update_lineno(804); /* BTS_Tests_OML.ttcn, line 804 */ testcase_TC__short__length(FALSE, 0.0); current_location.update_lineno(805); /* BTS_Tests_OML.ttcn, line 805 */ testcase_TC__long__length(FALSE, 0.0); current_location.update_lineno(806); /* BTS_Tests_OML.ttcn, line 806 */ testcase_TC__wrong__placement(FALSE, 0.0); current_location.update_lineno(807); /* BTS_Tests_OML.ttcn, line 807 */ testcase_TC__wrong__seq(FALSE, 0.0); current_location.update_lineno(808); /* BTS_Tests_OML.ttcn, line 808 */ testcase_TC__wrong__obj__class(FALSE, 0.0); current_location.update_lineno(809); /* BTS_Tests_OML.ttcn, line 809 */ testcase_TC__wrong__bts__nr(FALSE, 0.0); current_location.update_lineno(810); /* BTS_Tests_OML.ttcn, line 810 */ testcase_TC__wrong__trx__nr(FALSE, 0.0); current_location.update_lineno(811); /* BTS_Tests_OML.ttcn, line 811 */ testcase_TC__radio__carrier__opstart__noattr(FALSE, 0.0); current_location.update_lineno(812); /* BTS_Tests_OML.ttcn, line 812 */ testcase_TC__bts__opstart(FALSE, 0.0); current_location.update_lineno(813); /* BTS_Tests_OML.ttcn, line 813 */ testcase_TC__bts__opstart__noattr(FALSE, 0.0); current_location.update_lineno(814); /* BTS_Tests_OML.ttcn, line 814 */ testcase_TC__ts__opstart(FALSE, 0.0); current_location.update_lineno(815); /* BTS_Tests_OML.ttcn, line 815 */ testcase_TC__ts__opstart__noattr(FALSE, 0.0); current_location.update_lineno(816); /* BTS_Tests_OML.ttcn, line 816 */ testcase_TC__initial__state__reports(FALSE, 0.0); current_location.update_lineno(818); /* BTS_Tests_OML.ttcn, line 818 */ testcase_TC__ipa__osmo__pcu__anr__fwd(FALSE, 0.0); current_location.update_lineno(821); /* BTS_Tests_OML.ttcn, line 821 */ testcase_TC__ipa__rsl__connect__nack(FALSE, 0.0); } /* Bodies of static functions */ void pre_init_module() { TTCN_Location current_location("BTS_Tests_OML.ttcn", 0, TTCN_Location::LOCATION_UNKNOWN, "BTS_Tests_OML"); BTS__Tests::module_object.pre_init_module(); current_location.update_lineno(27); /* BTS_Tests_OML.ttcn, line 27 */ const_NUM__TRX = 8; current_location.update_lineno(32); /* BTS_Tests_OML.ttcn, line 32 */ modulepar_mp__oml__ip = cs_0; module_object.add_modulepar("mp_oml_ip"); current_location.update_lineno(33); /* BTS_Tests_OML.ttcn, line 33 */ modulepar_mp__oml__port = 3002; module_object.add_modulepar("mp_oml_port"); current_location.update_lineno(34); /* BTS_Tests_OML.ttcn, line 34 */ modulepar_mp__arfcn.set_size(8); modulepar_mp__arfcn[0] = 100; modulepar_mp__arfcn[1] = 101; modulepar_mp__arfcn[2] = 102; modulepar_mp__arfcn[3] = 103; modulepar_mp__arfcn[4] = 104; modulepar_mp__arfcn[5] = 105; modulepar_mp__arfcn[6] = 106; modulepar_mp__arfcn[7] = 107; module_object.add_modulepar("mp_arfcn"); current_location.update_lineno(35); /* BTS_Tests_OML.ttcn, line 35 */ modulepar_mp__interf__bound.set_size(6); modulepar_mp__interf__bound[0] = 85; modulepar_mp__interf__bound[1] = 91; modulepar_mp__interf__bound[2] = 97; modulepar_mp__interf__bound[3] = 103; modulepar_mp__interf__bound[4] = 109; modulepar_mp__interf__bound[5] = 115; module_object.add_modulepar("mp_interf_bound"); current_location.update_lineno(36); /* BTS_Tests_OML.ttcn, line 36 */ modulepar_mp__t200.sdcch__5ms() = 30; modulepar_mp__t200.facch__f__5ms() = 36; modulepar_mp__t200.facch__h__5ms() = 36; modulepar_mp__t200.sacch__tch__sapi0__10ms() = 168; modulepar_mp__t200.sacch__sdcch__10ms() = 52; modulepar_mp__t200.sdcch__sapi3__5ms() = 33; modulepar_mp__t200.sacch__rch__sapi3__10ms() = 168; module_object.add_modulepar("mp_t200"); current_location.update_lineno(45); /* BTS_Tests_OML.ttcn, line 45 */ modulepar_mp__max__ta = 63; module_object.add_modulepar("mp_max_ta"); current_location.update_lineno(46); /* BTS_Tests_OML.ttcn, line 46 */ modulepar_mp__load__threshold = 10; module_object.add_modulepar("mp_load_threshold"); current_location.update_lineno(47); /* BTS_Tests_OML.ttcn, line 47 */ modulepar_mp__load__ind__period = 1; module_object.add_modulepar("mp_load_ind_period"); current_location.update_lineno(48); /* BTS_Tests_OML.ttcn, line 48 */ modulepar_mp__rach__b__thresh = 90; module_object.add_modulepar("mp_rach_b_thresh"); current_location.update_lineno(49); /* BTS_Tests_OML.ttcn, line 49 */ modulepar_mp__loadavg__slots = 1000; module_object.add_modulepar("mp_loadavg_slots"); current_location.update_lineno(50); /* BTS_Tests_OML.ttcn, line 50 */ modulepar_mp__air__timer = 100; module_object.add_modulepar("mp_air_timer"); current_location.update_lineno(51); /* BTS_Tests_OML.ttcn, line 51 */ modulepar_mp__ny1 = 10; module_object.add_modulepar("mp_ny1"); current_location.update_lineno(52); /* BTS_Tests_OML.ttcn, line 52 */ modulepar_mp__bsic = 63; module_object.add_modulepar("mp_bsic"); current_location.update_lineno(54); /* BTS_Tests_OML.ttcn, line 54 */ modulepar_mp__pcu__socket = PCUIF__Types::PCU__SOCK__DEFAULT; module_object.add_modulepar("mp_pcu_socket"); module_object.add_altstep("as_Tguard", (genericfunc_t)&as__Tguard_instance, (genericfunc_t )&activate_as__Tguard, (genericfunc_t )&as__Tguard); module_object.add_altstep("as_SwAct", (genericfunc_t)&as__SwAct_instance, (genericfunc_t )&activate_as__SwAct, (genericfunc_t )&as__SwAct); module_object.add_altstep("as_IPA_evt", (genericfunc_t)&as__IPA__evt_instance, (genericfunc_t )&activate_as__IPA__evt, (genericfunc_t )&as__IPA__evt); module_object.add_function("f_init_oml", (genericfunc_t)&f__init__oml, (genericfunc_t)&start_f__init__oml); module_object.add_function("f_init_pcu", (genericfunc_t)&f__init__pcu, NULL); module_object.add_function("f_shutdown_helper", (genericfunc_t)&f__shutdown__helper, (genericfunc_t)&start_f__shutdown__helper); module_object.add_function("f_oml_opstart", (genericfunc_t)&f__oml__opstart, (genericfunc_t)&start_f__oml__opstart); module_object.add_function("f_oml_chg_adm_st", (genericfunc_t)&f__oml__chg__adm__st, (genericfunc_t)&start_f__oml__chg__adm__st); module_object.add_function("f_oml_radio_attr", (genericfunc_t)&f__oml__radio__attr, (genericfunc_t)&start_f__oml__radio__attr); module_object.add_function("f_oml_ts_attr", (genericfunc_t)&f__oml__ts__attr, (genericfunc_t)&start_f__oml__ts__attr); module_object.add_function("f_oml_bts_setattr", (genericfunc_t)&f__oml__bts__setattr, (genericfunc_t)&start_f__oml__bts__setattr); module_object.add_function("f_oml_send_exp_no_resp", (genericfunc_t)&f__oml__send__exp__no__resp, (genericfunc_t)&start_f__oml__send__exp__no__resp); module_object.add_function("f_oml_exp_rx", (genericfunc_t)&f__oml__exp__rx, (genericfunc_t)&start_f__oml__exp__rx); module_object.add_function("f_oml_send_exp_fail_rep", (genericfunc_t)&f__oml__send__exp__fail__rep, (genericfunc_t)&start_f__oml__send__exp__fail__rep); module_object.add_function("f_oml_send_exp_nack", (genericfunc_t)&f__oml__send__exp__nack, (genericfunc_t)&start_f__oml__send__exp__nack); module_object.add_function("f_oml_getattr", (genericfunc_t)&f__oml__getattr, (genericfunc_t)&start_f__oml__getattr); module_object.add_testcase_nonpard("TC_oml_selftest", testcase_TC__oml__selftest); module_object.add_testcase_nonpard("TC_oml_nothing", testcase_TC__oml__nothing); module_object.add_testcase_nonpard("TC_wrong_mdisc", testcase_TC__wrong__mdisc); module_object.add_testcase_nonpard("TC_wrong_msgtype", testcase_TC__wrong__msgtype); module_object.add_testcase_nonpard("TC_short_length", testcase_TC__short__length); module_object.add_testcase_nonpard("TC_long_length", testcase_TC__long__length); module_object.add_testcase_nonpard("TC_wrong_placement", testcase_TC__wrong__placement); module_object.add_testcase_nonpard("TC_wrong_seq", testcase_TC__wrong__seq); module_object.add_testcase_nonpard("TC_wrong_obj_class", testcase_TC__wrong__obj__class); module_object.add_testcase_nonpard("TC_wrong_bts_nr", testcase_TC__wrong__bts__nr); module_object.add_testcase_nonpard("TC_wrong_trx_nr", testcase_TC__wrong__trx__nr); module_object.add_testcase_nonpard("TC_wrong_ts_nr", testcase_TC__wrong__ts__nr); module_object.add_testcase_nonpard("TC_radio_carrier_opstart", testcase_TC__radio__carrier__opstart); module_object.add_testcase_nonpard("TC_radio_carrier_opstart_noattr", testcase_TC__radio__carrier__opstart__noattr); module_object.add_testcase_nonpard("TC_bts_opstart", testcase_TC__bts__opstart); module_object.add_testcase_nonpard("TC_bts_opstart_noattr", testcase_TC__bts__opstart__noattr); module_object.add_testcase_nonpard("TC_ts_opstart", testcase_TC__ts__opstart); module_object.add_testcase_nonpard("TC_ts_opstart_noattr", testcase_TC__ts__opstart__noattr); module_object.add_testcase_nonpard("TC_initial_state_reports", testcase_TC__initial__state__reports); module_object.add_testcase_nonpard("TC_ipa_rsl_connect_nack", testcase_TC__ipa__rsl__connect__nack); module_object.add_testcase_nonpard("TC_ipa_osmo_pcu_anr_fwd", testcase_TC__ipa__osmo__pcu__anr__fwd); } void post_init_module() { TTCN_Location current_location("BTS_Tests_OML.ttcn", 0, TTCN_Location::LOCATION_UNKNOWN, "BTS_Tests_OML"); BTS__Tests::module_object.post_init_module(); current_location.update_lineno(166); /* BTS_Tests_OML.ttcn, line 166 */ const_f__oml__opstart_exp__fail_defval = FALSE; current_location.update_lineno(167); /* BTS_Tests_OML.ttcn, line 167 */ template_f__oml__opstart_exp__stchg_defval = ANY_VALUE; current_location.update_lineno(212); /* BTS_Tests_OML.ttcn, line 212 */ const_f__oml__chg__adm__st_exp__fail_defval = FALSE; current_location.update_lineno(324); /* BTS_Tests_OML.ttcn, line 324 */ const_f__oml__send__exp__no__resp_tout_defval = 5.0; current_location.update_lineno(361); /* BTS_Tests_OML.ttcn, line 361 */ template_f__oml__send__exp__fail__rep_evt_defval = ANY_VALUE; current_location.update_lineno(362); /* BTS_Tests_OML.ttcn, line 362 */ template_f__oml__send__exp__fail__rep_severity_defval = ANY_VALUE; current_location.update_lineno(363); /* BTS_Tests_OML.ttcn, line 363 */ template_f__oml__send__exp__fail__rep_cause_defval = ANY_VALUE; current_location.update_lineno(364); /* BTS_Tests_OML.ttcn, line 364 */ const_f__oml__send__exp__fail__rep_tout_defval = 5.0; current_location.update_lineno(380); /* BTS_Tests_OML.ttcn, line 380 */ const_f__oml__send__exp__nack_tout_defval = 5.0; current_location.update_lineno(405); /* BTS_Tests_OML.ttcn, line 405 */ template_f__oml__getattr_exp__rx_defval = AbisOML__Types::tr__OML__GetAttributesResponse(AbisOML__Types::OML__FOM__ObjectClass_template(AbisOML__Types::OML__FOM__ObjectClass::NM__OC__BTS), AbisOML__Types::OML__FOM__ObjectInstance_template(ANY_VALUE), AbisOML__Types::OML__FOM__ARI_template(ANY_VALUE)); } boolean set_module_param(Module_Param& param) { const char* const par_name = param.get_id()->get_current_name(); if (!strcmp(par_name, "mp_oml_ip")) { modulepar_mp__oml__ip.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_oml_port")) { modulepar_mp__oml__port.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_arfcn")) { modulepar_mp__arfcn.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_interf_bound")) { modulepar_mp__interf__bound.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_t200")) { modulepar_mp__t200.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_max_ta")) { modulepar_mp__max__ta.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_load_threshold")) { modulepar_mp__load__threshold.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_load_ind_period")) { modulepar_mp__load__ind__period.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_rach_b_thresh")) { modulepar_mp__rach__b__thresh.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_loadavg_slots")) { modulepar_mp__loadavg__slots.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_air_timer")) { modulepar_mp__air__timer.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_ny1")) { modulepar_mp__ny1.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_bsic")) { modulepar_mp__bsic.set_param(param); return TRUE; } else if (!strcmp(par_name, "mp_pcu_socket")) { modulepar_mp__pcu__socket.set_param(param); return TRUE; } else return FALSE; } void log_module_param() { TTCN_Logger::log_event_str("mp_oml_ip := "); mp__oml__ip.log(); TTCN_Logger::log_event_str(", mp_oml_port := "); mp__oml__port.log(); TTCN_Logger::log_event_str(", mp_arfcn := "); mp__arfcn.log(); TTCN_Logger::log_event_str(", mp_interf_bound := "); mp__interf__bound.log(); TTCN_Logger::log_event_str(", mp_t200 := "); mp__t200.log(); TTCN_Logger::log_event_str(", mp_max_ta := "); mp__max__ta.log(); TTCN_Logger::log_event_str(", mp_load_threshold := "); mp__load__threshold.log(); TTCN_Logger::log_event_str(", mp_load_ind_period := "); mp__load__ind__period.log(); TTCN_Logger::log_event_str(", mp_rach_b_thresh := "); mp__rach__b__thresh.log(); TTCN_Logger::log_event_str(", mp_loadavg_slots := "); mp__loadavg__slots.log(); TTCN_Logger::log_event_str(", mp_air_timer := "); mp__air__timer.log(); TTCN_Logger::log_event_str(", mp_ny1 := "); mp__ny1.log(); TTCN_Logger::log_event_str(", mp_bsic := "); mp__bsic.log(); TTCN_Logger::log_event_str(", mp_pcu_socket := "); mp__pcu__socket.log(); } boolean init_comp_type(const char *component_type, boolean init_base_comps) { (void)init_base_comps; if (!strcmp(component_type, "BSC_OML_CT")) { BSC__OML__CT_component_vc__IPA__OML.clean_up(); BSC__OML__CT_component_OML.activate_port(); BSC__OML__CT_component_g__bts__nr = 0; BSC__OML__CT_component_IPA__OSMO__PCU.activate_port(); BSC__OML__CT_component_PCU.activate_port(); BSC__OML__CT_component_g__pcu__conn__id.clean_up(); BSC__OML__CT_component_g__pcu__last__info.clean_up(); BSC__OML__CT_component_g__bts__features.clean_up(); return TRUE; } else return FALSE; } boolean init_system_port(const char* component_type, const char* port_name) { if (!strcmp(component_type, "BSC_OML_CT")) { if (!strcmp(port_name, "IPA_OSMO_PCU")) { BSC__OML__CT_component_IPA__OSMO__PCU.safe_start(); return TRUE; } if (!strcmp(port_name, "OML")) { BSC__OML__CT_component_OML.safe_start(); return TRUE; } if (!strcmp(port_name, "PCU")) { BSC__OML__CT_component_PCU.safe_start(); return TRUE; } } return FALSE; } boolean start_ptc_function(const char *function_name, Text_Buf& function_arguments) { if (!strcmp(function_name, "f_init_oml")) { CHARSTRING id; id.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_init_oml("); id.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__init__oml(id); TTCN_Runtime::function_finished("f_init_oml"); return TRUE; } else if (!strcmp(function_name, "f_shutdown_helper")) { TTCN_Logger::log_str(TTCN_Logger::PARALLEL_PTC, "Starting function f_shutdown_helper()."); TTCN_Runtime::function_started(function_arguments); f__shutdown__helper(); TTCN_Runtime::function_finished("f_shutdown_helper"); return TRUE; } else if (!strcmp(function_name, "f_oml_opstart")) { AbisOML__Types::OML__FOM__ObjectClass_template obj__class; AbisOML__Types::OML__FOM__ObjectInstance_template obj__inst; BOOLEAN exp__fail; AbisOML__Types::OML__FOM__OperationalState_template exp__stchg; obj__class.decode_text(function_arguments); obj__inst.decode_text(function_arguments); exp__fail.decode_text(function_arguments); exp__stchg.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_opstart("); obj__class.log(); TTCN_Logger::log_event_str(", "); obj__inst.log(); TTCN_Logger::log_event_str(", "); exp__fail.log(); TTCN_Logger::log_event_str(", "); exp__stchg.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__opstart(obj__class, obj__inst, exp__fail, exp__stchg); TTCN_Runtime::function_finished("f_oml_opstart"); return TRUE; } else if (!strcmp(function_name, "f_oml_chg_adm_st")) { AbisOML__Types::OML__FOM__ObjectClass_template obj__class; AbisOML__Types::OML__FOM__ObjectInstance_template obj__inst; AbisOML__Types::OML__FOM__AdministrativeState_template adm__st; BOOLEAN exp__fail; obj__class.decode_text(function_arguments); obj__inst.decode_text(function_arguments); adm__st.decode_text(function_arguments); exp__fail.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_chg_adm_st("); obj__class.log(); TTCN_Logger::log_event_str(", "); obj__inst.log(); TTCN_Logger::log_event_str(", "); adm__st.log(); TTCN_Logger::log_event_str(", "); exp__fail.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__chg__adm__st(obj__class, obj__inst, adm__st, exp__fail); TTCN_Runtime::function_finished("f_oml_chg_adm_st"); return TRUE; } else if (!strcmp(function_name, "f_oml_radio_attr")) { INTEGER trx__nr; trx__nr.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_radio_attr("); trx__nr.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__radio__attr(trx__nr); TTCN_Runtime::function_finished("f_oml_radio_attr"); return TRUE; } else if (!strcmp(function_name, "f_oml_ts_attr")) { INTEGER trx__nr; INTEGER ts__nr; trx__nr.decode_text(function_arguments); ts__nr.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_ts_attr("); trx__nr.log(); TTCN_Logger::log_event_str(", "); ts__nr.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__ts__attr(trx__nr, ts__nr); TTCN_Runtime::function_finished("f_oml_ts_attr"); return TRUE; } else if (!strcmp(function_name, "f_oml_bts_setattr")) { TTCN_Logger::log_str(TTCN_Logger::PARALLEL_PTC, "Starting function f_oml_bts_setattr()."); TTCN_Runtime::function_started(function_arguments); f__oml__bts__setattr(); TTCN_Runtime::function_finished("f_oml_bts_setattr"); return TRUE; } else if (!strcmp(function_name, "f_oml_send_exp_no_resp")) { AbisOML__Types::OML__PDU_template tx; CHARSTRING err__msg; FLOAT tout; tx.decode_text(function_arguments); err__msg.decode_text(function_arguments); tout.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_send_exp_no_resp("); tx.log(); TTCN_Logger::log_event_str(", "); err__msg.log(); TTCN_Logger::log_event_str(", "); tout.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__send__exp__no__resp(tx, err__msg, tout); TTCN_Runtime::function_finished("f_oml_send_exp_no_resp"); return TRUE; } else if (!strcmp(function_name, "f_oml_exp_rx")) { AbisOML__Types::OML__PDU_template exp__rx; CHARSTRING err__msg; exp__rx.decode_text(function_arguments); err__msg.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_exp_rx("); exp__rx.log(); TTCN_Logger::log_event_str(", "); err__msg.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__exp__rx(exp__rx, err__msg); TTCN_Runtime::function_finished("f_oml_exp_rx"); return TRUE; } else if (!strcmp(function_name, "f_oml_send_exp_fail_rep")) { AbisOML__Types::OML__PDU_template tx; CHARSTRING err__msg; AbisOML__Types::OML__FOM__EventType_template evt; AbisOML__Types::OML__FOM__Severity_template severity; AbisOML__Types::OML__FOM__ProbableCause_template cause; FLOAT tout; tx.decode_text(function_arguments); err__msg.decode_text(function_arguments); evt.decode_text(function_arguments); severity.decode_text(function_arguments); cause.decode_text(function_arguments); tout.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_send_exp_fail_rep("); tx.log(); TTCN_Logger::log_event_str(", "); err__msg.log(); TTCN_Logger::log_event_str(", "); evt.log(); TTCN_Logger::log_event_str(", "); severity.log(); TTCN_Logger::log_event_str(", "); cause.log(); TTCN_Logger::log_event_str(", "); tout.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__send__exp__fail__rep(tx, err__msg, evt, severity, cause, tout); TTCN_Runtime::function_finished("f_oml_send_exp_fail_rep"); return TRUE; } else if (!strcmp(function_name, "f_oml_send_exp_nack")) { AbisOML__Types::OML__PDU_template tx; AbisOML__Types::OML__FOM__NackCause_template exp__cause; FLOAT tout; tx.decode_text(function_arguments); exp__cause.decode_text(function_arguments); tout.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_send_exp_nack("); tx.log(); TTCN_Logger::log_event_str(", "); exp__cause.log(); TTCN_Logger::log_event_str(", "); tout.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__send__exp__nack(tx, exp__cause, tout); TTCN_Runtime::function_finished("f_oml_send_exp_nack"); return TRUE; } else if (!strcmp(function_name, "f_oml_getattr")) { AbisOML__Types::OML__PDU_template exp__rx; exp__rx.decode_text(function_arguments); TTCN_Logger::begin_event(TTCN_Logger::PARALLEL_PTC); TTCN_Logger::log_event_str("Starting function f_oml_getattr("); exp__rx.log(); TTCN_Logger::log_event_str(")."); TTCN_Logger::end_event(); TTCN_Runtime::function_started(function_arguments); f__oml__getattr(exp__rx); TTCN_Runtime::function_finished("f_oml_getattr"); return TRUE; } else return FALSE; } } /* end of namespace */