ItsMapem_TestCases.ttcn 48.7 KiB
Newer Older
garciay's avatar
garciay committed
 *    @author   ETSI / STF517
 *    @version  $URL$
 *              $Id$
 *    @desc     MAPEM Testcases (TP version: 0.0.1)
 *
 */

module ItsMapem_TestCases {
    
    // LibItsMapemSpatem
    import from LibItsMapemSpatem_TestSystem all;
    
    // ItsMapemSpatem
    import from ItsMapem_TpFunctions all;
    
    group mapeMessageDissemination { 
        
        group mapeMessageFormat { 
            
            /**
             * @desc Check that protocolVersion is set to 1 and messageID is set to 4
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT sending MAPEM
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            a MAPEM is generated
             *        }
             *        then {
             *            the IUT sends a valid MAPEM
             *                containing ITS PDU header
             *                    containing protocolVersion
             *                        indicating value '1'
             *                    and containing messageID
             *                        indicating value '5'
             *        }
             *    }
             * </pre>
             * 
             * @version   1.0.4
             * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_MSGF_BV_01
             * @reference ETSI TS 103 301 V1.0.4 Clause 6.3
             */
            testcase TC_IS_RLT_MSGF_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_MSGF_BV_01();
                
            } // End of testcase TC_IS_RLT_MSGF_BV_01
            
        } // End of group mapeMessageFormat
        
garciay's avatar
garciay committed
        group mapeEventGeneration { 
            
            /**
             * @desc Check that IVI Service generates a new MAPEM on reception of a valid AppMAPEM_Trigger request
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT sending MAPEM
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            a MAPEM is generated
             *        }
             *        then {
             *            the IUT sends a valid MAPEM
             *        }
             *    }
             * </pre>
             * 
             * @version   1.0.4
             * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_EVGN_BV_01
             * @reference ETSI TS 103 301 V1.0.4 Clause 6.4.1
             */
            testcase TC_IS_RLT_EVGN_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_EVGN_BV_01();
                
            } // End of testcase TC_IS_RLT_EVGN_BV_01
            
            /**
             * @desc Check that IVI Service generates a new MAPEM on reception of a valid AppMAPEM_Trigger request
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT sending MAPEM
             *            containing map
             *                not containing LayerType
             *                and not containing LayerID
             *                and containing restrictionList
             *                    indicating the value RL_1
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is alerted about a new restrictionList indicating the value RL_2
             *        }
             *        then {
             *            the IUT sends a valid MAPEM
             *                containing map
             *                    not containing LayerType
             *                    and not containing LayerID
             *                    and containing restrictionList
             *                        indicating indicating the value R_2
             *        }
             *    }
             * </pre>
             * 
             * @version   1.0.4
             * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_EVGN_BV_02
             * @reference ETSI TS 103 301 V1.0.4 Clause 6.4.1
             */
            testcase TC_IS_RLT_EVGN_BV_02 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_EVGN_BV_02();
                
            } // End of testcase TC_IS_RLT_EVGN_BV_02
            
garciay's avatar
garciay committed
        } // End of group mapeEventGeneration
        
        group mapeCommunication {
            
            /**
             * @desc Check that the RLT Service transmits continuously both MAPEM and SPATEM
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION and PICS_SPATEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT sending MAPEM
             *        and the IUT has not sent any SPATEM yet
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT receives an AppSPATEM_Start request from the application layer
             *        }
             *        then {
             *            the IUT sends a valid SPATEM
             *            and the IUT sends a valid MAPEM
             *        }
             *    }
             * </pre>
             * 
             * @version   1.0.4
             * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_COMM_BV_01
             * @reference ETSI TS 103 301 V1.0.4 Clause 6.4.3.1
             */
            testcase TC_IS_RLT_COMM_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_COMM_BV_01();
                
            } // End of testcase TC_IS_RLT_COMM_BV_01
            
            /**
             * @desc Check that MAPEM uses BTP_B packet
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT sending MAPEM 
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            a MAPEM is generated
             *        }
             *        then {
             *            the IUT sends a valid MAPEM
             *                encapsulated in a BTP-B packet
             *        }
             *    }
             * </pre>
             * 
             * @version   1.0.4
             * @see       ETSI TS 103 191-2 v0.0.1 TP_IS_RLT_COMM_BV_02_01
             * @reference ETSI TS 103 301 V1.0.4 Clause 6.4.3.2
             */
            testcase TC_IS_RLT_COMM_BV_02_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_COMM_BV_02_01();
                
            } // End of testcase TC_IS_RLT_COMM_BV_02_01
            
            /**
             * @desc Check that the destination port for MAPEM is set to 2003
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION
Loading
Loading full blame…