Loading CW/CW_TC_Functions.ttcn +73 −28 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ module CW_TC_Functions { import from LibIms_Templates all; import from IMS_SS_Functions all; group SuplementaryService_CW{ group SS_CW_SIPSIP{ group destination_UE{ Loading @@ -29,11 +31,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_001_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading Loading @@ -74,11 +71,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_002_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading Loading @@ -119,11 +111,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_003_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading Loading @@ -158,11 +145,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_004_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading @@ -179,17 +161,81 @@ module CW_TC_Functions { f_awaitingResponse(mw_Response_Base(c_statusLine180, vc_callId, vc_cSeq)); f_acceptCall(mw_attribute_sendonly); // POSTAMBLE: await 200 (initial invite), termination f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_SendBYE(m_BYE_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); //TODO await invite (sendonly) f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // deregistration of UE f_IMS_postamble_awaitDeRegistration(); } // end f_Sip_CW_U01_004_PCSCF /** * * @desc test case function f_Sip_CW_U01_005_PCSCF PCSCF component * @param p_cSeq_s actual cseq number * @verdict */ function f_Sip_CW_U01_005_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var CallId vc_callId_UE2, vc_callId_UE3; var CSeq vc_cSeq_UE2, vc_cSeq_UE3; // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip f_awaitingRegistration_IMS_gm(p_cSeq_s); // Call1 esthablishment // INVITE to UE2@SUThome vc_xml_local := valueof(m_XmlBody_CW(m_CW({}))); // communication_waiting_indication LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_UE2atSUThome); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_MIMESdpXml(vc_sdp_local, vc_xml_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180, vc_callId, vc_cSeq)); f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); vc_callId_UE2 := vc_callId; vc_cSeq_UE2 := vc_cSeq; f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE to UE3@SUThome vc_xml_local := valueof(m_XmlBody_CW(m_CW({}))); // communication_waiting_indication LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_UE3atSUThome); vc_callId_UE3 := vc_callId; vc_cSeq_UE3 := vc_cSeq; f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_MIMESdpXml(vc_sdp_local, vc_xml_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180, vc_callId, vc_cSeq)); // ACTION: AWAIT BYE for CALL1 // switch to CAll1 vc_callId := vc_callId_UE2; vc_cSeq := vc_cSeq_UE2; action("Please terminate first CALL"); f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); // AWAIT 200OK for CALL2 // switch to CAll2 vc_callId := vc_callId_UE3; vc_cSeq := vc_cSeq_UE3; // POSTAMBLE: await 200 (initial invite), termination f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); // POSTAMBLE for CALL2: await 200 (initial invite), termination f_SendBYE(m_BYE_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); Loading @@ -199,8 +245,7 @@ module CW_TC_Functions { // deregistration of UE f_IMS_postamble_awaitDeRegistration(); } // end f_Sip_CW_U01_004_PCSCF } // end f_Sip_CW_U01_005_PCSCF }// end group destination_UE Loading Loading
CW/CW_TC_Functions.ttcn +73 −28 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ module CW_TC_Functions { import from LibIms_Templates all; import from IMS_SS_Functions all; group SuplementaryService_CW{ group SS_CW_SIPSIP{ group destination_UE{ Loading @@ -29,11 +31,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_001_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading Loading @@ -74,11 +71,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_002_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading Loading @@ -119,11 +111,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_003_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading Loading @@ -158,11 +145,6 @@ module CW_TC_Functions { */ function f_Sip_CW_U01_004_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var template PAssertedID v_PAsserted; // set PAssertedID v_PAsserted := m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)); // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip Loading @@ -179,17 +161,81 @@ module CW_TC_Functions { f_awaitingResponse(mw_Response_Base(c_statusLine180, vc_callId, vc_cSeq)); f_acceptCall(mw_attribute_sendonly); // POSTAMBLE: await 200 (initial invite), termination f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_SendBYE(m_BYE_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); //TODO await invite (sendonly) f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // deregistration of UE f_IMS_postamble_awaitDeRegistration(); } // end f_Sip_CW_U01_004_PCSCF /** * * @desc test case function f_Sip_CW_U01_005_PCSCF PCSCF component * @param p_cSeq_s actual cseq number * @verdict */ function f_Sip_CW_U01_005_PCSCF(in CSeq p_cSeq_s) runs on ImsComponent { var CallId vc_callId_UE2, vc_callId_UE3; var CSeq vc_cSeq_UE2, vc_cSeq_UE3; // Request-Uri refers to home network (SUT) f_IMS_preamble_woRegistration(c_userProfile_PCSCFwithHomeUE, p_cSeq_s); // LibSip f_awaitingRegistration_IMS_gm(p_cSeq_s); // Call1 esthablishment // INVITE to UE2@SUThome vc_xml_local := valueof(m_XmlBody_CW(m_CW({}))); // communication_waiting_indication LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_UE2atSUThome); f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_MIMESdpXml(vc_sdp_local, vc_xml_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180, vc_callId, vc_cSeq)); f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); vc_callId_UE2 := vc_callId; vc_cSeq_UE2 := vc_cSeq; f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // INVITE to UE3@SUThome vc_xml_local := valueof(m_XmlBody_CW(m_CW({}))); // communication_waiting_indication LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_UE3atSUThome); vc_callId_UE3 := vc_callId; vc_cSeq_UE3 := vc_cSeq; f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_MIMESdpXml(vc_sdp_local, vc_xml_local))); f_awaitingResponse(mw_Response_Base(c_statusLine180, vc_callId, vc_cSeq)); // ACTION: AWAIT BYE for CALL1 // switch to CAll1 vc_callId := vc_callId_UE2; vc_cSeq := vc_cSeq_UE2; action("Please terminate first CALL"); f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); // AWAIT 200OK for CALL2 // switch to CAll2 vc_callId := vc_callId_UE3; vc_cSeq := vc_cSeq_UE3; // POSTAMBLE: await 200 (initial invite), termination f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); // POSTAMBLE for CALL2: await 200 (initial invite), termination f_SendBYE(m_BYE_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via)); f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq)); Loading @@ -199,8 +245,7 @@ module CW_TC_Functions { // deregistration of UE f_IMS_postamble_awaitDeRegistration(); } // end f_Sip_CW_U01_004_PCSCF } // end f_Sip_CW_U01_005_PCSCF }// end group destination_UE Loading