Commit 83f846a0 authored by garciay's avatar garciay
Browse files

Editorial review:

1) Add ETSI copyright
2) Rename Types -> TypesAndValues, PIXITS -> Pixits
3) Replace TAB by SPACES
4) Formatting
parent ff1aee0f
Loading
Loading
Loading
Loading

ttcn3/S1AP_Pics.ttcn

0 → 100644
+35 −0
Original line number Diff line number Diff line
/**
 *    @author   ETSI / STF519
 *    @version  $URL$
 *              $Id$
 *    @desc     This module provides the PICS used for the S1AP tests.
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI TS 136 413 / 3GPP TS 36.413 version 13.4.0 Release 13
 */
module S1AP_Pics {
    
    group PICS_A2 {
        /**
         * @desc Does eNB act as the IUT? 
         * @see  ETSI DTS_INT-00135-1 A.2/1 
         */
        modulepar boolean PICS_S1AP_eNB_IUT := false;
        
        /**
         * @desc Does MME act as the IUT? 
         * @see  ETSI DTS_INT-00135-1 A.2/2 
         */
        modulepar boolean PICS_S1AP_MME_IUT := false;
        
    } // End of group PICS_A2
    
    group PICS_A3 {
    } // End of group PICS_A3
    
    group PICS_A4 { 
    } // End of group PICS_A4
    
} // End of module S1AP_Pics 

ttcn3/S1AP_Pixits.ttcn

0 → 100644
+104 −0
Original line number Diff line number Diff line
/**
 *    @author   ETSI / STF519
 *    @version  $URL$
 *              $Id$
 *    @desc     This module provides the PIXIT used for the S1AP tests.
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI TS 136 413 / 3GPP TS 36.413 version 13.4.0 Release 13
 */
module S1AP_Pixits {
    
    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    
    // LibS1AP
    //import TODO...

    group S1AP_Port_and_addresses {
        
        group S1AP_TS_Port_and_addresses {
            
            /** @desc    
             * IP address of the test system
             */
            modulepar charstring PX_S1AP_MME_ETS_IPADDR := "1.1.1.10";
            
            /** @desc    
             * Port number of the test system
             */
            modulepar integer PX_S1AP_MME_ETS_PORT := 3868;
            
            /** @desc    
             * IP address of the test system
             */
            modulepar charstring PX_S1AP_MME_ETS_IPADDR2 := "1.1.1.11";
            
            /** @desc    
             * Port number of the test system
             */
            modulepar integer PX_S1AP_MME_ETS_PORT2 := 3868;
            
            /** @desc    
             * IP address of the test system
             */
            modulepar charstring PX_S1AP_ENB_ETS_IPADDR := "1.1.1.12";
            
            /** @desc    
             * Port number of the test system
             */
            modulepar integer PX_S1AP_ENB_ETS_PORT := 3868;
            
            /** @desc    
             * IP address of the test system
             */
            modulepar charstring PX_S1AP_ENB_ETS_IPADDR2 := "1.1.1.13";
            
            /** @desc    
             * Port number of the test system
             */
            modulepar integer PX_S1AP_ENB_ETS_PORT2 := 3868;

            
        } // End of group S1AP_TS_Port_and_addresses
        
        group S1AP_SUT_Port_and_addresses {
            
            /** @desc    
             * IP address of the system under test
             */
            modulepar charstring PX_S1AP_MME_SUT_IPADDR := "1.1.2.10";
            
            /** @desc   
             * Port number of the system under test
             */
            modulepar integer PX_S1AP_MME_SUT_PORT := 3868;
            
            /** @desc    
             * IP address of the system under test
             */
            modulepar charstring PX_S1AP_ENB_SUT_IPADDR := "1.1.2.11";
            
            /** @desc    
             * Port number of the system under test
             */
            modulepar integer PX_S1AP_ENB_SUT_PORT := 3868;
            
            
        } // End of group S1AP_SUT_Port_and_addresses{
        
    } // End of group S1AP_Port_and_addresses
    
    group S1AP_CommonData {
               
        /** 
        * @desc    integer for variant selection, 
        * @see ETSI 
        */
        modulepar integer PX_VA := 1;
        
    } // End of group S1AP_CommonData
    
} // End of module S1AP_Pixits
+90 −73
Original line number Diff line number Diff line
/**
 *  @author     STF 519
 *  @version    $Id: $
 *  @desc       This module provides ATS specific steps used by the test cases for S1AP tests.
 *    @author   ETSI / STF519
 *    @version  $URL:$
 *              $Id:$
 *    @desc     This module provides ATS specific steps used by the test cases for S1AP test.
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI TS 136 413 / 3GPP TS 36.413 version 13.4.0 Release 13
 */
module S1AP_Steps {

    //LibCommon
    import from LibCommon_DataStrings {type Bit1, Bit4, Bit5, Bit8;}//all;
    import from LibCommon_BasicTypesAndValues {type UInt8;type UInt32;};//LibCommon
    import from LibCommon_DataStrings all;
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_Sync all ;
    import from LibCommon_VerdictControl all ;

@@ -15,18 +21,18 @@
    //import from LibS1AP_TypesAndValues all;
    import from LibS1AP_Templates all;
    import from LibS1AP_Steps  all;
    import from LibS1AP_PIXITS all;
    import from LibS1AP_Pixits all;
    import from LibS1AP_Interface all;
    
    // Ats
    import from S1AP_PIXITS all;
    import from S1AP_Pixits all;
    import from S1AP_Templates all;
    import from S1AP_TestConfiguration all;
    import from S1AP_TestSystem all;
    
    group GlobalSteps {
        
        /*
        /**
         *  @desc    This is a test step that init global variables
         *  @param   
         */
@@ -44,10 +50,9 @@
            vc_SUT_address := PX_S1AP_MME_SUT_IPADDR;
            vc_SUT_port    := PX_S1AP_MME_SUT_PORT;
            
            
        } // End of function f_S1AP_init
        
        /*
        /**
         *  @desc    This is a test step that init global variables
         *  @param   
         */
@@ -67,7 +72,7 @@
            
        } // End of function f_S1AP_enb_init
        
        /*
        /**
         *  @desc    This is a test step that init global variables
         *  @param   
         */
@@ -85,63 +90,75 @@
            vc_SUT_address := PX_S1AP_ENB_SUT_IPADDR;
            vc_SUT_port    := PX_S1AP_ENB_SUT_PORT;
            
        } // End of function f_DiameterRo_init
        } // End of function f_S1AP_enb_init2
        
    } // Endgroup GlobalSteps
    } // End of group GlobalSteps
    
    group Preambles{
        
        function f_preamble_S1AP_MME() runs on S1APComponent
        {
        /**
         * @desc 
         */
        function f_preamble_S1AP_MME() runs on S1APComponent {
            var default     v_def_s1ap_;
            
            f_S1AP_mme_init();
            //f_preambleS1APClient();
        }
        } // End of function f_preamble_S1AP_MME
        
        function f_preamble_S1AP_eNB() runs on S1APComponent
        {
        /**
         * @desc 
         */
        function f_preamble_S1AP_eNB() runs on S1APComponent {
            var default     v_def_s1ap_;
           
            f_S1AP_enb_init();
            //f_preambleS1APServer();
        }
        } // End of function f_preamble_S1AP_eNB
        
		function f_preamble_S1AP_eNB2() runs on S1APComponent
	    {
        /**
         * @desc 
         */
        function f_preamble_S1AP_eNB2() runs on S1APComponent {
            var default     v_def_s1ap_;
            
            f_S1AP_enb_init2();
            //f_preambleS1APServer();
	    }
        } // End of function f_preamble_S1AP_eNB2
        
    } // End of group Preambles
    
    group Postambles {
        
        function f_postamble_S1AP_MME() runs on S1APComponent
        {
        /**
         * @desc 
         */
        function f_postamble_S1AP_MME() runs on S1APComponent {
            f_postambleS1AP_MME();
       
            // Deactivate defaults
            deactivate;
        }
        } // End of function f_postamble_S1AP_MME
        
        function f_postamble_S1AP_eNB() runs on S1APComponent
        {
        /**
         * @desc 
         */
        function f_postamble_S1AP_eNB() runs on S1APComponent {
            f_postambleS1AP_eNB();
            
            //Deactivate defaults
            deactivate;
        }
        } // End of function f_postamble_S1AP_eNB
        
        function f_postamble_S1AP_eNB2() runs on S1APComponent
        {
        /**
         * @desc 
         */
        function f_postamble_S1AP_eNB2() runs on S1APComponent {
            f_postambleS1AP_eNB();
            
            // Deactivate defaults
            deactivate;
        }
        } // End of function f_postamble_S1AP_eNB2
        
    } // End of group Postambles
    
+162 −132
Original line number Diff line number Diff line
/**
 *  @author     STF 519
 *  @version    $Id: $
 *  @desc       This module provides RfRo test functions used by the test cases
 *              for S1AP tests.
 *    @author   ETSI / STF519
 *    @version  $URL:$
 *              $Id:$
 *    @desc     This module provides RfRo test functions used by the test cases.
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI TS 136 413 / 3GPP TS 36.413 version 13.4.0 Release 13
 */
module S1AP_TCFunctions {
    
    // LibCommon
    import from LibCommon_Sync all;
    import from LibCommon_VerdictControl all ;

    // LibS1AP
    import from LibS1AP_PIXITS all;
    import from LibS1AP_Pixits all;
    //import from LibS1AP_TypesAndValues all;
    import from LibS1AP_Templates all;
    import from LibS1AP_Interface all;
@@ -19,13 +25,16 @@ module S1AP_TCFunctions {
    // Ats
    import from S1AP_Templates all;
    import from S1AP_Steps all;
    import from S1AP_PIXITS all;
    import from S1AP_Pixits all;
    import from S1AP_TestSystem all;
    
    group eNB_Role {
        
        group ERAB_management_group {

            /**
             * @desc 
             * @verdict 
             */
            function f_TP_S1AP_ENB_RAB_01() runs on S1APComponent { 
                // Local variables
                
@@ -35,28 +44,37 @@ module S1AP_TCFunctions {
                log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
                
                f_send_S1AP_initiatingMessage(
					m_initiatingMessage_E_RABSetup({
                    m_initiatingMessage_E_RABSetup(
                    {
                        m_E_RAB_IE_MME(1),
                        m_E_RAB_IE_ENB(1),
            			m_E_RAB_IE_ERAB({
                        m_E_RAB_IE_ERAB(
                        {
                            m_E_RABToBeSetupItemBearerSUReq
									(-,
                            (
                                -,
                                m_e_RABlevelQoSParameters
									 (5))
						})
					})
				
                                (5)
                            )
                        }
                        )
                    }
                    )
                );
                
                f_recv_S1AP_successfulOutcome(
					mw_successfulOutcome_E_RABSetupResponse(-,
                    mw_successfulOutcome_E_RABSetupResponse(
                        -,
                        {
                            mw_E_RAB_IE_MME(1),
                            mw_E_RAB_IE_ENB(1),
						 mw_E_RAB_IE_ERAB({
                            mw_E_RAB_IE_ERAB(
                            {
                                mw_E_RABSetupItemBearerSURes
										  })
					 })
                            }
                            )
                        }
                    )
                );
                
                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); 
@@ -76,42 +94,48 @@ module S1AP_TCFunctions {
                log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
                
                f_send_S1AP_initiatingMessage(
					m_initiatingMessage_E_RABSetup({
                    m_initiatingMessage_E_RABSetup(
                    {
                         m_E_RAB_IE_MME(1),
                         m_E_RAB_IE_ENB(1),
						 m_E_RAB_IE_ERAB({
											 m_E_RABToBeSetupItemBearerSUReq
											 (1),
											 m_E_RABToBeSetupItemBearerSUReq
											 (2,
                         m_E_RAB_IE_ERAB(
                         {
                             m_E_RABToBeSetupItemBearerSUReq(1),
                             m_E_RABToBeSetupItemBearerSUReq(
                                2,
                                m_e_RABlevelQoSParameters
											  (255))
										 })
					 })	
                                (255)
                             )
                         }
                         )
                     }
                     )
                     
                );
                
                f_recv_S1AP_successfulOutcome(
					mw_successfulOutcome_E_RABSetupResponse(-,
                    mw_successfulOutcome_E_RABSetupResponse(
                        -,
                        {
                            mw_E_RAB_IE_MME(1),
                            mw_E_RAB_IE_ENB(1),
							 mw_E_RAB_IE_ERAB
							 ({
								  mw_E_RABSetupItemBearerSURes
								  (1)
							  }),
							 mw_E_RAB_IE_fSUL({
												  mw_E_RABItem
												  (2
												   ,
                            mw_E_RAB_IE_ERAB(
                            {
                                  mw_E_RABSetupItemBearerSURes(1)
                            }
                            ),
                            mw_E_RAB_IE_fSUL(
                            {
                                mw_E_RABItem(
                                    2,
                                    {
													   radioNetwork
														   :=
														   not_supported_QCI_value
												   })
											  })
						 })
                                        radioNetwork :=not_supported_QCI_value
                                    }
                                )
                            }
                            )
                        }
                    )
                );
                
                f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict()); 
@@ -122,13 +146,17 @@ module S1AP_TCFunctions {
                
            } // End of function f_TP_S1AP_ENB_RAB_02
            
        } // End of group ERAB_management_group
        
    } // End of group eNB_Role
    
        }
    } //end  group eNB_Role
    group MME_Role {
        
        group ERAB_management_group { 
            
            /**
             * @desc 
             */
            function f_TP_S1AP_MME_RAB_01() runs on S1APComponent { 
                // Local variables
                
@@ -149,7 +177,9 @@ module S1AP_TCFunctions {
                
            } // End of function f_TP_S1AP_MME_RAB_01                
            
		}
	}//end  group MME_Role
        } // End of group ERAB_management_group
        
    } // End of group MME_Role
    
} // End of module S1AP_TCFunctions
+70 −58
Original line number Diff line number Diff line
/**
 *  @author   STF 519
 *  @version  $Id: $
 *    @author   ETSI / STF519
 *    @version  $URL:$
 *              $Id:$
 *    @desc     This module defines S1AP Templates for message, header, and
 *              structured types. <br>
 *              Note that any changes made to the definitions in this module
@@ -9,8 +10,12 @@
 *              module regarding their modifications or additions. 
 *    @remark   Any additions to the templates shall follow the design rules
 *              and always modify base templates only;
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI TS 136 413 / 3GPP TS 36.413 version 13.4.0 Release 13
 */

module S1AP_Templates {
    
    // LibCommon
@@ -20,21 +25,24 @@ module S1AP_Templates {
    // LibS1AP
    import from LibS1AP_Templates all;
    
    
    group S1AP_PDU {
        
        group Class1 {
            
            group Send {
                
                group HandoverPreparation {
                    
                    group initiatingMessage {
                        
                    } //End group initiatingMessage
                    
                    group successfulOutcome {
                        
                    } //End group successfulOutcome
                    
                    group unsuccessfulOutcome {
                        
                    } //End group unsuccessfulOutcome
                    
                } //End group HandoverPreparation
@@ -44,7 +52,8 @@ module S1AP_Templates {
                } //End group HandoverResourceAllocation
                
                //TODO: Other....
            }
                
            } // End of group Send
            
            group Receive {
                
@@ -58,7 +67,8 @@ module S1AP_Templates {
                
                //TODO: Other....
                
        	}
            } // End of group Receive
            
        } //End of group Class1
        
        group Class2{
@@ -68,12 +78,14 @@ module S1AP_Templates {
    } // End of group S1AP_PDU
    
    group S1AP_Protocol_IEs{
        
    }// End of group S1AP_Protocol_IEs
    
    /** 
     * @desc Type functions 
     */
    group functionsForTemplates {
        
    } // End of group functionsForTemplates
    
} // End of module S1AP_Templates
Loading