ItsMapem_TestCases.ttcn 74.8 KB
Newer Older
Yann Garcia's avatar
Yann Garcia committed
 *    @version     $Url: https://oldforge.etsi.org/svn/ITS/tags/20170222_STF527_Final/ttcn/AtsMapemSpatem/ItsMapem_TestCases.ttcn $
 *                 $Id: ItsMapem_TestCases.ttcn 2646 2016-12-16 07:35:58Z garciay $
 *    @desc        Testcases for RLT Service
garciay's avatar
garciay committed
 *    @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.
 *
 */

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.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_01
             * @reference ETSI TS 103 301 v1.1.1 Clause 5.3
            testcase TC_IS_RLT_GEN_MSGF_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_01
            
            /**
             * @desc Check that the intersection information revision number is changed when the intersection 
             *       configuration is changed.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *        and the IUT already sent MAPEM
             *            containing id of type IntersectionReferenceID
             *                indicating ID
             *            and containing elements of type IntersectionGeometry
             *                containing revision
             *                    indicating value R
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing new configuration of the intersection
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing id of type IntersectionReferenceID
             *                    indicating ID
             *                and containing the element of type IntersectionGeometry
             *                    containing revision
             *                        indicating value R+1
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_02
             * @reference CEN ISO/TS 19091 [4] clause 6.5.13
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_02 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_02();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_02
            
            /**
             * @desc Check that the intersection information revision number is not changed when the 
             *       intersection configuration is still the same.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *        and the IUT already sent MAPEM
             *            containing id of type IntersectionReferenceID
             *                indicating ID
             *            and containing elements of type IntersectionGeometry
             *                containing revision
             *                    indicating value R
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing the same configuration of the intersection
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing id of type IntersectionReferenceID
             *                    indicating ID
             *                and containing the element of type IntersectionGeometry
             *                    containing revision
             *                        indicating value R
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_03
             * @reference CEN ISO/TS 19091 [4] clause 6.5.13
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_03 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_03();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_03
            
            /**
             * @desc Check that RLT Service transmits MAPEM with the valid connection trajectories.
             * <pre>
             * 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
             *                containing MapData data element
             *                    containing intersections
             *                        containing elements of type IntersectionGeometry
             *                            containing laneSet
             *                                containing elements of type GenericLane
             *                                    containing regional
             *                                        containing elements of type ConnectionTrajectory
             *        }
             *        then {
             *            the first node of the trajectory
             *                indicate the position related to the node of ingress lane
Yann Garcia's avatar
Yann Garcia committed
             *            and the last node of the trajectory
             *                indicate the position identical to the first node of the connected egress lane
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_04
             * @reference CEN ISO/TS 19091 [4] clause G.8.2.3.4
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_04 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_04();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_04
            
            /**
             * @desc Check that reference point altitude is encoded using regional extension.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing reference position
             *                    containing altitude information ALTITUDE
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing refPoint
             *                            not containing elevation
             *                            and containing regional
             *                                containing element of type Position3D-addGrpC
             *                                    containing altitude
             *                                        indicating ALTITUDE
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_05
             * @reference CEN ISO/TS 19091 [4] clause G.8.2.6
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_05 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_05();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_05
            
            /**
             * @desc Check that each lane of the intersection contains a unique number.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing multiple lines
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneSet
             *                            containing elements of type GenericLane
             *                                containing laneID
             *                                    indicating unique value
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_06
             * @reference CEN ISO/TS 19091 [4] clause 6.5.8
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_06 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_06();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_06
            
            /**
             * @desc Check that the number of nodes needed to represent the path of a lane is selected such that 
             *       the perpendicular distance between the lane centre line and the straight line connecting the 
             *       two consecutive nodes is less than 1 m.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing multiple lines
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneSet
             *                            containing elements of type GenericLane
             *                                containing enough elements
             *                                    indicating precise lane path
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_07
             * @reference CEN ISO/TS 19091 [4] clause 6.5.9
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_07 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_07();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_07
            
            /**
             * @desc Check that each vehicular lane of the intersection includes only allowed manoeuvres and 
             *       vehicle types.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing vehicle lane
             *                        containing laneID (LANE_ID)
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneSet
             *                            containing elements of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing laneAttributes
             *                                    containing laneType
             *                                        containing vehicle
             *                                            not indicating any flags
             *                                            or indicating isVehicleFlyOverLane
             *                                            or indicating hovLaneUseOnly
             *                                    and containing sharedWith
             *                                        not indicating any flags
             *                                        indicating otherNonMotorizedTrafficTypes (2)
             *                                        and/or indicating pedestriansTraffic (6)
             *                                        and/or indicating cyclistVehicleTraffic (7)
             *                                        and/or indicating pedestrianTraffic (9)
             *                                and/or containing connectsTo
             *                                    containing elements of type Connection
             *                                        containing connectingLane
             *                                            containing maneuver
             *                                                indicating maneuverStraightAllowed 
             *                                                or indicating maneuverLeftAllowed 
             *                                                or indicating maneuverRightAllowed 
             *                                                or indicating maneuverUTurnAllowed
             *                                                or indicating maneuverLeftTurnOnRedAllowed
             *                                                or indicating maneuverRightTurnOnRedAllowed
             *                                            or not containing maneuvre
             *                            or containing element of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing overlays
             *                                    indicating list of lanes to be used for the present TP
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_08
             * @reference CEN ISO/TS 19091 [4] clause 6.5.10
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_08 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_08();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_08
            
            /**
             * @desc Check that each pedestrian lane of the intersection includes only allowed manoeuvres and 
             *       user types.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing pedestrian lane
             *                        containing laneID (LANE_ID)
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneSet
             *                            containing elements of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing laneAttributes
             *                                    containing laneType
             *                                        containing crosswalk
             *                                        or containing bikeLane
             *                                        or containing sidewalk
             *                                    and containing sharedWith
             *                                        indicating otherNonMotorizedTrafficTypes (2)
             *                                        or indicating pedestriansTraffic (6)
             *                                        or indicating cyclistVehicleTraffic (7)
             *                                        or indicating pedestrianTraffic (9)
             *                                        or not indicating any value
             *                                and containing connectsTo
             *                                    containing elements of type Connection
             *                                        containing connectingLane
             *                                            containing maneuver
             *                                                indicating maneuverStraightAllowed 
             *                                            or not containing maneuver 
             *                            or containing element of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing overlays
             *                                    indicating list of lanes to be used for the present TP
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_09
             * @reference CEN ISO/TS 19091 [4] clause 6.5.11
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_09 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_09();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_09
            
            /**
             * @desc Check that each special lane of the intersection includes only allowed manoeuvres and user 
             *       types.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION AND PICS_SPECIALIZED_CARS_MANOEUVRES
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing special transport lane
             *                        containing laneID (LANE_ID)
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneSet
             *                            containing elements of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing laneAttributes
             *                                    containing laneType
             *                                        containing vehicle
             *                                            indicating hovLaneUseOnly
             *                                            or indicating restrictedToBusUse
             *                                            or indicating restrictedFromPublicUse
             *                                        or containing trackedVehicle
             *                                and containing connectsTo
             *                                    containing elements of type Connection
             *                                        containing connectingLane
             *                                            containing maneuver
             *                                                indicating maneuverStraightAllowed 
Yann Garcia's avatar
Yann Garcia committed
             *                                                or indicating “proceed after stopping�
             *                                            or not containing maneuver
             *                            or containing element of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing overlays
             *                                    indicating list of lanes to be used for the present TP
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_10
             * @reference CEN ISO/TS 19091 [4] clause 6.5.12
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_10 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_10();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_10
            
            /**
             * @desc Check that each crosswalk lane of the intersection does not have ingress or egress 
             *       approaches and includes only valid user types.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing crosswalk lane
             *                        containing laneID (LANE_ID)
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneSet
             *                            containing element of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing laneAttributes
             *                                    containing laneType
             *                                        containing crosswalk
             *                                    and containing sharedWith
             *                                        indicating otherNonMotorizedTrafficTypes (2)
             *                                        or indicating pedestriansTraffic (6)
             *                                        or indicating cyclistVehicleTraffic (7)
             *                                        or indicating trackedVehicleTraffic (8)
             *                                        or indicating pedestrianTraffic (9)
             *                                        or not indicating any value
             *                                and not containing ingressApproach
             *                                and not containing egressApproach
             *                            or containing element of type GenericLane
             *                                containing laneID
             *                                    indicating LANE_ID
             *                                and containing overlays
             *                                    indicating list of lanes to be used for the present TP
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_11
             * @reference CEN ISO/TS 19091 [4] clause 6.5.14
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_11 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_11();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_11
            
            /**
             * @desc Check that each lane information contain lane width or default lane width is provided.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION AND PICS_MAPEM_HAS_LANE_WIDTH
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersections
             *                    containing lanes
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing the element of type IntersectionGeometry
             *                        containing laneWidth
             *                            indicating default lane with
             *                        or containing laneSet
             *                            containing all elements of type GenericLane
             *                                containing nodeList
             *                                    containing nodes
             *                                        containing all elements of type NodeXY
             *                                            containing attributes
             *                                                containing dWidth
             *                                                    indicating lane with at the point
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_12
             * @reference CEN ISO/TS 19091 [4] clause 6.5.15
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_12 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_12();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_12
            
            /**
Yann Garcia's avatar
Yann Garcia committed
             * @desc Check that default lane width is not included in the RTL message if each lane information contains lane width.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION AND PICS_MAPEM_HAS_LANE_WIDTH
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing map.intersections
             *                    containing all elements of type IntersectionGeometry
             *                        containing laneSet
             *                            containing all elements of type GenericLane
             *                                containing nodeList
             *                                    containing nodes
             *                                        containing all elements of type NodeXY
             *                                            containing attributes
             *                                                containing dWidth
             *                                                    indicating lane with at the point
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing all elements of type IntersectionGeometry
             *                        not containing laneWidth
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_13
             * @reference CEN ISO/TS 19091 [4] clause 6.5.16
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_13 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_13();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_13
            
            /**
             * @desc Check that possible manoevers are encoded in connectsTo data element.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *        and the IUT sending MAPEM
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the RLT service is requested to send a MAPEM
             *                containing possible manoevers information
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing elements of type IntersectionGeometry
             *                    containing laneSet
             *                        containing elements of type GenericLane
             *                            containing DE connectsTo
             *                                containing information about possible manoeuvers
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_14
             * @reference CEN ISO/TS 19091 [4] clauses 6.5.17, G.8.2.3.2
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_14 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_14();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_14
            
            /**
             * @desc An IUT shall broadcast the signal group identifier, the lanes/approaches associated with the 
Yann Garcia's avatar
Yann Garcia committed
             *       signal group, and the lanes/approaches’ allowable manoeuvres.
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "MAPEM initial state"
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is triggered to send the MAPEM
             *                containing intersection
             *                    containing lanes
             *                        containing signalGroup
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing all elements of type IntersectionGeometry
             *                        containing laneSet
             *                            containing all elements of type GenericLane
             *                                containing connectsTo
             *                                    containing elements of type Connection
             *                                        containing signalGroup
             *                                            indicating (SG)
             *                                        and containing connectingLane
             *                                            containing maneuver
             *                                                indicating possible maneuver 
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_15
             * @reference CEN ISO/TS 19091 [4] clauses 6.5.21
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_15 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_15();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_15
            
            /**
             * @desc Check that lanes which are crossed by a crosswalk shall use the same ingressApproach / 
             *       egressApproach identifier.
             * <pre>
             * 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
             *                containing MapData data element
             *                    containing elements of type IntersectionGeometry
             *                        containing more then one element of type GenericLane
             *                            crossed by the same crosswalk lane
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing map.intersections
             *                    containing these elements of type GenericLane
             *                        containing ingressApproach
             *                            indicating the same value
             *                        or containing egressApproach
             *                            indicating the same value
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_16
             * @reference CEN ISO/TS 19091 [4] clause G.8.2.3.1
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_16 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_16();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_16
            
            /**
             * @desc Check that RLT Service transmits MAPEM without data elements not used in ETSI architecture:
Yann Garcia's avatar
Yann Garcia committed
             *       • layerType
             *       • dataParameters
             * <pre>
             * Pics Selection: PICS_MAPEM_GENERATION AND PICS_ETSI_STRICT
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT sending MAPEM
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            a MAPEM is generated
             *                containing a new content
             *                    indicating a value which is not exceeding the allowed message length 
             *        }
             *        then {
             *            the IUT sends MAPEM
             *                containing MapData data element
             *                    not containing layerType
             *                    and not containing layerID
             *                    and not containing dataParameters
             *                        containing elements of type IntersectionGeometry
             *                            containing elements of type GenericLane
             *                                not containing preemptPriorityData
             *                                and not containing maneuvers
             *                                and containing connectsTo
             *                                    containing elements of type Connection
             *                                        containing connectingLane
             *                                            not containing maneuver
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_MSGF_BV_17
             * @reference CEN ISO/TS 19091 [4] clause G.8.1.1, G.8.2.1
             */
            testcase TC_IS_RLT_GEN_MSGF_BV_17 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_MSGF_BV_17();
                
            } // End of testcase TC_IS_RLT_GEN_MSGF_BV_17
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.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_EVGN_BV_01
             * @reference ETSI TS 103 301 v1.1.1 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
            
            /**
garciay's avatar
garciay committed
             * @desc Check that RLT Service transmits new content
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.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_EVGN_BV_02
             * @reference ETSI TS 103 301 v1.1.1 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
            
            /**
             * @desc Check that RLT Service transmits non-fragmented MAPEM without the Layer ID.
             * <pre>
             * 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 { 
             *            the IUT is requested to send a MAPEM
             *                indicating a map structure which fits the allowed message length 
             *        }
             *        then {
             *            the IUT sends a first MAPEM
             *                containing map
             *                    not containing LayerID
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_FRAG_BV_01
             * @reference ETSI TS 103 301 [2], clause 6.4.1
             *            CEN ISO/TS 19091 [4], clause G.8.3.1
             */
            testcase TC_IS_RLT_GEN_FRAG_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
                
                f_IS_RLT_GEN_FRAG_BV_01();
                
            } // End of testcase TC_IS_RLT_GEN_FRAG_BV_01
            
garciay's avatar
garciay committed
            /**
             * @desc Check that RLT Service transmits fragmented MAPEM when the message size exceeds the allowed message length 
             * <pre>
garciay's avatar
garciay committed
             * Pics Selection: PICS_MAPEM_GENERATION
garciay's avatar
garciay committed
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT has sent a MAPEM
             *    }
             * Expected behaviour:
             *    ensure that {
             *        when { 
             *            the IUT is alerted about a new content
             *                indicating a new value which exceeds the allowed message length 
             *        }
             *        then {
             *            the IUT sends a first valid MAPEM
             *            containing map
             *                containing LayerType
             *                and containing LayerID
             *                    indication a value LID_1
             *            and the IUT sends a second valid MAPEM
             *                containing map
             *                    containing LayerType
             *                    and containing LayerID
             *                        indication a value LID_2 = LID_1 + 1
             *        }
             *    }
             * </pre>
             * 
             * @version   1.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_FRAG_BV_02
             * @reference ETSI TS 103 301 [2], clause 6.4.1
             *            CEN ISO/TS 19091 [4], clause G.8.3.1
garciay's avatar
garciay committed
             */
            testcase TC_IS_RLT_GEN_FRAG_BV_02 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
garciay's avatar
garciay committed
                
garciay's avatar
garciay committed
                
            } // End of testcase TC_IS_RLT_GEN_FRAG_BV_02
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
        } // End of group mapeEventGeneration
             * @desc Check that the RLT Service transmits continuously both MAPEM and SPATEM.
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.1.1
Yann Garcia's avatar
Yann Garcia committed
             * @see       ETSI TS 103 191-2 v1.2.5 TP_IS_RLT_GEN_COM_BV_01
             * @reference ETSI TS 103 301 v1.1.1 Clause 6.4.3.1
            testcase TC_IS_RLT_GEN_COM_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
            } // End of testcase TC_IS_RLT_GEN_COM_BV_01
             * @desc Check that RLT service generates a MAP message with the revision data element 
             *       synchronized with the revision data element of correspondent SPATEM message.
             * Pics Selection: PICS_SPATEM_GENERATION AND PICS_MAPEM_GENERATION
             * Initial conditions: 
             *   with {
             *        the IUT being in the "initial state"
             *        and the IUT already sent MAPEM
             *            containing id of type IntersectionReferenceID
             *                indicating ID
             *            and containing elements of type IntersectionGeometry
             *                containing revision
             *                    indicating value R
             *        and the IUT has sent SPATEM
             *            containing id of type IntersectionReferenceID
             *                indicating ID
             *            and containing elements of type IntersectionState
             *                containing revision
             *                    indicating value R+1