Loading DiameterRx/ttcn/DiameterRx_ImsGm_TCFunctions.ttcn +1 −1 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_ImsGm_TCFunctions.ttcn 389 2012-01-12 08:35:41Z schmitting $ * @version $Id$ * @desc This module provides GM/UE test functions used by the test cases * for IMS-DIAMETER tests. */ Loading DiameterRx/ttcn/DiameterRx_PICS.ttcn +1 −1 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_PICS.ttcn 389 2012-01-12 08:35:41Z schmitting $ * @version $Id$ * @desc This module provides the PICS used for the SIP-IMS-DIAMETER tests. */ Loading DiameterRx/ttcn/DiameterRx_PIXITS.ttcn +127 −126 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_PIXITS.ttcn 389 2012-01-12 08:35:41Z schmitting $ * @version $Id$ * @desc This module provides the PIXIT used for the SIP-IMS-DIAMETER tests. */ Loading @@ -22,8 +22,7 @@ module DiameterRx_PIXITS } // SUT specific implementation variants group Diameter_common_data{ } group DiameterCommonRxData{ /** @desc octetstring (This is an operator option, not a protocol option), UE IP address: Loading Loading @@ -148,4 +147,6 @@ module DiameterRx_PIXITS modulepar IPv4Addr PX_ANCA_ipv4 := {1,2,3,4}; modulepar IPv6Addr PX_ANCA_ipv6 := {1,2,3,4,5,6,7,8} } //end group DiameterCommonRxData } // end module AtsIms_PIXITS No newline at end of file DiameterRx/ttcn/DiameterRx_Rx_TCFunctions.ttcn +1 −1 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_Rx_TCFunctions.ttcn 397 2012-01-23 13:48:05Z pintar $ * @version $Id$ * @desc This module provides RX test functions used by the test cases * for IMS-DIAMETER tests. */ Loading DiameterRx/ttcn/DiameterRx_Steps.ttcn3 +114 −39 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_Steps.ttcn 385 2012-01-10 12:31:08Z rennoch $ * @version $Id$ * @desc This module provides ATS specific templates used by the test cases * for IMS-DIAMETER tests. */ Loading @@ -8,14 +8,16 @@ //LibCommon import from LibCommon_DataStrings {type Bit1, Bit4, Bit5, Bit8;}//all; import from LibCommon_BasicTypesAndValues {type UInt8;}; import from LibCommon_BasicTypesAndValues {type UInt8;};//LibCommon import from LibCommon_Sync all ; import from LibCommon_VerdictControl all ; //LibDiameter import from LibDiameter_TypesAndValues all; import from LibDiameter_Templates all; import from LibDiameter_Steps all; import from LibDiameter_PIXITS all; import from LibDiameter_Interface {type DiameterComponent;}; import from LibDiameter_Interface all; import from LibDiameter_PIXITS all; //DiameterRx Loading @@ -31,6 +33,13 @@ function f_DiameterRx_init() runs on DiameterComponent { //Defaults vc_def_catchSyncStop_diameter := activate(a_Sip_catchSyncStop()); vc_default_diameter := activate (a_diameter_default()); //Base LibDiameter init function if there will be any base initialisation f_Diameter_Init_Component(); vc_sessionId := m_sessionId(PX_SessionID); vc_originHost := m_originHost(PX_OriginHost); Loading @@ -46,6 +55,22 @@ } // end function f_DiameterRx_init /* * @desc This is a test step that awaits session esthablishment by the IUT * @param */ function f_IUT_session_esthablishment() runs on DiameterComponent { f_awaiting_AAR(mw_AAR_dummy); // IUT esthablish Diameter session f_send_AAA(m_AAA_modified_ResultCode_ANCA(vc_sessionId, vc_originHost, vc_originRealm, m_resultCode(m_resultCode_diameterSuccess), omit)); } // end function f_AF_IUT_session_esthablishment } // end group GlobalSteps group Preambles{ function f_preamble_AF() runs on DiameterComponent { Loading @@ -66,44 +91,94 @@ f_DiameterRx_init(); f_preambleDiameterBase(); } }// end group Preambles /* * @desc This is a test step that awaits session esthablishment by the IUT * @param */ function f_IUT_session_esthablishment() runs on DiameterComponent { f_awaiting_AAR(mw_AAR_dummy); // IUT esthablish Diameter session f_send_AAA(m_AAA_modified_ResultCode_ANCA(vc_sessionId, vc_originHost, vc_originRealm, m_resultCode(m_resultCode_diameterSuccess), omit)); } // end function f_AF_IUT_session_esthablishment } // end group GlobalSteps group AVPOperations { function f_framedIpAddress4 () return template Framed_IP_Address_AVP {if (PX_IPv6) { if (PX_IPv6) {return(omit)} else {return(mw_framedIpAddress(PX_UE_framedIpAddress))}} else {return(mw_framedIpAddress(PX_UE_framedIpAddress))} } function f_framedIpAddress6 () return template Framed_IPv6_Prefix_AVP {if (PX_IPv6) { if (PX_IPv6) {return(mw_framedIp6Address(PX_UE_framedIp6Address))} else {return(omit)}} else {return(omit)} } function f_framedIpAddress4_send () return template Framed_IP_Address_AVP {if (PX_IPv6) { if (PX_IPv6) {return(omit)} else {return(m_framedIpAddress(PX_UE_framedIpAddress))}} else {return(m_framedIpAddress(PX_UE_framedIpAddress))} } function f_framedIpAddress6_send () return template Framed_IPv6_Prefix_AVP {if (PX_IPv6) { if (PX_IPv6) {return(m_framedIp6Address(PX_UE_framedIp6Address))} else {return(omit)}} else {return(omit)} } }//end group AVPOperations group DefaultAltsteps { /** * @desc This default handles receiving of the sync server * STOP message and calls the RT HUT postamble. (copy from common lib) */ altstep a_Sip_catchSyncStop() runs on DiameterComponent { [] syncPort.receive(m_syncServerStop) { tc_sync.stop ; log("**** a_Sip_catchSyncStop: Test component received STOP signal from MTC - going to IDLE state **** "); //TODO complete postamble syncPort.send(m_syncClientStop); f_terminate_diameter_component(); log("**** a_Sip_catchSyncStop: TEST COMPONENT NOW STOPPING ITSELF! **** ") ; setverdict(inconc); stop ; } } altstep a_diameter_default() runs on DiameterComponent { [] syncPort.receive { //TODO: need to be done }; [] any timer.timeout { setverdict(fail); all timer.stop; //stop } [] DIAMP.receive (DIAMETER_MSG:{dWR_MSG := mw_DWR_dummy}) -> value vc_recvDiamMsgDefault { f_send_DWA(m_DWA_dummy); repeat; }; [] DIAMP.receive (DIAMETER_MSG:{cER_MSG := mw_CER_dummy}) -> value vc_recvDiamMsgDefault { f_send_CEA(m_CEA_dummy); repeat; }; [] DIAMP.receive (DIAMETER_MSG:?) -> value vc_recvDiamMsgDefault { //TODO: need to be done setverdict (fail); }; } }// end group DefaultAltsteps } // end module DiameterRx_Steps No newline at end of file Loading
DiameterRx/ttcn/DiameterRx_ImsGm_TCFunctions.ttcn +1 −1 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_ImsGm_TCFunctions.ttcn 389 2012-01-12 08:35:41Z schmitting $ * @version $Id$ * @desc This module provides GM/UE test functions used by the test cases * for IMS-DIAMETER tests. */ Loading
DiameterRx/ttcn/DiameterRx_PICS.ttcn +1 −1 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_PICS.ttcn 389 2012-01-12 08:35:41Z schmitting $ * @version $Id$ * @desc This module provides the PICS used for the SIP-IMS-DIAMETER tests. */ Loading
DiameterRx/ttcn/DiameterRx_PIXITS.ttcn +127 −126 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_PIXITS.ttcn 389 2012-01-12 08:35:41Z schmitting $ * @version $Id$ * @desc This module provides the PIXIT used for the SIP-IMS-DIAMETER tests. */ Loading @@ -22,8 +22,7 @@ module DiameterRx_PIXITS } // SUT specific implementation variants group Diameter_common_data{ } group DiameterCommonRxData{ /** @desc octetstring (This is an operator option, not a protocol option), UE IP address: Loading Loading @@ -148,4 +147,6 @@ module DiameterRx_PIXITS modulepar IPv4Addr PX_ANCA_ipv4 := {1,2,3,4}; modulepar IPv6Addr PX_ANCA_ipv6 := {1,2,3,4,5,6,7,8} } //end group DiameterCommonRxData } // end module AtsIms_PIXITS No newline at end of file
DiameterRx/ttcn/DiameterRx_Rx_TCFunctions.ttcn +1 −1 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_Rx_TCFunctions.ttcn 397 2012-01-23 13:48:05Z pintar $ * @version $Id$ * @desc This module provides RX test functions used by the test cases * for IMS-DIAMETER tests. */ Loading
DiameterRx/ttcn/DiameterRx_Steps.ttcn3 +114 −39 Original line number Diff line number Diff line /** * @author STF 434 * @version $Id: DiameterRx_Steps.ttcn 385 2012-01-10 12:31:08Z rennoch $ * @version $Id$ * @desc This module provides ATS specific templates used by the test cases * for IMS-DIAMETER tests. */ Loading @@ -8,14 +8,16 @@ //LibCommon import from LibCommon_DataStrings {type Bit1, Bit4, Bit5, Bit8;}//all; import from LibCommon_BasicTypesAndValues {type UInt8;}; import from LibCommon_BasicTypesAndValues {type UInt8;};//LibCommon import from LibCommon_Sync all ; import from LibCommon_VerdictControl all ; //LibDiameter import from LibDiameter_TypesAndValues all; import from LibDiameter_Templates all; import from LibDiameter_Steps all; import from LibDiameter_PIXITS all; import from LibDiameter_Interface {type DiameterComponent;}; import from LibDiameter_Interface all; import from LibDiameter_PIXITS all; //DiameterRx Loading @@ -31,6 +33,13 @@ function f_DiameterRx_init() runs on DiameterComponent { //Defaults vc_def_catchSyncStop_diameter := activate(a_Sip_catchSyncStop()); vc_default_diameter := activate (a_diameter_default()); //Base LibDiameter init function if there will be any base initialisation f_Diameter_Init_Component(); vc_sessionId := m_sessionId(PX_SessionID); vc_originHost := m_originHost(PX_OriginHost); Loading @@ -46,6 +55,22 @@ } // end function f_DiameterRx_init /* * @desc This is a test step that awaits session esthablishment by the IUT * @param */ function f_IUT_session_esthablishment() runs on DiameterComponent { f_awaiting_AAR(mw_AAR_dummy); // IUT esthablish Diameter session f_send_AAA(m_AAA_modified_ResultCode_ANCA(vc_sessionId, vc_originHost, vc_originRealm, m_resultCode(m_resultCode_diameterSuccess), omit)); } // end function f_AF_IUT_session_esthablishment } // end group GlobalSteps group Preambles{ function f_preamble_AF() runs on DiameterComponent { Loading @@ -66,44 +91,94 @@ f_DiameterRx_init(); f_preambleDiameterBase(); } }// end group Preambles /* * @desc This is a test step that awaits session esthablishment by the IUT * @param */ function f_IUT_session_esthablishment() runs on DiameterComponent { f_awaiting_AAR(mw_AAR_dummy); // IUT esthablish Diameter session f_send_AAA(m_AAA_modified_ResultCode_ANCA(vc_sessionId, vc_originHost, vc_originRealm, m_resultCode(m_resultCode_diameterSuccess), omit)); } // end function f_AF_IUT_session_esthablishment } // end group GlobalSteps group AVPOperations { function f_framedIpAddress4 () return template Framed_IP_Address_AVP {if (PX_IPv6) { if (PX_IPv6) {return(omit)} else {return(mw_framedIpAddress(PX_UE_framedIpAddress))}} else {return(mw_framedIpAddress(PX_UE_framedIpAddress))} } function f_framedIpAddress6 () return template Framed_IPv6_Prefix_AVP {if (PX_IPv6) { if (PX_IPv6) {return(mw_framedIp6Address(PX_UE_framedIp6Address))} else {return(omit)}} else {return(omit)} } function f_framedIpAddress4_send () return template Framed_IP_Address_AVP {if (PX_IPv6) { if (PX_IPv6) {return(omit)} else {return(m_framedIpAddress(PX_UE_framedIpAddress))}} else {return(m_framedIpAddress(PX_UE_framedIpAddress))} } function f_framedIpAddress6_send () return template Framed_IPv6_Prefix_AVP {if (PX_IPv6) { if (PX_IPv6) {return(m_framedIp6Address(PX_UE_framedIp6Address))} else {return(omit)}} else {return(omit)} } }//end group AVPOperations group DefaultAltsteps { /** * @desc This default handles receiving of the sync server * STOP message and calls the RT HUT postamble. (copy from common lib) */ altstep a_Sip_catchSyncStop() runs on DiameterComponent { [] syncPort.receive(m_syncServerStop) { tc_sync.stop ; log("**** a_Sip_catchSyncStop: Test component received STOP signal from MTC - going to IDLE state **** "); //TODO complete postamble syncPort.send(m_syncClientStop); f_terminate_diameter_component(); log("**** a_Sip_catchSyncStop: TEST COMPONENT NOW STOPPING ITSELF! **** ") ; setverdict(inconc); stop ; } } altstep a_diameter_default() runs on DiameterComponent { [] syncPort.receive { //TODO: need to be done }; [] any timer.timeout { setverdict(fail); all timer.stop; //stop } [] DIAMP.receive (DIAMETER_MSG:{dWR_MSG := mw_DWR_dummy}) -> value vc_recvDiamMsgDefault { f_send_DWA(m_DWA_dummy); repeat; }; [] DIAMP.receive (DIAMETER_MSG:{cER_MSG := mw_CER_dummy}) -> value vc_recvDiamMsgDefault { f_send_CEA(m_CEA_dummy); repeat; }; [] DIAMP.receive (DIAMETER_MSG:?) -> value vc_recvDiamMsgDefault { //TODO: need to be done setverdict (fail); }; } }// end group DefaultAltsteps } // end module DiameterRx_Steps No newline at end of file