Commit c8cfb061 authored by pintar's avatar pintar
Browse files

Test cases TC_IMS_SHARE_0001-TC_IMS_SHARE_0004 are done

parent 08f10de0
Loading
Loading
Loading
Loading
+96 −0
Original line number Diff line number Diff line
@@ -3542,6 +3542,102 @@ group checksTC_IMS_CHAT_0014 {
        
	}//end group checksTC_IMS_CHAT_0014

group checksTC_IMS_SHARE_0001 {

         /**
          * @desc Starts monitor component behavior 
          * @param p_monitorCompRef Reference to monitor component
          */
         function f_mtc_check_TP_IMS_CONTENT_SHARE_01_gm(
             ImsInterfaceMonitor p_monitorCompRef,
             boolean p_checkMessage
         ) runs on ImsTestCoordinator {
        		   	    		
            p_monitorCompRef.start(
             f_imsIot_receive(
                 {mw_SipRequest(mw_OPTIONS_Request_Base(?))},
                 {},
                 {0, omit},
                 "TP_IMS_CONTENT_SHARE_01",
                 false,
                 p_checkMessage
             )
            );
            p_monitorCompRef.done;
         }
        
        
         /**
          * @desc Starts monitor component behavior
          * @param p_monitorCompRef Reference to monitor component
          */
         function f_mtc_check_TP_IMS_CONTENT_SHARE_01_ic(
             ImsInterfaceMonitor p_monitorCompRef,
             boolean p_checkMessage
         ) runs on ImsTestCoordinator  {	
         var charstring v_EUT_A_Addr := f_GetEUTScscfAddress(PX_EUT_A);
        	    
         p_monitorCompRef.start(
          f_imsIot_receive(
             {mw_SipRequest(mdw_TP_IMS_CONTENT_SHARE_01_ic(?))},
             {},
             {0, omit},
             "TP_IMS_CONTENT_SHARE_01",
             false,
             p_checkMessage
          )
         );
         p_monitorCompRef.done;
        } //function*/

         /**
          * @desc Starts monitor component behavior 
          * @param p_monitorCompRef Reference to monitor component
          */
         function f_mtc_check_TP_IMS_CONTENT_SHARE_02_gm(
             ImsInterfaceMonitor p_monitorCompRef,
             boolean p_checkMessage
         ) runs on ImsTestCoordinator {
        		   	    		
            p_monitorCompRef.start(
             f_imsIot_receive(
                 {mw_SipRequest(mw_INVITE_Request_Base)},
                 {},
                 {0, omit},
                 "TP_IMS_CONTENT_SHARE_02",
                 false,
                 p_checkMessage
             )
            );
            p_monitorCompRef.done;
         }
        
        
         /**
          * @desc Starts monitor component behavior
          * @param p_monitorCompRef Reference to monitor component
          */
         function f_mtc_check_TP_IMS_CONTENT_SHARE_02_ic(
             ImsInterfaceMonitor p_monitorCompRef,
             boolean p_checkMessage
         ) runs on ImsTestCoordinator  {	
         var charstring v_EUT_A_Addr := f_GetEUTScscfAddress(PX_EUT_A);
        	    
         p_monitorCompRef.start(
          f_imsIot_receive(
             {mw_SipRequest(mdw_TP_IMS_CONTENT_SHARE_02_ic)},
             {},
             {0, omit},
             "TP_IMS_CONTENT_SHARE_02",
             false,
             p_checkMessage
          )
         );
         p_monitorCompRef.done;
        } //function*/
        
	}//end group checksTC_IMS_SHARE_0001

	group messagingChecks {
		/**
		 * @desc Starts monitor component behavior for TP_IMS_5097_05
+127 −0
Original line number Diff line number Diff line
@@ -178,6 +178,31 @@ module AtsImsIot_Functions {
			return v_status;
     		}

        /**
          * @desc Trigger UE given by p_ueRef to initiate an MO call 
          * @param p_ueRef 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_userSetupVoiceCall(EquipmentUser p_ueRefA, EquipmentUser p_ueRefB, ImsUserInfo p_calledPartyB) 
            runs on TestCoordinator return boolean {
                var boolean v_success := false;
                f_mtc_userInitiateCall (p_ueRefA, p_calledPartyB);
                f_mtc_userCheckRinging(p_ueRefB);
                f_mtc_userCheckPeerIsRinging(p_ueRefA);
                f_mtc_userAnswerCall(p_ueRefB);
                f_mtc_userCheckCallEstablished(p_ueRefA);
                f_mtc_userCheckCallEstablished(p_ueRefB);
                
                if(f_getE2EVerdict() == pass) {
                    v_success := true;	
                }
                return v_success;
                
            }
     		
		/**
		* 
		* @desc Starts user component behaviour for checking that the User 
@@ -1359,6 +1384,108 @@ module AtsImsIot_Functions {
            return v_status;
        }

        /**
          * @desc Trigger UE given by p_ueRef to initiate sharing content 
          * @param p_ueRef 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_userInitiateShare(EquipmentUser p_ueRef, ImsUserInfo p_calledParty) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            //if( p_calledParty.publicId  == "dummy" ) { return true; }       		
            //v_status := f_mtc_userInitiateCallSuccessful(p_ueRef); 
            return v_status;
        }

        /**
           * @desc Trigger UE given by p_ueRef to check partner sharing capabilities  
           * @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_userCheckPartnerSharingCapabilities(EquipmentUser p_userCompRef) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            return v_status;
        }

        /**
           * @desc Trigger UE given by p_ueRef to request acceptance of sharing content  
           * @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_userRequestedToAcceptSharing(EquipmentUser p_userCompRef) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            return v_status;
        }

        /**
           * @desc Trigger UE given by p_ueRef to accept sharing content  
           * @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_userAcceptsSharing(EquipmentUser p_userCompRef) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            return v_status;
        }

        /**
           * @desc Trigger UE given by p_ueRef to check that user is informed that 
           * 		request has been answered  
           * @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_userCheckSharingRequestAnswered(EquipmentUser p_userCompRef) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            return v_status;
        }

        /**
           * @desc Trigger UE given by p_ueRef to ends sharing content  
           * @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_EndSharing(EquipmentUser p_userCompRef) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            return v_status;
        }

        /**
           * @desc Trigger UE given by p_ueRef to check if content sharing ends  
           * @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_userCheckSharingEnded(EquipmentUser p_userCompRef) 
            runs on TestCoordinator return boolean {
            var boolean v_status := true; 
            // TODO
            return v_status;
        }


		/**
			* @desc Trigger IMS Network to deregister UE given by p_ueRef
+58 −1
Original line number Diff line number Diff line
@@ -1902,7 +1902,7 @@ module AtsImsIot_Templates {
	}
	
	/**
	  * @desc VYE Request checking TP_IMS_5074_01
	  * @desc BYE Request checking TP_IMS_5074_01
	  */
	template BYE_Request mdw_TP_IMS_5074_01_ic(
		template CallId p_callId,
@@ -1973,6 +1973,31 @@ module AtsImsIot_Templates {
        }
    }
	
		
    /**
      * @desc OPTIONS Request checking TP_IMS_CONTENT_SHARE_01
      */
    template OPTIONS_Request mdw_TP_IMS_CONTENT_SHARE_01_ic(
        template CallId p_callId
    ) modifies mw_OPTIONS_Request_Base := {
      msgHeader := {        
        acceptContact := mw_AcceptContact_share,
        contact := mw_Contact_share
      }
    }
	
		
    /**
      * @desc INVITE Request checking TP_IMS_CONTENT_SHARE_02
      */
    template INVITE_Request mdw_TP_IMS_CONTENT_SHARE_02_ic
     modifies mw_INVITE_Request_Base := {
      msgHeader := {        
        acceptContact := mw_AcceptContact_share,
        contact := mw_Contact_share
      }
    }

  	}//end group
	group HeaderTemplates {
		
@@ -2061,6 +2086,38 @@ module AtsImsIot_Templates {
        }
      } // template
      
      template AcceptContact mw_AcceptContact_share := {
          fieldName := ACCEPT_CONTACT_E,
          acValues := {
            {
              wildcard := "*",
              acRcParams := {
                {
                  id := "Video Sharing Feature Tag",
                  paramValue := "+g.3gpp.cs-voice"
                }
              }
            }
          }
      }
        
      template Contact mw_Contact_share := {
          fieldName := CONTACT_E,
          contactBody := {
            contactAddresses := {
              {
                addressField := ?,
                contactParams := {
                  {
                    id := "Video Sharing Feature Tag",
                    paramValue := "+g.3gpp.cs-voice"
                  }
                }
              }
            }
          }
      }
  
  
	} // end group HeaderTemplates

+278 −12

File changed.

Preview size limit exceeded, changes collapsed.