Commit c59b3e50 authored by poglitsch's avatar poglitsch
Browse files

MESS_004 TC added

parent eea20da6
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
@@ -1669,6 +1669,50 @@ group checksTC_IMS_SS_0007 {
	    }
	    
	      
	    /**
	     * @desc Starts monitor component behavior for TP_IMS_5097_08
		 * @param p_monitorCompRef Reference to monitor component
		 */
	    function f_mtc_check_TP_IMS_5097_08_gm(
	    	ImsInterfaceMonitor p_monitorCompRef,
	    	boolean p_checkMessage
	    ) runs on ImsTestCoordinator {
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mdw_TP_IMS_5097_08_gm(*))},
                {mw_SipRequest(mw_MESSAGE_Request_Base(*))},
                {0, omit},
                "TP_IMS_5097_08",
                false,
                p_checkMessage
            )
           );
           p_monitorCompRef.done;
	    }
	    
	    
	    /**
		 * @desc Starts monitor component behavior for TP_IMS_5097_08
		 * @param p_monitorCompRef Reference to monitor component
		 */
	    function f_mtc_check_TP_IMS_5097_08_mw(
	    	ImsInterfaceMonitor p_monitorCompRef,
	    	boolean p_checkMessage
	    ) runs on ImsTestCoordinator {
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mdw_TP_IMS_5097_08_mw(*))},
                {mw_SipRequest(mw_MESSAGE_Request_Base(*))},
                {0, omit},
                "TP_IMS_5097_08",
                false,
                p_checkMessage
            )
           );
           p_monitorCompRef.done;
	    }
	    
	    
	    /**
	     * @desc Starts monitor component behavior for TP_IMS_5117_02
		 * @param p_monitorCompRef Reference to monitor component
+24 −0
Original line number Diff line number Diff line
@@ -423,6 +423,30 @@ module AtsImsIot_Templates {
        }
    }
    
    template Request mdw_TP_IMS_5097_08_gm(
      template CallId p_callId
    ) modifies mw_MESSAGE_Request_Base := {
       requestLine := { requestUri := mw_TEL_URI_Base }
    }
    
    template Request mdw_TP_IMS_5097_08_mw(
      template CallId p_callId
    ) modifies mw_MESSAGE_Request_Base := {
       requestLine := { 
       		requestUri := mw_TEL_URI_Base 
       	},
       	msgHeader := {
       		pChargingVector := {
	           fieldName := P_CHARGING_VECTOR_E,
	           chargeParams := {
                    *, 
                    complement({id := "access-network-charging-info", paramValue := ?}),
		            *
	           }
	        }	
       	}
    }
    
    template Request mdw_TP_IMS_5097_07_mw(
      template CallId p_callId,
      template SipUrl p_SIP_URI,
+50 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ module AtsImsIot_TestCases_MESS {
	/**
     * @desc
     *     IMS network handles messaging with TEL URI identities correctly
     *     (ETSI TS 186 011-2 V2.3.1 cause 4.5.4.1)
     *     (ETSI TS 186 011-2 V2.3.1 cause 4.5.4.2)
     */
	testcase TC_IMS_MESS_0003() runs on ImsTestCoordinator system IotSystemInterface {
		// create components
@@ -176,4 +176,53 @@ module AtsImsIot_TestCases_MESS {
		f_cf_monitor_down(v_gmB);
		f_cf_monitor_down(v_mw);
	}
	
	/**
     * @desc
     *     IMS netwirk handles messaging with DNS/ENUM lookup procedure correctly
     *     (ETSI TS 186 011-2 V2.3.1 cause 4.5.4.3)
     */
	testcase TC_IMS_MESS_0004() runs on ImsTestCoordinator system IotSystemInterface {
		// create components
		var IotEquipmentUser v_ueA := f_cf_create_IotEquipmentUser(c_userUE_A);
		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_gmB := f_cf_create_monitor(c_gm_B);
		var ImsInterfaceMonitor v_mw := f_cf_create_monitor(c_mw);
		
		// map/connect component ports
		f_cf_user_up(v_ueA);
		f_cf_user_up(v_ueB);
		f_cf_monitor_up(v_gmA);
		f_cf_monitor_up(v_gmB);
		f_cf_monitor_up(v_mw);
		
		// preamble
		f_PR_user_home_registration(v_ueA, f_getTelUserId(PX_EUT_A));
		f_PR_user_home_registration(v_ueB, f_getTelUserId(PX_EUT_B));
		
		// test body
		f_mtc_userSendMessage(v_ueA, "test"); 
		
		f_mtc_check_TP_IMS_5097_08_gm(v_gmA, false); 
		f_mtc_check_TP_IMS_5097_08_mw(v_mw, false);
		
		// TODO add DNS checks
		
		f_mtc_userCheckMessageReceipt(v_ueB);
		
		f_mtc_check_TP_IMS_5117_06_gm(v_gmB, false);
		f_mtc_check_TP_IMS_5117_06_mw(v_mw, false);
		
		// postabmle
		f_PO_user_home_deregistration(v_ueA);
		f_PO_user_home_deregistration(v_ueB);
		
		//unmap/disconnet component ports
		f_cf_user_down(v_ueA);
		f_cf_user_down(v_ueB);
		f_cf_monitor_down(v_gmA);
		f_cf_monitor_down(v_gmB);
		f_cf_monitor_down(v_mw);
	}	
}
 No newline at end of file