Commit f0753029 authored by wattelet's avatar wattelet
Browse files

EPC TCs updated

parent 0d384111
Loading
Loading
Loading
Loading
+98 −74
Original line number Diff line number Diff line
@@ -5,51 +5,23 @@
 */
module AtsImsIot_Behavior {
	
	import from AtsImsIot_TestSystem {
		type ImsInterfaceMonitor, ImsTestCoordinator;
	}

	import from AtsImsIot_TestSystem { type ImsInterfaceMonitor, ImsTestCoordinator; }
	import from LibIot_PIXITS {modulepar PX_MAX_MSG_WAIT;}

	import from AtsImsIot_Templates {template all;}

	import from AtsImsIot_TypesAndValues {
		type SipMessage, SipMessageList, NAPTRmessage, EnumResponse, EnumQuery, SkipType;
	}
	
	import from LibIot_TestInterface {
		type EquipmentUser
	};
	
	import from AtsImsIot_TypesAndValues { type SipMessage, SipMessageList, NAPTRmessage, EnumResponse, EnumQuery, SkipType; }
	import from LibIot_TestInterface { type EquipmentUser, IotEquipmentUser };
	import from LibIms_UpperTester {type ImsUserInfo;}

	import from LibIot_TypesAndValues {type SetFilterReq, SetFilterRsp;}
	import from LibIot_Functions {
		function f_setConformanceVerdict, f_setIotVerdictFAIL;
	}

	import from LibIot_Functions { function f_setConformanceVerdict, f_setIotVerdictFAIL; }
	import from LibSip_SIPTypesAndValues all;
	
	import from LibSip_Templates all;
	
	
	import from AtsImsIot_Functions all;
	import from LibIot_PIXITS {modulepar PX_EUT_A, PX_EUT_B;}
	
	// LibSip
	import from LibSip_SDPTypes {
	    type SDP_media_desc_list
	};
	
	import from LibSip_SDPTypes { type SDP_media_desc_list };
	// LibMsrp
	import from LibMsrp_TypesAndValues {
	    type 
            MsrpURI
	};
	import from LibMsrp_Functions {
	    function 
            f_str2msrpUri
	};
	import from LibMsrp_TypesAndValues { type MsrpURI };
	import from LibMsrp_Functions { function f_str2msrpUri };
    import from LibMsrp_Templates { 
        template 
            m_msrpSend_Dummy, mw_msrpSEND_toPath_fromPath_contentType, 
@@ -59,6 +31,8 @@ module AtsImsIot_Behavior {
            m_msrpURIs_ToPath_Dummy, m_msrpURIs_FromPath_Dummy, 
            mw_contentType 
    };
	// LibDiameter
	import from LibDiameter_Templates all;
		
group checks {

@@ -4721,7 +4695,7 @@ group checksTC_IMS_SHARE_0009 {
        ) runs on ImsTestCoordinator {
		   	    		
           p_monitorCompRef.start(
            f_imsIot_receive(
           f_receiveDiameterMsg (
                {mw_SipRequest(mw_PUBLISH_Request_Base(?))},
                {},
                {0,omit},
@@ -4818,7 +4792,7 @@ group checksTC_IMS_SHARE_0009 {
           p_monitorCompRef.done;
        }
        
        function f_mtc_check_subscribe_mx(
        function f_mtc_check_subscribe(
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
		   	    		
@@ -4827,7 +4801,7 @@ group checksTC_IMS_SHARE_0009 {
                {mw_SipRequest(mw_SUBSCRIBE_Request_Base)},
                {},
                {0,omit},
                "f_mtc_check_subscribe_mx",
                "f_mtc_check_subscribe",
                false,
                false
            )
@@ -5411,7 +5385,10 @@ group checksTC_IMS_SHARE_0009 {
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveIpMsg ( p_checkMessage , "TP_EPC_6003_02" )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6003_02

        /**
@@ -5447,10 +5424,10 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.1.2
         */
        function f_mtc_check_TP_EPC_6004_01(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        	IotEquipmentUser p_ue
        ) runs on ImsTestCoordinator {
            // TODO 
            f_mtc_triggerUserCommand ( p_ue, "start complete network detachment");
            f_mtc_userRadioEnabled ( p_ue, false, true );
        } // End of function f_mtc_check_TP_EPC_6004_01

        /**
@@ -5486,10 +5463,12 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.1.2
         */
        function f_mtc_check_TP_EPC_6005_01(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
				f_receiveDiameterMsg ( mw_ASR_dummy , "TP_EPC_6005_01", true )
            );
			p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6005_01
        
        /**
@@ -5512,10 +5491,12 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.1.2
         */
        function f_mtc_check_TP_EPC_6005_02(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_ASR_dummy , "TP_EPC_6005_02", true )
            );
			p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6005_02
        
        /**
@@ -5543,10 +5524,20 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.1.2
         */
        function f_mtc_check_TP_EPC_6006_01(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_ASA_dummy , "TP_EPC_6006_01", true )
            );
            p_monitorCompRef.done;
            p_monitorCompRef.start (
            	f_receiveDiameterMsg ( mw_STR_dummy , "TP_EPC_6006_01", true )
            );
			p_monitorCompRef.done;
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_STA_dummy , "TP_EPC_6009_01", true )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6006_01
        
        /**
@@ -5574,10 +5565,16 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.1.2
         */
        function f_mtc_check_TP_EPC_6006_02(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_ASA_dummy , "TP_EPC_6006_02", true )
            );
            p_monitorCompRef.done;
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_STR_dummy , "TP_EPC_6006_02", true )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6006_02
        
        /**
@@ -5601,10 +5598,12 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.1.2
         */
        function f_mtc_check_TP_EPC_6009_01(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_STA_dummy , "TP_EPC_6009_01", true )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6009_01
        
        /**
@@ -5713,7 +5712,13 @@ group checksTC_IMS_SHARE_0009 {
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_imsIot_receive(
                    { mw_SipRequest( mw_REGISTER_Request_Base ) }, { }, { 0, omit },
                    "TP_EPC_6011_01", false, p_checkMessage
                )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6011_01
        
        /**
@@ -5737,7 +5742,13 @@ group checksTC_IMS_SHARE_0009 {
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
				f_imsIot_receive (
					{ mw_SipResponse ( mw_200OK_Base ) }, { }, { 0, omit },
					"TP_EPC_6012_01", true, p_checkMessage
                )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6012_01

         /**
@@ -5786,10 +5797,12 @@ group checksTC_IMS_SHARE_0009 {
         * @see TS 103 029 V3.1.1 clause 7.2.1.1
         */
        function f_mtc_check_TP_EPC_6013_01(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_AAR_dummy , "TP_EPC_6013_01", true )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6013_01

        /**
@@ -5802,7 +5815,10 @@ group checksTC_IMS_SHARE_0009 {
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_AAA_dummy , "TP_EPC_6014_01", true )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6014_01

        /**
@@ -5812,10 +5828,11 @@ group checksTC_IMS_SHARE_0009 {
         * The check operation allows read access to the top element of incoming port queues without removing the top element from the queue.
         */
        function f_mtc_check_TP_EPC_6015_01(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef_A,
            ImsInterfaceMonitor p_monitorCompRef_B
        ) runs on ImsTestCoordinator {
            // TODO 
            f_mtc_check_subscribe ( p_monitorCompRef_A );
            f_mtc_check_subscribe ( p_monitorCompRef_B );
        } // End of function f_mtc_check_TP_EPC_6015_01

         /**
@@ -5825,10 +5842,15 @@ group checksTC_IMS_SHARE_0009 {
         * The check operation allows read access to the top element of incoming port queues without removing the top element from the queue.
         */
        function f_mtc_check_TP_EPC_6016_01 (
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
            	f_imsIot_receive (
                	{ mw_SipResponse ( mdw_4XX_Base ) }, { }, { 0, omit },
                	"TP_EPC_6016_01", false, false
             	)
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6016_01

         /**
@@ -5838,10 +5860,12 @@ group checksTC_IMS_SHARE_0009 {
         * The check operation allows read access to the top element of incoming port queues without removing the top element from the queue.
         */
        function f_mtc_check_TP_EPC_6016_02(
            ImsInterfaceMonitor p_monitorCompRef,
            boolean p_checkMessage
            ImsInterfaceMonitor p_monitorCompRef
        ) runs on ImsTestCoordinator {
            // TODO 
            p_monitorCompRef.start (
                f_receiveDiameterMsg ( mw_AAA_dummy , "TP_EPC_6016_02" , false )
            );
            p_monitorCompRef.done;
        } // End of function f_mtc_check_TP_EPC_6016_02
        
        /**
+98 −2
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ module AtsImsIot_Functions {
	import from LibIot_TestInterface { type InterfaceMonitor, TestCoordinator, EquipmentUser; }
 	import from LibIot_Functions { function f_getE2EVerdict; }
	import from LibIot_TypesAndValues { type DefaultList; }
    import from DIAMETER_Types {type Diameter_Msg;}
 	
 	group ue {
 		
@@ -2476,7 +2477,22 @@ module AtsImsIot_Functions {
             */
            function f_mtc_userRadioEnabled(EquipmentUser p_ueRef, boolean p_enableRadio, boolean p_synchronousMode) 
            runs on TestCoordinator return boolean {
                // TODO
                if ( p_enableRadio ) {
	                if ( p_synchronousMode ) {
			            f_mtc_triggerUserCommand ( p_ueRef, "start complete network attachment and return when done.");
                    }
                    else {
			            f_mtc_triggerUserCommand ( p_ueRef, "start complete network attachment, return immediately.");
                    }        
                }
                else {
	                if ( p_synchronousMode ) {
	                    f_mtc_triggerUserCommand ( p_ueRef, "start complete network detachment and return when done.");
    	            }
        	        else {
            	        f_mtc_triggerUserCommand ( p_ueRef, "start complete network detachment, return immediately.");
                	}        
                }
                return false;
            } // End of function f_mtc_userRadioEnabled
            
@@ -2563,6 +2579,86 @@ module AtsImsIot_Functions {
        }	
 	}

 	group diameterComponent {
 		/**
		* @desc
		*     This function waits for a given Diameter message.
		* @param p_monitor Reference of Diameter component
		* @param p_msg The Diameter message
		* @param p_log The Log message
		*/
	 	function f_receiveDiameterMsg (	InterfaceMonitor p_monitor, in template (present) Diameter_Msg p_diameter,
	 									in charstring p_log, in boolean p_bool )
	 	runs on ImsInterfaceMonitor {
            timer	t_local	:= PX_MAX_MSG_WAIT;
            var boolean	v_loop	:= true;
			log ( "### " & p_log );
            t_local.start;
            while ( v_loop ) {            
	            alt {
                    []	rxPort.receive ( p_diameter ) {
							t_local.stop;
							if ( p_bool ) {
								setverdict ( pass, self, "*** f_receiveDiameterMsg: expected Diameter message received***");
								break;
							}
							else {
            	   				setverdict ( fail, self, "*** f_receiveDiameterMsg: Diameter message received but not expected***");    
								break;
							}
            		}
             		[]	t_local.timeout {
						if ( p_bool ) {
            	   			setverdict ( fail, self, "*** f_receiveDiameterMsg: expected Diameter message not received***");    
							break;
						}
						else {
							setverdict ( pass, self, "*** f_receiveDiameterMsg: Diameter message not received as expected***");
							break;
						}
            		}
 		           	[]	rxPort.receive {
            	   		t_local.start;
            		}
                }
           	}
        }	
 	}

 	group sgiComponent {
 		/**
		* @desc
		*     This function waits for a given Sgi message.
		* @param p_bool True message expected, False message not expected
		* @param p_log The Log message
		*/
	 	function f_receiveIpMsg ( boolean p_bool, in charstring p_log )
	 	runs on ImsInterfaceMonitor {
            timer	t_local	:= PX_MAX_MSG_WAIT;
			log ( "### " & p_log );
            t_local.start;
			alt {
				[]	sgiPort.receive {
					t_local.stop;
					if ( p_bool ) {
						setverdict ( pass, self, "*** f_receiveIpMsg: expected Sgi message received ***");
					}
					else {
						setverdict ( fail, self, "*** f_receiveIpMsg: expected Sgi message not received ***");    
					}
				}
				[]	t_local.timeout {
					if ( p_bool ) {
						setverdict ( fail, self, "*** f_receiveIpMsg: Sgi message not received but expected ***");    
					}
					else {
						setverdict ( pass, self, "*** f_receiveIpMsg: Sgi message not received as expected ***");
					}
				}
           	}
        }	
 	}
 
 	group interComponent {
 		/**
		* @desc
+65 −15

File changed.

Preview size limit exceeded, changes collapsed.

+9 −9
Original line number Diff line number Diff line
@@ -270,7 +270,7 @@ module AtsImsIot_TestCases_RCS {
        f_mtc_userSubscribeToPresenceInformation ( v_ueA );
        // check - SUBSCRIBE (from User A to AS B)
        f_mtc_check_TP_IMS_5108_07_gm ( v_config.gmA, false );
        f_mtc_check_subscribe_mx ( v_config.mxB );
        f_mtc_check_subscribe ( v_config.mxB );
        f_mtc_check_TP_IMS_5108_07_isc ( v_config.iscB, false );
         
        // check - 200 OK
@@ -337,8 +337,8 @@ module AtsImsIot_TestCases_RCS {
        
        //check 1 - SUBSCRIBE
        f_mtc_check_TP_IMS_5108_07_gm(v_gmA, false); // Check1
        f_mtc_check_subscribe_mx(v_mxA);
        f_mtc_check_subscribe_mx(v_mxB);
        f_mtc_check_subscribe(v_mxA);
        f_mtc_check_subscribe(v_mxB);
        f_mtc_check_TP_IMS_5108_07_isc(v_iscB,false); // Check1 
        
        //check 2 - 200 OK
@@ -405,8 +405,8 @@ module AtsImsIot_TestCases_RCS {
        
        //check 1 - SUBSCRIBE
        f_mtc_check_TP_IMS_5108_07_gm(v_gmA, false); // Check1
        f_mtc_check_subscribe_mx(v_mxA);
        f_mtc_check_subscribe_mx(v_mxB);
        f_mtc_check_subscribe(v_mxA);
        f_mtc_check_subscribe(v_mxB);
        f_mtc_check_TP_IMS_5108_07_isc(v_iscB,false); // Check1
        
        f_mtc_userCheckNoPresenceInformation(v_ueA);//Test Sequence Step 2  
@@ -472,8 +472,8 @@ module AtsImsIot_TestCases_RCS {
        
        //check 2 - SUBSCRIBE
        f_mtc_check_TP_IMS_5108_07_gm(v_gmA, false); // Check2
        f_mtc_check_subscribe_mx(v_mxA);
        f_mtc_check_subscribe_mx(v_mxB);
        f_mtc_check_subscribe(v_mxA);
        f_mtc_check_subscribe(v_mxB);
        f_mtc_check_TP_IMS_5108_07_isc(v_iscB,false); // Check2 
        
        //check 3 - 200 OK
@@ -535,8 +535,8 @@ module AtsImsIot_TestCases_RCS {
        
        //check 1 - SUBSCRIBE
        f_mtc_check_TP_IMS_5108_07_gm(v_gmA, false); // Check1
        f_mtc_check_subscribe_mx(v_mxA);
        f_mtc_check_subscribe_mx(v_mxB);
        f_mtc_check_subscribe(v_mxA);
        f_mtc_check_subscribe(v_mxB);
        f_mtc_check_TP_IMS_5108_07_isc(v_iscB,false); // Check1 
        
        //check 2 - 200 OK
+4 −4
Original line number Diff line number Diff line
@@ -86,10 +86,10 @@ module AtsImsIot_TestCases_REG {
		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);
        f_mtc_check_subscribe(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_subscribe(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 
@@ -156,10 +156,10 @@ module AtsImsIot_TestCases_REG {
        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);
        f_mtc_check_subscribe(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_subscribe(v_mxB);
		

        f_mtc_check_response_mx(v_mxB, c_statusLine200);
Loading