Commit 0f98767a authored by ulrichst's avatar ulrichst
Browse files

completion of f_TC_S1AP_eNB_RAB_08

parent 7c3514e2
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -149,6 +149,16 @@ module LibS1AP_Steps {
            f_recv_S1AP_successfulOutcome(mw_E_RABSetupResponse(p_value))
        } // End of f_recv_E_RABSetupResponse

		/**
		 * @desc Receive S1AP Message E_RABModifiedResponse
		 * @param p_value Receive template for E_RABModifiedResponse IEs
		 */
		function f_recv_E_RABModifiedResponse(
										   template (present) RecordOf_ProtocolIE p_value := ?
		) runs on S1APComponent {
			f_recv_S1AP_successfulOutcome(mw_E_RABModifiedResponse(p_value))
		} // End of f_recv_E_RABModifiedResponse
        
        /**
         * @desc Receive S1AP Message InitialContext_SetupResponse
         * @param p_value Receive template for InitialContext_SetupResponse IEs
@@ -719,6 +729,15 @@ module LibS1AP_Steps {
            f_send_S1AP_initiatingMessage(m_E_RABSetupRequest(p_value))
        } // End of function f_send_E_RABSetupRequest
        
		/**
		 * @desc Send S1AP Message E-RAB_ModifiedRequest
		 * @param p_value Send template with IE for E-RAB_ModifiedRequest
		 */
		function f_send_E_RABModifiedRequest(in template (value) RecordOf_ProtocolIE p_value
		) runs on S1APComponent {
			f_send_S1AP_initiatingMessage(m_E_RABModifiedRequest(p_value))
		} // End of function f_send_E_RABSetupRequest
        
		/**
		 * @desc Send S1AP Message InitialContext_SetupRequest
		 * @param p_value Send template with IE for InitialContext_SetupRequest
+108 −1
Original line number Diff line number Diff line
@@ -100,6 +100,31 @@ module LibS1AP_Templates {
                    
                }// End of group ERABSetup

				group ERABModify {
					
					/**
					 * @desc Send template for InitiatingMessage message with E-RABModify payload
					 * @param p_value           The procedure code value
					 */
					template (value) InitiatingMessage m_E_RABModifiedRequest(
																		   in template (value) RecordOf_ProtocolIE p_value) := {
						procedureCode := id_E_RABSetup,
						criticality := reject,
						value_ := {RecordOf_ProtocolIE := valueof(p_value)}
					} // End of template m_E_RABModifiedRequest		

					template (value) RecordOf_ProtocolIE m_E_RABModifiedReqIEs(
								in template (value) MME_UE_S1AP_ID p_MME_value,
								in template (value) ENB_UE_S1AP_ID p_eNB_value,
								in template (value) RecordOf_E_RABToBeModifiedItemBearerModReq p_RecordOf_E_RABToBeModifiedItem_value
					) := {
						m_MME_UE_S1AP_ID(p_MME_value),
						m_eNB_UE_S1AP_ID(p_eNB_value),
						m_E_RABToBeModifiedList(p_RecordOf_E_RABToBeModifiedItem_value)
					} // End of template m_E_RABSetupReqIEs
							
				}

                /**
                 * @desc Send messages for Context Management procedures
                 */
@@ -475,6 +500,35 @@ module LibS1AP_Templates {
                    
                }// End of group HandoverResourceAllocation
                
                
                group ERABModify{

					/**
					 * @desc Receive template for SuccessfulOutcome/R-RAB_Setup message
					 * @param p_procedureCode   Expected procedure code. Default: ?
					 * @param p_value           Expected procedure code. Default: ?
					 */
					template (present) SuccessfulOutcome mw_E_RABModifiedResponse(
																			   template (present) RecordOf_ProtocolIE p_value := ?
					) := {
						procedureCode := id_E_RABModify,
						criticality := reject,
						value_ := {RecordOf_ProtocolIE := p_value}
					} // End of template mw_E_RABResponse
                    
					template (present) RecordOf_ProtocolIE mw_E_RABModifiedResIEs(
																			   template (present) MME_UE_S1AP_ID p_MME_value := ?,
																			   template (present) ENB_UE_S1AP_ID p_eNB_value := ?,
																			   template (present) RecordOf_E_RABModifyItemBearerModRes p_RecordOf_E_RABModifyItem_value := ?
					) := { 
						mw_MME_UE_S1AP_ID(p_MME_value, ignore),
						mw_eNB_UE_S1AP_ID(p_eNB_value, ignore),
						mw_E_RABModifiedList(p_RecordOf_E_RABModifyItem_value)
					} // End of template mw_E_RABSetupResIEs
                   				
					                
                }
                
                group ERABSetup{
                    
                    /**
@@ -2284,6 +2338,20 @@ module LibS1AP_Templates {
                    value_ := { RecordOf_E_RABToBeSetupItemBearerSUReq := valueof(p_value) }
                } // End of template m_E_RABToBeSetupList
                
                /**
                 * @desc Send template for E-RABToBeModifiedItemBearerModReq protocol IE
                 * @param p_value  Protocol IE value. Default: m_E_RABToBeSetupItemBearerSUReq
                 */
                template (value) ProtocolIE m_E_RABToBeModifiedList(
                                                                 in template (value) RecordOf_E_RABToBeModifiedItemBearerModReq p_value := { m_E_RABToBeModifiedItemBearerSUReq }
                ) := {
                    id := S1AP_Constants.id_E_RABToBeModifiedItemBearerModReq,
                    criticality := reject,
                    value_ := { RecordOf_E_RABToBeModifiedItemBearerModReq := valueof(p_value) }
                } // End of template m_E_RABToBeSetupList
                
                
                
            } // End of group E_RAB_IEsend
            
            /**
@@ -2577,6 +2645,18 @@ module LibS1AP_Templates {
                value_ := { RecordOf_E_RABSetupItemBearerSURes := p_value }
            } // End of template 
 
			/**
			 * @desc Receive template for E-RABModifiedListBearerModReq protocol IE
			 * @param p_value  Expected protocol IE value. Default: m_E_RABToBeSetupItemBearerSUReq
			 */
			template (present) ProtocolIE mw_E_RABModifiedList(
															template (present) RecordOf_E_RABModifyItemBearerModRes p_value := { mw_E_RABModifyItemBearerModRes }
			) := {
				id := S1AP_Constants.id_E_RABModifyListBearerModRes,
				criticality := ignore,
				value_ := { RecordOf_E_RABModifyItemBearerModRes := p_value }
			} // End of template 
			           
            template (present) ProtocolIE mw_E_RABFailedToSetupList(
                                                                    template (present) RecordOf_E_RABItem p_value := { ? }
            ) := {
@@ -3180,6 +3260,21 @@ module LibS1AP_Templates {
                iE_Extensions := p_iE_Extensions
            } // End of template m_E_RABToBeSetupItemBearerSUReq

            /**
             * @desc 
             */
            template(value) E_RABToBeModifiedItemBearerModReq m_E_RABToBeModifiedItemBearerSUReq(
                                                                                          in E_RAB_ID p_e_RAB_ID := 0,
                                                                                          in template (value) E_RABLevelQoSParameters p_e_RABlevelQoSParameters := m_e_RABlevelQoSParameters,
                                                                                          in template (value) NAS_PDU p_nAS_PDU := '0000'O,
                                                                                          in template (value) E_RABToBeModifiedItemBearerModReq.iE_Extensions p_iE_Extensions := omit
            ) := {
                e_RAB_ID := p_e_RAB_ID,
				e_RABLevelQoSParameters := valueof(p_e_RABlevelQoSParameters),
                nAS_PDU := p_nAS_PDU,
                iE_Extensions := p_iE_Extensions
            } // End of template m_E_RABToBeSetupItemBearerSUReq
            
            /**
             * @desc 
             * @param p_qCI
@@ -3212,6 +3307,18 @@ module LibS1AP_Templates {
                 iE_Extensions                   := *
            } // End of template mw_E_RABSetupItemBearerSURes
            
			/**
			 * @desc 
			 * @param p_e_RAB_ID
			 * @param p_cause
			 */
			template (present) E_RABModifyItemBearerModRes mw_E_RABModifyItemBearerModRes(
																					  template(present) E_RAB_ID p_e_RAB_ID := ?
			) :=  {
				 e_RAB_ID                        := p_e_RAB_ID,
				 iE_Extensions                   := *
			} // End of template mw_E_RABSetupItemBearerSURes
            
            /**
             * @desc 
             */
+11 −0
Original line number Diff line number Diff line
@@ -23,11 +23,22 @@ module LibS1AP_TypesAndValues {
     */
    type record of E_RABToBeSetupItemBearerSUReq RecordOf_E_RABToBeSetupItemBearerSUReq;

    /**
     * @desc List of E-RABModifiedItemBearerSURes IEs
     */
    type record of E_RABToBeModifiedItemBearerModReq RecordOf_E_RABToBeModifiedItemBearerModReq;
    
    /**
     * @desc List of E-RABSetupItemBearerSURes IEs
     */
    type record of E_RABSetupItemBearerSURes RecordOf_E_RABSetupItemBearerSURes;
 
     /**
     * @desc List of E-RABModifyItemBearerModRes IEs
     */
    type record of E_RABModifyItemBearerModRes RecordOf_E_RABModifyItemBearerModRes;
 
    
    /**
     * @desc List of E-RAB IEs
     */
+139 −12
Original line number Diff line number Diff line
@@ -469,6 +469,133 @@ module S1AP_TCFunctions {
    
			} // End of function f_TC_S1AP_eNB_RAB_07     
			
			/**
			 * @desc Testcase function for TC_S1AP_eNB_RAB_08
			 */
			function f_TC_S1AP_eNB_RAB_08() runs on S1APComponent { 
				// Local variables
				const E_RAB_ID c_E_RAB_ID_A := 0;
				const NAS_PDU c_nAS_PDU := '0000'O;
				
				// Preamble
				f_S1AP_enb_init();
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
    
				f_send_E_RABModifiedRequest(m_E_RABModifiedReqIEs(
					vc_MME_UE_ID,
					vc_eNB_UE_ID,
					{m_E_RABToBeModifiedItemBearerSUReq(
						c_E_RAB_ID_A,
						m_e_RABlevelQoSParameters(5),
						c_nAS_PDU
					)}
				));
				
				f_recv_E_RABModifiedResponse(mw_E_RABModifiedResIEs(
					vc_MME_UE_ID,
					vc_eNB_UE_ID,
					{
						mw_E_RABModifyItemBearerModRes(c_E_RAB_ID_A)
					}
				));
				
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); 
    
				f_postamble_S1AP_eNB();
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
    
			} // End of function f_TC_S1AP_eNB_RAB_08          
       
			/**
			 * @desc Testcase function for TC_S1AP_eNB_RAB_09
			 */
			function f_TC_S1AP_eNB_RAB_09 () runs on S1APComponent { 
				// Local variables
				
				
				// Preamble
				f_S1AP_enb_init();
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
    
    			// TODO
			
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); 
    
				f_postamble_S1AP_eNB();
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
    
			} // End of function f_TC_S1AP_eNB_RAB_09 
			
			/**
			 * @desc Testcase function for TC_S1AP_eNB_RAB_10
			 */
			function f_TC_S1AP_eNB_RAB_10 () runs on S1APComponent { 
				// Local variables
				
				
				// Preamble
				f_S1AP_enb_init();
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
    
				// TODO
			
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); 
    
				f_postamble_S1AP_eNB();
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
    
			} // End of function f_TC_S1AP_eNB_RAB_10
			
			/**
			 * @desc Testcase function for TC_S1AP_eNB_RAB_11
			 */
			function f_TC_S1AP_eNB_RAB_11 () runs on S1APComponent { 
				// Local variables
				
				
				// Preamble
				f_S1AP_enb_init();
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
    
				// TODO
			
				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); 
    
				f_postamble_S1AP_eNB();
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); 
				log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
    
			} // End of function f_TC_S1AP_eNB_RAB_11
			
			/**
			 * @desc Testcase function for TC_S1AP_eNB_RAB_12
			 */
			function f_TC_S1AP_eNB_RAB_12  () runs on S1APComponent {
				// Local variables
				
				
				// Preamble
				f_S1AP_enb_init();
				f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
				log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");

				// TODO

				f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());

				f_postamble_S1AP_eNB();
				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
				log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");

			} // End of function f_TC_S1AP_eNB_RAB_12

        } // End of group ERAB_management_group
        
        /**