Commit 0f35b792 authored by ringst's avatar ringst
Browse files

TC_IMS_REG_0006 updated

parent 59a519e0
Loading
Loading
Loading
Loading
+13 −18
Original line number Diff line number Diff line
@@ -1032,23 +1032,20 @@ group checksTC_IMS_REG_0004 {
		* @desc Starts monitor component behavior for TP_IMS_5094_01 (mw)
		* @param p_monitorCompRef Reference to monitor component
		*/
		function f_mtc_check_TP_IMS_5094_01_UE(ImsInterfaceMonitor p_monitorCompRef) 
			runs on ImsTestCoordinator {
    		
			var template SipUrl v_request_uri := mw_SipUrl_Host(f_GetEUTPcscfAddress(PX_EUT_A));
		function f_mtc_check_TP_IMS_5094_01_UE(
			ImsInterfaceMonitor p_monitorCompRef, ImsUserInfo v_anyValidUser, boolean p_checkMessage
		) runs on ImsTestCoordinator {
    		
			var charstring v_hostname := "foo";
			var integer PX_UE_B := 1; // TODO this is just temporary, UE PIXIT needs to be determined
			f_getUEHostname(PX_UE_B, v_hostname); // TODO needs recheck, maybe in more detail with userOrTelephoneSubscriber etc
			var template SipUrl v_request_uri := mw_SipUrl_Number(v_anyValidUser.publicId);
    
			p_monitorCompRef.start(
				f_imsIot_receive(
					{mw_SipRequest(mdw_TP_IMS_5094_01_UE(?, v_request_uri))}, // TODO getHostname(PCSCF) how to hande the callid?
					{mw_SipRequest(mw_MESSAGE_Request_Base(?))},
					{mw_SipRequest(mdw_TP_IMS_5094_01_UE(?, v_request_uri))}, 
					{mw_SipRequest(mw_NOTIFY_Request_Base(?))},
					{0, omit},
					"TP_IMS_5094_01_mw",
					false,
                	false
					p_checkMessage
				)
			);
			p_monitorCompRef.done;
@@ -1058,22 +1055,20 @@ group checksTC_IMS_REG_0004 {
		* @desc Starts monitor component behavior for TP_IMS_5094_01 (mw)
		* @param p_monitorCompRef Reference to monitor component
		*/
		function f_mtc_check_TP_IMS_5094_01_IMS(ImsInterfaceMonitor p_monitorCompRef) 
			runs on ImsTestCoordinator {
		function f_mtc_check_TP_IMS_5094_01_IMS(
			ImsInterfaceMonitor p_monitorCompRef, boolean p_checkMessage
		) runs on ImsTestCoordinator {

			var template SipUrl v_request_uri := mw_SipUrl_Host(f_GetEUTPcscfAddress(PX_EUT_A));

			var charstring v_hostname := "foo";
			//f_getHostname(PX_EUT_A, "pcscf", v_hostname); // needs recheck

			p_monitorCompRef.start(
				f_imsIot_receive(
					{mw_SipRequest(mdw_TP_IMS_5094_01_IMS_mw(?, v_request_uri))}, // TODO getHostname(PCSCF) how to hande the callid?
					{mw_SipRequest(mw_MESSAGE_Request_Base(?))},
					{mw_SipRequest(mdw_TP_IMS_5094_01_IMS_mw(?, v_request_uri))},
					{mw_SipRequest(mw_NOTIFY_Request_Base(?))},
					{0, omit},
					"TP_IMS_5094_01_mw",
					false,
                	false
					p_checkMessage
				)
			);
			p_monitorCompRef.done;
+6 −6
Original line number Diff line number Diff line
@@ -927,24 +927,24 @@ module AtsImsIot_Templates {
        }  
    	
		template NOTIFY_Request mdw_TP_IMS_5094_01_UE(template CallId p_callId, template SipUrl p_UE_SIP_URI) modifies mw_NOTIFY_Request_Base := { 
			requestLine := { requestUri := p_UE_SIP_URI }, // TODO check if this is the UE_SIP_URI
			requestLine := { requestUri := p_UE_SIP_URI }, 
			msgHeader := { 
				event := {
					fieldName := EVENT_E, 
					eventType := pattern "*reg*", // TODO check content
					eventType := pattern "*reg*", 
					eventParams := *},
				route := ? }, // TODO route header indicating the original Route_header from SUBSCRIBE 
				route := ? }, // TODO route header indicating the original Route_header from SUBSCRIBE (SUBSCRIBE not defined in the test description) 
			messageBody := ? // TODO 
		} 
            
		template NOTIFY_Request mdw_TP_IMS_5094_01_IMS_mw(template CallId p_callId, template SipUrl p_PCSCF_SIP_URI) modifies mw_NOTIFY_Request_Base := { 
			requestLine := { requestUri := p_PCSCF_SIP_URI }, // TODO check if this is the P-CSCF_SIP_URI
			requestLine := { requestUri := p_PCSCF_SIP_URI }, 
			msgHeader := { 
				event := {
					fieldName := EVENT_E, 
					eventType := pattern "*reg*", // TODO check content
					eventType := pattern "*reg*",
					eventParams := *},
				route := ? }, // TODO route header indicating the original Route_header from SUBSCRIBE 
				route := ? }, // TODO route header indicating the original Route_header from SUBSCRIBE (SUBSCRIBE not defined in the test description) 
			messageBody := ? // TODO 
		}
		
+7 −5
Original line number Diff line number Diff line
@@ -299,12 +299,12 @@ module AtsImsIot_TestCases_REG {
	* @desc IMS network can initiate user re-authentication 
	* @see 	ETSI TS 186 011-2 V2.3.1 cause 4.5.2.8
	*/
	// @TODO
	testcase TC_IMS_REG_0006() runs on ImsTestCoordinator system IotSystemInterface {
		// create components
		var IotEquipmentUser v_ueB := f_cf_create_IotEquipmentUser(c_userUE_B);
		var ImsInterfaceMonitor v_gmA := f_cf_create_monitor(c_gm_A);
		var ImsInterfaceMonitor v_mw := f_cf_create_monitor(c_mw);
		var ImsUserInfo v_anyValidUser := f_getAnyValidUser(PX_EUT_B);
		
		// map/connect component ports
		f_cf_user_up(v_ueB);
@@ -312,10 +312,12 @@ module AtsImsIot_TestCases_REG {
		
		// test body
		
		f_mtc_check_TP_IMS_5094_01_UE(v_mw);
		f_mtc_check_TP_IMS_5094_01_UE(v_gmA); 
		f_mtc_check_TP_IMS_5094_01_IMS(v_mw);
		f_mtc_userCheckRegistration(v_ueB, f_getAnyValidUser(PX_EUT_A));
		//IMS_B receives a network_originated_deregistration_event // Check1 when manually
		
		f_mtc_check_TP_IMS_5094_01_UE(v_mw, v_anyValidUser, false); // check1 then - 1st NOTIFY 
		f_mtc_check_TP_IMS_5094_01_IMS(v_mw, false); // check1 then - 2nd NOTIFY
		
		f_mtc_userCheckRegistration(v_ueB, v_anyValidUser); // Test Sequence Step 2
		
		// postamble
		f_PO_user_home_deregistration(v_ueB);