Commit 79a3a9f8 authored by bergengruen's avatar bergengruen
Browse files

trigger functions introduced. All of them are still to do.

parent 78879905
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ group checksTC_IMS_MESS_0001{
            f_imsIot_receive(
                {mw_SipRequest(mdw_TP_IMS_4002_01(?))},//? CallId can be checked
                {mw_SipRequest(mw_MESSAGE_Request_Base(?))},
                {0, omit},
                {1, mw_SipRequest(mw_MESSAGE_Request_Base(?))},
                "TP_IMS_4002_01_gm",
                false
            )
+140 −3
Original line number Diff line number Diff line
@@ -58,20 +58,157 @@ module AtsImsIot_Functions {
     		}

 		/**
		  * @desc
		  *     Starts user component behavior for initiating a call
		  * @desc Trigger UE given by p_ueRef to initiate an MO call 
		  * @param p_userCompRef Reference to IMS UE user component
		  * @param p_calledParty ImsUserInfo of called party
		  * @return
		  *     true in case of successfull execution of the trigger command
		  *     otherwise false
		  */
 		function f_mtc_userInitiateCall(EquipmentUser p_userCompRef, ImsUserInfo p_calledParty) 
 		function f_mtc_userTriggerInitiateCall(EquipmentUser p_ueRef, ImsUserInfo p_calledParty) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
 		/**
		  * @desc Trigger UE given by p_ueRef to initiate an MO call 
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return
		  *     true in case of successfull execution of the trigger command
		  *     otherwise false
		  */
 		function f_mtc_userTriggerAnswerCall(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
 		/**
		  * @desc Trigger UE given by p_ueRef to end current call 
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return
		  *     true in case of successfull execution of the trigger command
		  *     otherwise false
		  */
 		function f_mtc_triggerEndCall(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}


 		/**
		  * @desc Trigger UE given by p_ueRef to enter HOLD state 
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return
		  *     true in case of successfull execution of the trigger command
		  *     otherwise false
		  */
 		function f_mtc_userTriggerHold(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
 		/**
		  * @desc Trigger UE given by p_ueRef to leave HOLD state and resume pending call  
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return
		  *     true in case of successfull execution of the trigger command
		  *     otherwise false
		  */
 		function f_mtc_userTriggerResume(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
			
 		/**
		  * @desc Check that UE given by p_ueRef is ringing
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return true or false
		  */
 		function f_mtc_userCheckRinging(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}

 		/**
		  * @desc Check that UE given by p_ueRef reports a successfull call establishment
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return true or false
		  */
 		function f_mtc_userCheckCallEstablished(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}


 		/**
		  * @desc Check that UE by p_ueRef given reports that its peer is ringing
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return true or false
		  */
 		function f_mtc_userCheckPeerIsRinging(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
 		/**
		  * @desc Check that UE by p_ueRef given reports HOLD state
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return true or false
		  */
 		function f_mtc_userCheckUserOnHold(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
 		/**
		  * @desc Check that UE by p_ueRef given reports that call has been resumed
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return true or false
		  */
 		function f_mtc_userCheckCallResumed(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}
 		/**
		  * @desc Check that UE by p_ueRef given reports that call has ended
		  * @param p_userCompRef Reference to IMS UE user component
		  * @return true or false
		  */
 		function f_mtc_userCheckCallEnded(EquipmentUser p_ueRef) 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}


			
 		/**
		  * @desc Start capturing and monitoring traffic on all configured interfaces
		  * @return true or false
		  */
 		function f_mtc_StartAllTrafficCapture() 
            runs on TestCoordinator return boolean {
     		var boolean v_status := true; 
     		// TODO
 			return v_status;
     		}


 		
 		/**
+57 −29
Original line number Diff line number Diff line
@@ -436,14 +436,26 @@ module AtsImsIot_TestCases {
		
		
		// test body
		f_mtc_userInitiateCall (v_ueA, v_userInfoB);
		f_mtc_check_TP_IMS_5097_01_gm(v_gmA); // Check1	(at step 4)	
		f_mtc_userTriggerInitiateCall (v_ueA, v_userInfoB);
		f_mtc_check_TP_IMS_5097_01_gm(v_gmA); // Check1		
		f_mtc_check_TP_IMS_5097_01_mw(v_mw); // Check1 

		f_mtc_check_TP_IMS_5107_02_gm(v_mw); // Check2 (at step 28)
		f_mtc_userCheckRinging(v_ueB);
		f_mtc_userCheckPeerIsRinging(v_ueA);
		f_mtc_userTriggerAnswerCall(v_ueB);
		f_mtc_userCheckCallEstablished(v_ueA);
		f_mtc_userCheckCallEstablished(v_ueB);


		f_mtc_check_TP_IMS_5107_02_gm(v_mw); // Check2 
		f_mtc_check_TP_IMS_5107_02_mw(v_mw); // Check2 


		// TODO checks 3 to 7		
		f_mtc_triggerEndCall(v_ueA);
		f_mtc_userCheckCallEnded(v_ueB );
		f_mtc_userCheckCallEnded(v_ueA);
		
		
		// postamble
		f_PO_user_home_deregistration(v_ueA);
@@ -482,32 +494,34 @@ module AtsImsIot_TestCases {
		f_mtc_userTriggerRegistration(v_ueB, v_userInfoB); 
				
		// test body
//	    f_mtc_StartAllTrafficCapture();		
		f_mtc_userInitiateCall (v_ueA, v_userInfoB);
	    f_mtc_StartAllTrafficCapture();		
		f_mtc_userTriggerInitiateCall (v_ueA, v_userInfoB);

//		f_mtc_userCheckRinging(v_ueB, ???);
//		f_mtc_userCheckRinging(v_ueA, ???));
//		f_mtc_userTriggerAnswer(v_ueB, ???);
//		f_mtc_userCheckCallEstablished(v_ueA, ???);
//		f_mtc_userCheckCallEstablished(v_ueB, ???));
		f_mtc_userCheckRinging(v_ueB);
		f_mtc_userCheckPeerIsRinging(v_ueA);
		f_mtc_userTriggerAnswerCall(v_ueB);
		f_mtc_userCheckCallEstablished(v_ueA);
		f_mtc_userCheckCallEstablished(v_ueB);

//		f_mtc_userTriggerHold(v_ueB, ???);
		f_mtc_userTriggerHold(v_ueB);
		// TODO Check1 has been removed from test description on 31.07.2009
		f_mtc_check_TP_IMS_5310_01_mw(v_mw); // Check1 
		f_mtc_check_TP_IMS_5310_01_isc(v_iscB); // Check1 
		
		//		f_mtc_userCheckUserOnHold(v_ueA, ???));
		//		f_mtc_userCheckUserOnHold(v_ueB, ???));
		//		f_mtc_userTriggerResume(v_ueB, ???);
		//		f_mtc_userCheckCallResumed(v_ueA, ???));
		f_mtc_userCheckUserOnHold(v_ueA);
		f_mtc_userCheckUserOnHold(v_ueB);
		f_mtc_userTriggerResume(v_ueB);
		f_mtc_userCheckCallResumed(v_ueA);

		// TODO Check2 has been removed from test description on 31.07.2009

		f_mtc_check_TP_IMS_5312_01_mw(v_mw); // Check2 
		f_mtc_check_TP_IMS_5312_01_isc(v_iscB); // Check2 
   		// Check3 is not correctly described

		//		f_mtc_userCheckCallResumed(v_ueB, ???));
		//		f_mtc_triggerEndCall(v_ueA, ???));
		//		f_mtc_userCheckCallEnded(v_ueB, ???));
		//		f_mtc_userCheckCallEnded(v_ueA, ???));
		f_mtc_userCheckCallResumed(v_ueB);
		f_mtc_triggerEndCall(v_ueA);
		f_mtc_userCheckCallEnded(v_ueB );
		f_mtc_userCheckCallEnded(v_ueA);

		// postamble
		f_PO_user_home_deregistration(v_ueA);
@@ -549,20 +563,34 @@ module AtsImsIot_TestCases {
		f_mtc_userTriggerRegistration(v_ueB2, v_userInfoB2); 
		
		// test body
		f_mtc_userInitiateCall (v_ueA, v_userInfoB);
		f_mtc_check_TP_IMS_5046_01_gm(v_gmA);		
		f_mtc_userTriggerInitiateCall (v_ueA, v_userInfoB);

        // TODO Check1 removed from the test description on 31.07.2009
		f_mtc_check_TP_IMS_5046_01_mw(v_mw); // Check1 
		// Check2 TP_IMS_5067_01 ? is already covered in TP_IMS_5046_01
		f_mtc_check_TP_IMS_5046_01_mw (v_iscB);
		f_mtc_check_TP_IMS_5046_01_mw (v_iscB); // Check1 

		f_mtc_check_TP_IMS_5097_09_isc(v_iscB); // Check5 on AS (step 6? in the message sequence) 
        // TODO Check4 removed from the test description on 31.07.2009        
		f_mtc_check_TP_IMS_5110_01_isc(v_iscB); // Check4 
		f_mtc_check_TP_IMS_5110_01_mw(v_mw); // Check4 

		f_mtc_check_TP_IMS_5110_01_isc(v_iscB); // Check4 on AS (step 19 in the message sequence) 
		f_mtc_check_TP_IMS_5110_01_mw(v_mw); // Check4 on MW (step 20 in the message sequence)
		f_mtc_check_TP_IMS_5097_09_isc(v_iscB); // Check5 
		
		// TODO checks 6, 7

		
		f_mtc_userCheckRinging(v_ueB);
		f_mtc_userCheckPeerIsRinging(v_ueA);
		f_mtc_userTriggerAnswerCall(v_ueB2);
		f_mtc_userCheckCallEstablished(v_ueA);
		f_mtc_userCheckCallEstablished(v_ueB2);

		
		
		f_mtc_triggerEndCall(v_ueA);
		f_mtc_userCheckCallEnded(v_ueB );
		f_mtc_userCheckCallEnded(v_ueA);
		
		
		// postamble
		f_PO_user_home_deregistration(v_ueA);
		f_PO_user_home_deregistration(v_ueB);
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ module AtsImsIot_TestConfiguration {
    	function f_cf_int_call(
    		inout ImsInterfaceMonitor p_GmA, 
    		inout ImsInterfaceMonitor p_Mw,
    		inout template ImsInterfaceMonitor p_GmB,
    		inout ImsInterfaceMonitor p_GmB,
    		in boolean p_useGmB 
    	) runs on ImsTestCoordinator {
    		p_GmA := f_cf_create_monitor(c_gm_A);