Skip to content
Snippets Groups Projects
Commit 8dc64484 authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

Added modules from TTF006

parent dddfcb0f
No related branches found
No related tags found
1 merge request!1Ttf010
Showing
with 24895 additions and 0 deletions
.project
.settings
.classpath
.metadata
/bin/
/ttcn3build/
/.apt_generated/
/lib/
/tracefiles/
/build/
/clf/
/tt3plugins/
*log*
taconfig.xml
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/*
* @author STF 574
* @version $Id$
* @desc This module provides the module parameter
*/
module AtsImsIot_PIXITS
{
group SUT {
group SUT_CONF {
/**
* @desc charstring for SUT/conference domain
*/
modulepar charstring PX_IMS_SUT_CONF_HOME_DOMAIN := "conf.sut.net";
/**
* @desc charstring for conference factory URI name
*/
modulepar charstring PX_IMS_SUT_CONF_FACTORY_NAME := "factory.uri.name";
/**
* @desc charstring for PChargingVector TP_IC_IBCF_INVITE_04
*/
modulepar charstring PX_IMS_A_ICID := "PX_IMS_A_ICID";
} // end group SUT_CONF
} // end group SUT
group TS {
} // end group TS
} // end module AtsImsIot_PIXITS
/**
* @author STF 574, TTF 006
* @version $Id: $
* @desc This module provides ATS specific test case definitions for Network Attachment.
* @see ETSI TS 103 653-2 (2021)
*/
module AtsImsIot_TD_ATT{
// LibCommon
// LibSip
// LibIms
import from LibIms_UpperTester { type ImsUserInfo };
// LibIot
import from LibIot_TestInterface { type IotEquipmentUser };
import from LibIot_TestConfiguration { function f_cf_create_IotEquipmentUser };
import from LibIot_PIXITS all;
import from LibIot_VxLTE_PIXITS all;
import from LibIot_VxLTE_Functions all;
// LibImsIot
import from AtsImsIot_Functions { function f_getImUser};
// ImsIot
import from AtsImsIot_TestConfiguration all;
import from AtsImsIot_TestSystem all;
import from AtsImsIot_Functions all;
import from AtsImsIot_TP_behavior_GM all;
import from AtsImsIot_TP_behavior_MW_PS all;
import from AtsImsIot_TP_behavior_MW_SI all;
import from AtsImsIot_TP_behavior_MW_IS all;
import from AtsImsIot_TP_behavior_IC all;
import from AtsImsIot_TP_behavior_CX all;
import from AtsImsIot_TP_behavior_GX all;
import from AtsImsIot_TP_behavior_ISC all;
import from AtsImsIot_TP_behavior_S6A all;
import from AtsImsIot_TP_behavior_S9 all;
import from AtsImsIot_TP_behavior_SH all;
group Interoperability{
group networkAttachmentAndDefaultBearer {
/**
* @desc Initial Network Attachment and Establishment of the Default Bearer.
* On successful initial network attachment, the UE should discover the P-CSCF IP address.
* The EPC will create the Default Bearers which will allow communication only between the UE and the P-CSCF
* @see TS 124 229 [2], clause 9.2.1 and L.2.2.1; TS 129 212 [9], clauses 4.5.1 (item 1) and 4a.5.1 (item 1); TS 129 272 [10], clause 5.2.1.1
*/
testcase TC_VxLTE_INT_ATT_01 ( ) runs on ImsTestCoordinator system IotSystemInterface {
var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser ( c_userUE_A );
var ImsUserInfo v_userInfoA := f_getImUser ( PX_EUT_A );
f_setVxLteMonIterfacesAvailability();
//Check required monitor interfaces due to TD
if (f_checkVxLteRequiredMonitorInterface({PX_DIAMETER_GX_INTERFACENAME,PX_DIAMETER_S6A_INTERFACENAME})){
f_cf_createVxLteMonitor();
// map/connect component ports
f_cf_adapter_up ( );
f_cf_user_up ( v_ueA );
f_cf_VxLteMonitor_Up();
// preamble
f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
// test body
// Check that user A starts initial network attachment
f_mtc_check_TP_S6A_MME_ULR_01 ( vc_vxlte_monitor_components.s6a, true ); // Check (ULR – Event 2)
f_mtc_check_TP_S6A_HSS_ULA_01 ( vc_vxlte_monitor_components.s6a); // Check (ULA – Event 3)
f_mtc_check_TP_GX_PCRF_CCA_01 ( vc_vxlte_monitor_components.gx); // Check (CCR, CCA – Events 4, 5)
// postamble
f_mtc_userRadioEnabled ( v_ueA, false, true );
//unmap/disconnect component ports
f_cf_user_down ( v_ueA );
f_cf_VxLteMonitor_Down();
f_cf_adapter_down ( );
}else{
//log...
setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
}
} // End of TC TC_VxLTE_INT_ATT_01
} //End of group networkAttachmentAndDefaultBearer
} // End of group Interoperability
group Roaming{
group networkAttachmentAndDefaultBearer {
/**
* @desc Initial Network Attachment and Establishment of the Default Bearer.
* On successful initial network attachment, the UE should discover the P-CSCF IP address.
* The EPC will create the Default Bearers which will allow communication only between the UE and the P-CSCF
* @see TS 124 229 [2], clause 9.2.1 and L.2.2.1; TS 129 212 [9], clauses 4.5.1 (item 1) and 4a.5.1 (item 1); TS 129 272 [10], clause 5.2.1.1
*/
testcase TC_VxLTE_RMI_ATT_01 ( ) runs on ImsTestCoordinator system IotSystemInterface {
var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser ( c_userUE_A );
var ImsUserInfo v_userInfoA := f_getImUser ( PX_EUT_A );
f_setVxLteMonIterfacesAvailability();
//Check required monitor interfaces due to TD
if (f_checkVxLteRequiredMonitorInterface({PX_DIAMETER_S9_INTERFACENAME,PX_DIAMETER_GX_INTERFACENAME,PX_DIAMETER_S6A_INTERFACENAME})){
f_cf_createVxLteMonitor();
// map/connect component ports
f_cf_adapter_up ( );
f_cf_user_up ( v_ueA );
f_cf_VxLteMonitor_Up();
// preamble
f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
// test body
// Check that user A starts initial network attachment
f_mtc_check_TP_S6A_MME_AIR_01 ( vc_vxlte_monitor_components.s6a); // Check (AIR – Event 2) //Not yet validate
f_mtc_check_TP_S6A_HSS_AIA_01 ( vc_vxlte_monitor_components.s6a); // Check (AIA – Event 3) //Not yet valiated
f_mtc_check_TP_S6A_MME_ULR_02 ( vc_vxlte_monitor_components.s6a, true ); // Check (ULR – Event 4)
f_mtc_check_TP_S6A_HSS_ULA_02 ( vc_vxlte_monitor_components.s6a); // Check (ULA – Event 5)
f_mtc_check_TP_GX_PGW_CCR_01 ( vc_vxlte_monitor_components.gx, true); // Check (CCR - Event 6)
f_mtc_check_TP_S9_PCRF_CCR_01 ( vc_vxlte_monitor_components.s9); // Check (CCA – Event 7)
f_mtc_check_TP_S9_PCRF_CCA_01 ( vc_vxlte_monitor_components.s9); // Check (CCA - Event 8)
f_mtc_check_TP_GX_PCRF_CCA_01 ( vc_vxlte_monitor_components.gx); // Check (CCA - Event 9)
// postamble
f_mtc_userRadioEnabled ( v_ueA, false, true );
//unmap/disconnect component ports
f_cf_user_down ( v_ueA );
f_cf_VxLteMonitor_Down();
f_cf_adapter_down ( );
}else{
//log...
setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
}
} // End of TC TC_VxLTE_RMI_ATT_01
/**
* @desc Initial Network Attachment and Establishment of the Default Bearer(S8HR).
* On successful initial network attachment, the UE should discover the P-CSCF IP address.
* The EPC will create the Default Bearers which will allow communication only between the UE and the P-CSCF
* @see TS 124 229 [2], clause 9.2.1 and L.2.2.1; TS 129 212 [9], clauses 4.5.1 (item 1) and 4a.5.1 (item 1); TS 129 272 [10], clause 5.2.1.1
*/
testcase TC_VxLTE_RMI_ATT_02 ( ) runs on ImsTestCoordinator system IotSystemInterface {
var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser ( c_userUE_A );
var ImsUserInfo v_userInfoA := f_getImUser ( PX_EUT_A );
f_setVxLteMonIterfacesAvailability();
if (f_checkVxLteRequiredMonitorInterface({PX_DIAMETER_S9_INTERFACENAME,PX_DIAMETER_GX_INTERFACENAME,PX_DIAMETER_S6A_INTERFACENAME})){
f_cf_createVxLteMonitor();
// map/connect component ports
f_cf_adapter_up ( );
f_cf_user_up ( v_ueA );
f_cf_VxLteMonitor_Up();
// preamble
f_mtc_userRadioEnabled ( v_ueA, true, true ); // UA-A trigger an initial network_attachment by enabling radio interface of its mobile
// test body
// Check that user A starts initial network attachment
f_mtc_check_TP_S6A_MME_ULR_01 ( vc_vxlte_monitor_components.s6a, true); // Check (ULR – Event 2)
f_mtc_check_TP_S6A_HSS_ULA_01 ( vc_vxlte_monitor_components.s6a); // Check (ULA – Event 3)
// postamble
f_mtc_userRadioEnabled ( v_ueA, false, true );
//unmap/disconnect component ports
f_cf_user_down ( v_ueA );
f_cf_VxLteMonitor_Down();
f_cf_adapter_down ( );
}else{
//log...
setverdict (inconc,"At least one required monitor interface SHALL be selected! Check PIXITs")
}
} // End of TC TC_VxLTE_RMI_ATT_02
} //End of group networkAttachmentAndDefaultBearer
} // End of group Roaming
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* @author STF 574, TTF006
* @version $Id$
* @desc This module provides the TP behaviour functions at IC interface
*/
module AtsImsIot_TP_behavior_ISC
{
import from AtsImsIot_TestSystem { type ImsInterfaceMonitor, ImsTestCoordinator, SipInterfaceMonitor; }
import from LibIot_PIXITS {modulepar PX_MAX_MSG_WAIT;}
import from AtsImsIot_Templates {template all;}
import from AtsImsIot_TypesAndValues { type SipMessage, SipMessageList, NAPTRmessage, EnumResponse, EnumQuery, SkipType; }
import from LibIot_TestInterface { type EquipmentUser, IotEquipmentUser };
import from LibIms_UpperTester {type ImsUserInfo;}
import from LibIot_TypesAndValues {type SetFilterReq, SetFilterRsp;}
import from LibIot_Functions { function f_setConformanceVerdict, f_setIotVerdictFAIL; }
import from LibSip_SIPTypesAndValues all;
import from LibSip_Templates all;
import from LibSip_Common {
type
GenericParam,
SemicolonParam_List
}
import from AtsImsIot_Functions all;
import from AtsImsIot_Templates_MW all;
import from LibIot_PIXITS {modulepar PX_EUT_A, PX_EUT_B;}
// LibSip
import from LibSip_SDPTypes { type SDP_media_desc_list };
// LibMsrp
// import from LibMsrp_TypesAndValues { type MsrpURI };
// import from LibMsrp_Functions { function f_str2msrpUri };
// import from LibMsrp_Templates {
// template
// m_msrpSend_Dummy, mw_msrpSEND_toPath_fromPath_contentType,
// m_msrpReport_Dummy, mw_msrpREPORT_success,
// m_msrpResponse_Dummy, mw_msrpResponse_toPath_fromPath,
// mw_toPath, mw_fromPath, mw_msrpResponse_toPath_fromPath_with_transferReports,
// m_msrpURIs_ToPath_Dummy, m_msrpURIs_FromPath_Dummy,
// mw_contentType
// };
import from AtsImsIot_Templates_IC all;
group g_ISC {
/**
* @desc Starts monitor component behavior for TP_ISC_SCSCF_REGISTER_01
* @param p_monitorCompRef Reference to monitor component
* @remark source function f_mtc_check_TP_IC_IBCF_REGISTER_02
*/
function f_mtc_check_TP_ISC_SCSCF_REGISTER_01(
SipInterfaceMonitor p_monitorCompRef,
boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
p_monitorCompRef.start(
f_Iot_Sip_receive(
{mw_SipRequest(mdw_TP_ISC_SCSCF_REGISTER_01(mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain)))},
{mw_SipRequest(mw_REGISTER_Request_Base)},
{0, omit},
"TP_ISC_SCSCF_REGISTER_01 - REGISTER",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
var charstring v_EUT_A_Addr := f_GetEUTPcscfIpAddress_1();
var template SipUrl v_eutBUri := mw_SipUrl_Host(f_GetEUTScscfAddress_1());
p_monitorCompRef.start(
f_Iot_Sip_receive(
{mw_SipResponse(mw_Response_Base_ToFrom(c_statusLine200, ?, ?,?,?))}, //TODO To/From
//{mw_SipResponse(mdw_TP_IC_IBCF_REGISTER200OK_02(v_EUT_A_Addr, v_eutBUri))},
{mw_SipResponse (mw_200OK_Base)},
{0, omit},
"TP_ISC_SCSCF_REGISTER_01 - 200 OK",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
}//end f_mtc_check_TP_ISC_SCSCF_REGISTER_01
} // end of g_ISC
} // end module AtsImsIot_TP_behavior_IC
\ No newline at end of file
/*
* @author STF 574
* @version $Id$
* @desc This module provides the TP behaviour functions at MW interface
*/
// FIXME To be removed, use AtsImsIot_TP_behavior_MW_PS, AtsImsIot_TP_behavior_MW_SI and AtsImsIot_TP_behavior_MW_IS to prevent very huge module
//module AtsImsIot_TP_behavior_MW
//{
//
// import from AtsImsIot_TestSystem { type ImsInterfaceMonitor, ImsTestCoordinator; }
// import from LibIot_PIXITS {modulepar PX_MAX_MSG_WAIT;}
// import from AtsImsIot_Templates {template all;}
// import from AtsImsIot_TypesAndValues { type SipMessage, SipMessageList, NAPTRmessage, EnumResponse, EnumQuery, SkipType; }
// import from LibIot_TestInterface { type EquipmentUser, IotEquipmentUser };
// import from LibIms_UpperTester {type ImsUserInfo;}
// import from LibIot_TypesAndValues {type SetFilterReq, SetFilterRsp;}
// import from LibIot_Functions { function f_setConformanceVerdict, f_setIotVerdictFAIL; }
// import from LibSip_SIPTypesAndValues all;
// import from LibSip_Templates all;
//
// import from LibSip_Common {
// type
// GenericParam,
// SemicolonParam_List
// }
//
// import from AtsImsIot_Functions all;
// import from LibIot_PIXITS {modulepar PX_EUT_A, PX_EUT_B;}
// // LibSip
// import from LibSip_SDPTypes { type SDP_media_desc_list };
// // LibMsrp
// import from LibMsrp_TypesAndValues { type MsrpURI };
// import from LibMsrp_Functions { function f_str2msrpUri };
// import from LibMsrp_Templates {
// template
// m_msrpSend_Dummy, mw_msrpSEND_toPath_fromPath_contentType,
// m_msrpReport_Dummy, mw_msrpREPORT_success,
// m_msrpResponse_Dummy, mw_msrpResponse_toPath_fromPath,
// mw_toPath, mw_fromPath, mw_msrpResponse_toPath_fromPath_with_transferReports,
// m_msrpURIs_ToPath_Dummy, m_msrpURIs_FromPath_Dummy,
// mw_contentType
// };
// import from DiameterS6a_Templates all;
// import from DiameterS6a_PIXITS all;
// import from DiameterGx_Templates all;
// // LibDiameter
// import from LibDiameter_Templates all;
//// import from DiameterRx_Templates all;
//
//
//
//group g_PCSCF {
//
//
//} // end group g_PCSCF
//
//group g_ICSCF {
//
//
//} // end group g_ICSCF
//
//group g_SCSCF {
//
//
//} // end group g_SCSCF
//
//} // end module AtsImsIot_TP_behavior_MW
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment