Loading AtsNIT_SipSip/ttcn/AtsNIT_SipSip_SS_TCFunctions.ttcn +321 −21 Original line number Diff line number Diff line Loading @@ -11659,6 +11659,8 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_001UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := true; var SipUrl v_confUrl; Loading @@ -11668,9 +11670,15 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_loadSession(v_CONF_Session); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( Loading @@ -11687,8 +11695,9 @@ module AtsNIT_SipSip_SS_TCFunctions { LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // removing user UE2 to the conference f_SendREFER(m_REFER_Request_Base( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_contact, Loading Loading @@ -11732,12 +11741,30 @@ module AtsNIT_SipSip_SS_TCFunctions { * // TODO check XML Body )); //await BYE and send 200OK //f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble // releases the entire conference //SendBYE and await response f_terminateCall_UE( v_confUrl, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To ); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, ?, "application/conference-info+xml", m_Event_conference, * // TODO check XML Body )); f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_001UE1 Loading @@ -11753,7 +11780,7 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); Loading @@ -11761,7 +11788,6 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // subscribe to conference state //await BYE and send 200 OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -11781,7 +11807,9 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_002UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables // enables conference state subscription var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // disables conference state subscription var boolean v_subscription := false; var SipUrl v_confUrl; Loading @@ -11790,18 +11818,26 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody f_loadSession(v_CONF_Session); LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // removing user UE2 to the conference f_SendREFER(m_REFER_Request_Base( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_contact, Loading Loading @@ -11837,12 +11873,20 @@ module AtsNIT_SipSip_SS_TCFunctions { )); //await BYE and send 200OK //f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble // releases the entire conference //SendBYE and await response f_terminateCall_UE( v_confUrl, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To ); f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_002UE1 Loading @@ -11857,14 +11901,13 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // subscribe to conference state //await BYE and send 200 OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -11884,6 +11927,8 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_003UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := true; var SipUrl v_confUrl; Loading @@ -11893,9 +11938,15 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_loadSession(v_CONF_Session); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( Loading @@ -11910,9 +11961,10 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // releases the entire conference //SendBYE and await response f_terminateCall_UE( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_caller_From, Loading Loading @@ -11948,7 +12000,7 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); Loading @@ -11956,7 +12008,6 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // subscribe to conference state //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -11975,7 +12026,9 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_004UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables // enables conference state subscription var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // disables conference state subscription var boolean v_subscription := false; var SipUrl v_confUrl; Loading @@ -11984,17 +12037,24 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody f_loadSession(v_CONF_Session); // releases the entire conference //SendBYE and await response f_terminateCall_UE( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_caller_From, Loading @@ -12020,7 +12080,7 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); Loading @@ -12028,7 +12088,6 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // subscribe to conference state //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -12041,6 +12100,247 @@ module AtsNIT_SipSip_SS_TCFunctions { } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_004UE2 /* * @desc This is the test case function (originating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := true; var SipUrl v_confUrl; // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_loadSession(v_CONF_Session); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "active", "application/conference-info+xml", m_Event_conference, * // TODO check XML Body )); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // releases the entire conference f_SendREFER(m_REFER_Request_Base( v_confUrl, vc_callId, vc_cSeq, vc_contact, vc_from, vc_to, vc_via, m_ReferTo_SipUrl(v_confUrl, "BYE"), omit )); f_awaitingResponse(mw_Response_Base( c_statusLine202, vc_callId, vc_cSeq )); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "active", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 100 Trying") )); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "terminated", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 200 OK") )); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, ?, "application/conference-info+xml", m_Event_conference, * // TODO check XML Body )); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1 /* * @desc This is the test case function (terminating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2(in CSeq p_cSeq_s) runs on ImsComponent { // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE2atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody //await BYE and send 200 OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2 /* * @desc This is the test case function (originating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := false; var SipUrl v_confUrl; // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody f_loadSession(v_CONF_Session); LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // releases the entire conference f_SendREFER(m_REFER_Request_Base( v_confUrl, vc_callId, vc_cSeq, vc_contact, vc_from, vc_to, vc_via, m_ReferTo_SipUrl(v_confUrl, "BYE"), omit )); f_awaitingResponse(mw_Response_Base( c_statusLine202, vc_callId, vc_cSeq )); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "active", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 100 Trying") )); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "terminated", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 200 OK") )); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1 /* * @desc This is the test case function (terminating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2(in CSeq p_cSeq_s) runs on ImsComponent { // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE2atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // subscribe to conference state //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2 }//end group TP2_10_SS_CONF group TP2_11_SS_CFNRc { Loading AtsNIT_SipSip/ttcn/AtsNIT_SipSip_Testcases.ttcn +46 −2 Original line number Diff line number Diff line Loading @@ -1783,7 +1783,51 @@ group TP2_1_SS_OIP_OIR { f_cf_2imsDown(v_imsComponent1,v_imsComponent2); } // end TC_SSS__XXSSCONF_REMOV_004 }//end group TP2_8_3_SS_CONF_REMOV testcase TC_SSS__XXSSCONF_REMOV_005 ( inout CSeq p_CSeq_s ) runs on ServerSyncComp system TestAdapter { //Variables var ImsComponent v_imsComponent1; var ImsComponent v_imsComponent2; //Configuration f_cf_2imsUp(v_imsComponent1,v_imsComponent2); f_IncCSeq(p_CSeq_s); //Start v_imsComponent1.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1(p_CSeq_s)); v_imsComponent2.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2(p_CSeq_s)); // synchronize both PTCs on 4 sychronization points f_serverSync2ClientsAndStop({c_prDone, c_Ringing, c_uPlane, c_tbDone}); //Clear configration f_cf_2imsDown(v_imsComponent1,v_imsComponent2); } // end TC_SSS__XXSSCONF_REMOV_005 testcase TC_SSS__XXSSCONF_REMOV_006 ( inout CSeq p_CSeq_s ) runs on ServerSyncComp system TestAdapter { //Variables var ImsComponent v_imsComponent1; var ImsComponent v_imsComponent2; //Configuration f_cf_2imsUp(v_imsComponent1,v_imsComponent2); f_IncCSeq(p_CSeq_s); //Start v_imsComponent1.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1(p_CSeq_s)); v_imsComponent2.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2(p_CSeq_s)); // synchronize both PTCs on 4 sychronization points f_serverSync2ClientsAndStop({c_prDone, c_Ringing, c_uPlane, c_tbDone}); //Clear configration f_cf_2imsDown(v_imsComponent1,v_imsComponent2); } // end TC_SSS__XXSSCONF_REMOV_006 }//end group TP2_8_4_SS_CONF_REMOV }//end group TP2_8_SS_CONF Loading Loading
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_SS_TCFunctions.ttcn +321 −21 Original line number Diff line number Diff line Loading @@ -11659,6 +11659,8 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_001UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := true; var SipUrl v_confUrl; Loading @@ -11668,9 +11670,15 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_loadSession(v_CONF_Session); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( Loading @@ -11687,8 +11695,9 @@ module AtsNIT_SipSip_SS_TCFunctions { LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // removing user UE2 to the conference f_SendREFER(m_REFER_Request_Base( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_contact, Loading Loading @@ -11732,12 +11741,30 @@ module AtsNIT_SipSip_SS_TCFunctions { * // TODO check XML Body )); //await BYE and send 200OK //f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble // releases the entire conference //SendBYE and await response f_terminateCall_UE( v_confUrl, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To ); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, ?, "application/conference-info+xml", m_Event_conference, * // TODO check XML Body )); f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_001UE1 Loading @@ -11753,7 +11780,7 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); Loading @@ -11761,7 +11788,6 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // subscribe to conference state //await BYE and send 200 OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -11781,7 +11807,9 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_002UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables // enables conference state subscription var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // disables conference state subscription var boolean v_subscription := false; var SipUrl v_confUrl; Loading @@ -11790,18 +11818,26 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody f_loadSession(v_CONF_Session); LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // removing user UE2 to the conference f_SendREFER(m_REFER_Request_Base( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_contact, Loading Loading @@ -11837,12 +11873,20 @@ module AtsNIT_SipSip_SS_TCFunctions { )); //await BYE and send 200OK //f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble // releases the entire conference //SendBYE and await response f_terminateCall_UE( v_confUrl, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To ); f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_002UE1 Loading @@ -11857,14 +11901,13 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // subscribe to conference state //await BYE and send 200 OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -11884,6 +11927,8 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_003UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := true; var SipUrl v_confUrl; Loading @@ -11893,9 +11938,15 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_loadSession(v_CONF_Session); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( Loading @@ -11910,9 +11961,10 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // releases the entire conference //SendBYE and await response f_terminateCall_UE( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_caller_From, Loading Loading @@ -11948,7 +12000,7 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); Loading @@ -11956,7 +12008,6 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // subscribe to conference state //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -11975,7 +12026,9 @@ module AtsNIT_SipSip_SS_TCFunctions { */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_004UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables // enables conference state subscription var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // disables conference state subscription var boolean v_subscription := false; var SipUrl v_confUrl; Loading @@ -11984,17 +12037,24 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody f_loadSession(v_CONF_Session); // releases the entire conference //SendBYE and await response f_terminateCall_UE( vc_requestUri, v_confUrl, vc_callId, vc_cSeq, vc_caller_From, Loading @@ -12020,7 +12080,7 @@ module AtsNIT_SipSip_SS_TCFunctions { f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // await REFER // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); Loading @@ -12028,7 +12088,6 @@ module AtsNIT_SipSip_SS_TCFunctions { // Testbody // subscribe to conference state //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); Loading @@ -12041,6 +12100,247 @@ module AtsNIT_SipSip_SS_TCFunctions { } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_004UE2 /* * @desc This is the test case function (originating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := true; var SipUrl v_confUrl; // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_loadSession(v_CONF_Session); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "active", "application/conference-info+xml", m_Event_conference, * // TODO check XML Body )); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // releases the entire conference f_SendREFER(m_REFER_Request_Base( v_confUrl, vc_callId, vc_cSeq, vc_contact, vc_from, vc_to, vc_via, m_ReferTo_SipUrl(v_confUrl, "BYE"), omit )); f_awaitingResponse(mw_Response_Base( c_statusLine202, vc_callId, vc_cSeq )); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "active", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 100 Trying") )); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "terminated", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 200 OK") )); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, ?, "application/conference-info+xml", m_Event_conference, * // TODO check XML Body )); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1 /* * @desc This is the test case function (terminating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2(in CSeq p_cSeq_s) runs on ImsComponent { // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE2atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody //await BYE and send 200 OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2 /* * @desc This is the test case function (originating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1(in CSeq p_cSeq_s) runs on ImsComponent { // variables var SessionDialog v_UE2_Session; var SessionDialog v_CONF_Session; // enables conference state subscription var boolean v_subscription := false; var SipUrl v_confUrl; // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // conference creation v_confUrl := f_createConference(vc_cSeq, c_conferenceProfile_factoryURI, v_subscription); v_CONF_Session := f_saveSession(); // inviting user UE2 to the conference f_referUser(vc_cSeq, c_userProfile_UE2atSUThome, v_confUrl); v_UE2_Session := f_saveSession(); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody f_loadSession(v_CONF_Session); LibIms_Steps.f_setHeadersREFER_conf(vc_cSeq, f_initSipUrl(c_conferenceProfile_factoryURI)); // releases the entire conference f_SendREFER(m_REFER_Request_Base( v_confUrl, vc_callId, vc_cSeq, vc_contact, vc_from, vc_to, vc_via, m_ReferTo_SipUrl(v_confUrl, "BYE"), omit )); f_awaitingResponse(mw_Response_Base( c_statusLine202, vc_callId, vc_cSeq )); //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "active", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 100 Trying") )); //await NOTIFY and send reply 200 OK f_awaitingNOTIFY_sendReply(mw_NOTIFY_Request( vc_callId, "terminated", "message/sipfrag", m_Event_refer, m_MBody_sipfrag("SIP/2.0 200 OK") )); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1 /* * @desc This is the test case function (terminating side) for f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2 * @param p_CSeq_s Transaction Id */ function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2(in CSeq p_cSeq_s) runs on ImsComponent { // premable f_IMS_preamble_withRegistrationBasic(c_userProfile_UE2atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // joining the conference f_joinConference(vc_cSeq, c_conferenceProfile_factoryURI); f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // Testbody // subscribe to conference state //await BYE and send 200OK f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId)); f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); // postamble f_IMS_postamble_withDeRegistration(vc_cSeq); } // end function f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2 }//end group TP2_10_SS_CONF group TP2_11_SS_CFNRc { Loading
AtsNIT_SipSip/ttcn/AtsNIT_SipSip_Testcases.ttcn +46 −2 Original line number Diff line number Diff line Loading @@ -1783,7 +1783,51 @@ group TP2_1_SS_OIP_OIR { f_cf_2imsDown(v_imsComponent1,v_imsComponent2); } // end TC_SSS__XXSSCONF_REMOV_004 }//end group TP2_8_3_SS_CONF_REMOV testcase TC_SSS__XXSSCONF_REMOV_005 ( inout CSeq p_CSeq_s ) runs on ServerSyncComp system TestAdapter { //Variables var ImsComponent v_imsComponent1; var ImsComponent v_imsComponent2; //Configuration f_cf_2imsUp(v_imsComponent1,v_imsComponent2); f_IncCSeq(p_CSeq_s); //Start v_imsComponent1.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE1(p_CSeq_s)); v_imsComponent2.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_005UE2(p_CSeq_s)); // synchronize both PTCs on 4 sychronization points f_serverSync2ClientsAndStop({c_prDone, c_Ringing, c_uPlane, c_tbDone}); //Clear configration f_cf_2imsDown(v_imsComponent1,v_imsComponent2); } // end TC_SSS__XXSSCONF_REMOV_005 testcase TC_SSS__XXSSCONF_REMOV_006 ( inout CSeq p_CSeq_s ) runs on ServerSyncComp system TestAdapter { //Variables var ImsComponent v_imsComponent1; var ImsComponent v_imsComponent2; //Configuration f_cf_2imsUp(v_imsComponent1,v_imsComponent2); f_IncCSeq(p_CSeq_s); //Start v_imsComponent1.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE1(p_CSeq_s)); v_imsComponent2.start(f_AtsNIT_TC_SSS__XXSSCONF_REMOV_006UE2(p_CSeq_s)); // synchronize both PTCs on 4 sychronization points f_serverSync2ClientsAndStop({c_prDone, c_Ringing, c_uPlane, c_tbDone}); //Clear configration f_cf_2imsDown(v_imsComponent1,v_imsComponent2); } // end TC_SSS__XXSSCONF_REMOV_006 }//end group TP2_8_4_SS_CONF_REMOV }//end group TP2_8_SS_CONF Loading