Commit 52b79971 authored by pintar's avatar pintar
Browse files

mx checks added

parent 772ff9d1
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -4635,6 +4635,23 @@ group checksTC_IMS_SHARE_0009 {
           p_monitorCompRef.done;
        }
        
        function f_mtc_check_publish_mx(
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
		   	    		
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mw_PUBLISH_Request_Base(?))},
                {},
                {0,omit},
                "f_mtc_check_publish_mx",
                false,
                false
            )
           );
           p_monitorCompRef.done;
        }
        
        function f_mtc_check_bye_mx(
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
@@ -4771,6 +4788,23 @@ group checksTC_IMS_SHARE_0009 {
           p_monitorCompRef.done;
        }
        
        function f_mtc_check_options_mx(
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
		   	    		
           p_monitorCompRef.start(
            f_imsIot_receive(
                {mw_SipRequest(mw_OPTIONS_Request_Base(?))},
                {},
                {0,omit},
                "f_mtc_check_options_mx",
                false,
                false
            )
           );
           p_monitorCompRef.done;
        }
        
        function f_mtc_check_response_mx(
            ImsInterfaceMonitor p_monitorCompRef,
            template StatusLine p_statusLine
+178 −15

File changed.

Preview size limit exceeded, changes collapsed.

+29 −5
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ module AtsImsIot_TestCases_MESS {

	import from AtsImsIot_Functions {function all;}
	
    import from LibSip_SIPTypesAndValues {const c_statusLine200;}
	
	import from LibCommon_VerdictControl {type FncRetCode;}

	import from LibIot_PIXITS {modulepar PX_EUT_A, PX_EUT_B;}
@@ -64,7 +66,9 @@ module AtsImsIot_TestCases_MESS {
		// test body
		f_mtc_userSendMessage(v_ueA, f_getMessageBody(1301));
		f_mtc_check_TP_IMS_4002_01_gm(v_gmA);
        f_mtc_check_message_mx(v_mxA);
		f_mtc_check_TP_IMS_4002_01_ic(v_ic);
        f_mtc_check_message_mx(v_mxB);
		f_mtc_userCheckMessageReceipt(v_ueB);
		
		// postabmle
@@ -112,15 +116,19 @@ module AtsImsIot_TestCases_MESS {
		
		f_mtc_check_TP_IMS_5097_05_gm(v_gmA, false); // message not removed from port queue
		//f_mtc_check_TP_IMS_5097_07_gm(v_gmA, false); // message removed from port queue
        f_mtc_check_message_mx(v_mxA);
		f_mtc_check_TP_IMS_5097_05_ic(v_ic, false);// message not removed from port queue
		//f_mtc_check_TP_IMS_5097_07_ic(v_ic, false);// message removed from port queue
        f_mtc_check_message_mx(v_mxB);
		
		f_mtc_userCheckMessageReceipt(v_ueB);
		
		f_mtc_check_TP_IMS_5117_02_gm(v_gmB, true);// message not removed from port queue
		f_mtc_check_TP_IMS_5118_01_gm(v_gmB, false);// message removed from port queue
        f_mtc_check_response_mx(v_mxB, c_statusLine200);
		f_mtc_check_TP_IMS_5117_02_ic(v_ic, true);// message not removed from port queue
		f_mtc_check_TP_IMS_5118_01_ic(v_ic, false);// message removed from port queue
        f_mtc_check_response_mx(v_mxA, c_statusLine200);
		
		// postabmle
		f_PO_user_home_deregistration(v_ueA);
@@ -164,16 +172,20 @@ module AtsImsIot_TestCases_MESS {
		f_mtc_userSendMessage(v_ueA, "test"); 
		
		f_mtc_check_TP_IMS_5097_07_gm(v_gmA, false); 
        f_mtc_check_message_mx(v_mxA);
		f_mtc_check_TP_IMS_5097_07_ic(v_ic, false);
        f_mtc_check_message_mx(v_mxB);
		
		f_mtc_userCheckMessageReceipt(v_ueB);
		
		f_mtc_check_TP_IMS_5117_02_gm(v_gmB, true);// message not removed from port queue
		f_mtc_check_TP_IMS_5118_01_gm(v_gmB, true);// message not removed from port queue
		f_mtc_check_TP_IMS_5117_06_gm(v_gmB, false);// message removed from port queue
        f_mtc_check_response_mx(v_mxB, c_statusLine200);
		f_mtc_check_TP_IMS_5117_02_ic(v_ic, true);// message not removed from port queue
		f_mtc_check_TP_IMS_5118_01_ic(v_ic, true);// message not removed from port queue
		f_mtc_check_TP_IMS_5117_06_ic(v_ic, false);// message removed from port queue
        f_mtc_check_response_mx(v_mxA, c_statusLine200);
		
		// postabmle
		f_PO_user_home_deregistration(v_ueA);
@@ -216,14 +228,18 @@ module AtsImsIot_TestCases_MESS {
		f_mtc_userSendMessage(v_ueA, "test"); 
		
		f_mtc_check_TP_IMS_5097_08_gm(v_gmA, false); 
        f_mtc_check_message_mx(v_mxA);
		f_mtc_check_TP_IMS_5097_08_ic(v_ic, false);
        f_mtc_check_message_mx(v_mxB);
		
		// TODO add DNS checks
		
		f_mtc_userCheckMessageReceipt(v_ueB);
		
		f_mtc_check_TP_IMS_5117_06_gm(v_gmB, false);
        f_mtc_check_response_mx(v_mxB, c_statusLine200);
		f_mtc_check_TP_IMS_5117_06_ic(v_ic, false);
        f_mtc_check_response_mx(v_mxA, c_statusLine200);
		
		// postabmle
		f_PO_user_home_deregistration(v_ueA);
@@ -265,12 +281,16 @@ module AtsImsIot_TestCases_MESS {
		// test body
		f_mtc_userSendMessage(v_ueA, "test"); 

        f_mtc_check_message_mx(v_mxA);
		f_mtc_check_TP_IMS_5108_02_ic(v_ic); // TODO must be checked
        f_mtc_check_message_mx(v_mxB);

		f_mtc_userCheckMessageReceipt(v_ueB);
		
		f_mtc_check_TP_IMS_5118_01_gm(v_gmA, false);
        f_mtc_check_response_mx(v_mxA, c_statusLine200);
		f_mtc_check_TP_IMS_5118_01_ic(v_ic, false);
        f_mtc_check_response_mx(v_mxB, c_statusLine200);
		
		// postabmle
		f_PO_user_home_deregistration(v_ueA);
@@ -309,7 +329,9 @@ module AtsImsIot_TestCases_MESS {
		f_mtc_userSendMessage(v_ueA, "test"); 
		
		f_mtc_check_TP_IMS_5114_02_gm(v_gmA); 
        f_mtc_check_message_mx(v_mxA);
		f_mtc_check_TP_IMS_5114_02_ic(v_ic);
        f_mtc_check_message_mx(v_mxB); 
		
		f_mtc_userCheckMessageNotDelivered(v_ueA);
		
@@ -352,7 +374,9 @@ module AtsImsIot_TestCases_MESS {
		f_mtc_userSendMessage(v_ueA, "test"); 
		
		f_mtc_check_TP_IMS_5108_06_gm(v_gmA);
        f_mtc_check_message_mx(v_mxA); 
		f_mtc_check_TP_IMS_5108_06_ic(v_ic);
        f_mtc_check_message_mx(v_mxB); 
		
		f_mtc_userCheckMessageNotDelivered(v_ueA);
		
+135 −20

File changed.

Preview size limit exceeded, changes collapsed.

+53 −14
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ module AtsImsIot_TestCases_REG {
        function all;
    }
	
    import from LibSip_SIPTypesAndValues {const c_statusLine200, c_statusLine401, c_statusLine403;}

	import from LibIot_TestInterface {type IotEquipmentUser;}

	import from AtsImsIot_TestSystem {
@@ -66,21 +68,33 @@ module AtsImsIot_TestCases_REG {
		f_mtc_check_TP_IMS_5011_01_ic(v_ic, true); // Check1 then 
				
		f_mtc_check_TP_IMS_5089_01_gm_when(v_gmA, false); // Check4 when (Gm)
        f_mtc_check_register_mx(v_mxA);
		f_mtc_check_TP_IMS_5089_01_ic_when(v_ic, false); // Check4 when (Mw) 
        f_mtc_check_register_mx(v_mxB);
        f_mtc_check_response_mx(v_mxB, c_statusLine401);
		f_mtc_check_TP_IMS_5089_01_ic_then(v_ic, false); // Check4 then @TODO check mw_WwwAuthenticate
        f_mtc_check_response_mx(v_mxA, c_statusLine401);
        
		f_mtc_check_TP_IMS_5011_02_gm(v_gmA, true); // Check2 when (Gm)
		f_mtc_check_TP_IMS_5011_02_ic(v_ic, true);  // Check2 then (Mw)
		
		f_mtc_check_TP_IMS_5092_01_gm(v_gmA, false); // Check5 when (Gm)
        f_mtc_check_register_mx(v_mxA);
		f_mtc_check_TP_IMS_5092_01_ic_when(v_ic, false); // Check5 when (Mw)
        f_mtc_check_register_mx(v_mxB);		
        f_mtc_check_response_mx(v_mxB, c_statusLine200);
		f_mtc_check_TP_IMS_5092_01_ic(v_ic, true); // Check5 then
        f_mtc_check_response_mx(v_mxA, c_statusLine200);

        f_mtc_check_subscribe_mx(v_mxA);
		v_200OK_Step8 := f_mtc_check_TP_IMS_5044_01_ic_when(v_ic, false); // Check3 when
		f_mtc_check_TP_IMS_5044_01_ic(v_ic, v_200OK_Step8, true); // Check3 then
        f_mtc_check_subscribe_mx(v_mxB);		

        f_mtc_check_response_mx(v_mxB, c_statusLine200);
		v_Subscribe_Step10 := f_mtc_check_TP_IMS_5096_01_ic_when(v_ic, false); // Check6 when 
		f_mtc_check_TP_IMS_5096_01_ic(v_ic, v_Subscribe_Step10, false); // Check6 then
        f_mtc_check_response_mx(v_mxA, c_statusLine200);
		
		// Test Sequence Step 2
		f_mtc_userCheckRegistration(v_ueB, v_anyValidUser);
@@ -124,21 +138,34 @@ module AtsImsIot_TestCases_REG {
        f_mtc_check_TP_IMS_5011_03_ic(v_ic, true); // Check1 then 
		
        f_mtc_check_TP_IMS_5089_02_gm_when(v_gmA, false); // Check4 when (Gm)		
        f_mtc_check_register_mx(v_mxA);
        f_mtc_check_TP_IMS_5089_02_ic_when(v_ic, false); // Check4 when (Mw) 
        f_mtc_check_register_mx(v_mxB);
        f_mtc_check_response_mx(v_mxB, c_statusLine401);
        f_mtc_check_TP_IMS_5089_02_ic_then(v_ic, false); // Check4 then @TODO check mw_WwwAuthenticate
        f_mtc_check_response_mx(v_mxA, c_statusLine401);
		
        f_mtc_check_TP_IMS_5011_04_gm(v_gmA, true); // Check2 when (Gm)	
        f_mtc_check_TP_IMS_5011_04_ic(v_ic, true);  // Check2 then (Mw)
		
        f_mtc_check_TP_IMS_5092_01_gm(v_gmA, false); // Check5 when (Gm)		
        f_mtc_check_register_mx(v_mxA);	
        f_mtc_check_TP_IMS_5092_01_ic_when(v_ic, false); // Check5 when (Mw)
        f_mtc_check_register_mx(v_mxB);			
        f_mtc_check_response_mx(v_mxB, c_statusLine200);
        f_mtc_check_TP_IMS_5092_01_ic(v_ic, true); // Check5 then			
        f_mtc_check_response_mx(v_mxA, c_statusLine200);
		
        f_mtc_check_subscribe_mx(v_mxA);
        v_200OK_Step8 := f_mtc_check_TP_IMS_5044_01_ic_when(v_ic, false); // Check3 when
        f_mtc_check_TP_IMS_5044_01_ic(v_ic, v_200OK_Step8, true); // Check3 then
        f_mtc_check_subscribe_mx(v_mxB);
		

        f_mtc_check_response_mx(v_mxB, c_statusLine200);
        v_Subscribe_Step10 := f_mtc_check_TP_IMS_5096_01_ic_when(v_ic, false); // Check6 when 
        f_mtc_check_TP_IMS_5096_01_ic(v_ic, v_Subscribe_Step10, false); // Check6 then
        f_mtc_check_response_mx(v_mxA, c_statusLine200);

        // Test Sequence Step 2
        f_mtc_userCheckRegistration(v_ueB, v_anyValidUser);
@@ -179,8 +206,10 @@ module AtsImsIot_TestCases_REG {
		// check no response (check1-when) -message skip (1st register) 
		// check included in check1-then

        f_mtc_check_register_mx(v_mxA);
		// check mw for second register request 
		f_mtc_check_TP_IMS_5203_01_ic(v_ic); // (Check1-then)
        f_mtc_check_register_mx(v_mxB);
		
		// check gm for protected register (Check2-when)
			
@@ -224,9 +253,14 @@ module AtsImsIot_TestCases_REG {
		f_mtc_userRegistration(v_ueB, v_anyValidUser); // Test Sequence Step 1
		
		f_mtc_check_TP_IMS_5129_01_gm(v_gmA, false); // Check1 when (Gm)

        f_mtc_check_register_mx(v_mxA);
		f_mtc_check_TP_IMS_5129_01_ic_when(v_ic, false); // Check1 when (Mw)
        f_mtc_check_register_mx(v_mxB);

        f_mtc_check_response_mx(v_mxB, c_statusLine403);
		f_mtc_check_TP_IMS_5129_01_ic(v_ic, false); // Check1 then
        f_mtc_check_response_mx(v_mxA, c_statusLine403);
        
		f_mtc_userCheckNoRegistration(v_ueB, v_anyValidUser); // Test Sequence Step 2 - unsuccessful registration 
		
@@ -259,8 +293,13 @@ module AtsImsIot_TestCases_REG {
		
		// IMS_B receives a network_originated_deregistration_event // Check1 when manually

        f_mtc_check_notify_mx(v_mxB);
		f_mtc_check_TP_IMS_5093_01_UE_ic(v_ic, v_anyValidUser, false); // check1 then - 1st NOTIFY 
        f_mtc_check_notify_mx(v_mxA);

        f_mtc_check_notify_mx(v_mxB);
		f_mtc_check_TP_IMS_5093_01_IMS_ic(v_ic, false); // check1 then - 2nd NOTIFY
        f_mtc_check_notify_mx(v_mxA);
        
		f_mtc_userCheckNoRegistration(v_ueB, v_anyValidUser); // Test Sequence Step 2 - check that user is not registered anymore (de-registration)
		
Loading