Commit 572ae5a1 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add class2 test cases

parent 189e25ea
Loading
Loading
Loading
Loading
+1700 −22

File changed.

Preview size limit exceeded, changes collapsed.

+18 −0
Original line number Original line Diff line number Diff line
@@ -25,12 +25,30 @@ module ItsMbr_TestControl {
        execute(TC_MRS_ITSS_MESSAGES_BV_01());
        execute(TC_MRS_ITSS_MESSAGES_BV_01());
        execute(TC_MRS_ITSS_MESSAGES_CLASS1_CAM_BV_01());
        execute(TC_MRS_ITSS_MESSAGES_CLASS1_CAM_BV_01());
        execute(TC_MRS_ITSS_MESSAGES_CLASS1_CAM_BV_02());
        execute(TC_MRS_ITSS_MESSAGES_CLASS1_CAM_BV_02());
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_01());
      } // PICS_DETECTOR_CAM_SPEED
      } // PICS_DETECTOR_CAM_SPEED


      if (PICS_DETECTOR_CAM_POSITION) {
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_02());
      } // PICS_DETECTOR_CAM_POSITION

      if (PICS_DETECTOR_CAM_LONG_ACC) {
      if (PICS_DETECTOR_CAM_LONG_ACC) {
        execute(TC_MRS_ITSS_MESSAGES_CLASS1_CAM_BV_03());
        execute(TC_MRS_ITSS_MESSAGES_CLASS1_CAM_BV_03());
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_04());
      } // PICS_DETECTOR_CAM_LONG_ACC
      } // PICS_DETECTOR_CAM_LONG_ACC


      if (PICS_DETECTOR_CAM_BEACON) {
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_05());
      } // PICS_DETECTOR_CAM_BEACON

      if (PICS_DETECTOR_CAM_STATIC) {
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_10_01());
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_10_02());
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_10_03());
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_10_04());
        execute(TC_MRS_ITSS_MESSAGES_CLASS2_CAM_BV_10_05());
      } // PICS_DETECTOR_CAM_STATIC

    } // PICS_IUT_ITS_S
    } // PICS_IUT_ITS_S


    if (PICS_IUT_MA) {
    if (PICS_IUT_MA) {
+4 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,10 @@ module LibItsMbr_Pics {


  modulepar boolean PICS_DETECTOR_CAM_SECURITY := true;
  modulepar boolean PICS_DETECTOR_CAM_SECURITY := true;


  modulepar boolean PICS_DETECTOR_CAM_BEACON := true;

  modulepar boolean PICS_DETECTOR_CAM_STATIC := true;

  modulepar charstring PICS_HTTP_POST_URI_MBR := "/misbehavior-report";
  modulepar charstring PICS_HTTP_POST_URI_MBR := "/misbehavior-report";


  /**
  /**
+39 −3
Original line number Original line Diff line number Diff line
module LibItsMbr_Pixits {
module LibItsMbr_Pixits {


  /**
  /**
   * @desc Number of inconsistent message to send to the IUT
   * @desc Number of consistent messages to send to the IUT
   * @see ETSI TS 103 868-3 Table B.7
   * @see ETSI TS 103 868-3 Table B.7
   */
   */
  modulepar integer PX_REPEAT_INCONSISTENT_MESSAGE       := 1;
  modulepar integer PX_REPEAT_CONSISTENT_MESSAGE := 3;

  /**
   * @desc Number of inconsistent messages to send to the IUT
   * @see ETSI TS 103 868-3 Table B.7
   */
  modulepar integer PX_REPEAT_INCONSISTENT_MESSAGE := 2;

  /**
   * @desc requestTime (in second) between two consistent messages
   * @see ETSI TS 103 868-3 Table B.7
   */
  modulepar float PX_REPEAT_CONSISTENT_MESSAGE_TIMEOUT := 1.0;


  /**
  /**
   * @desc requestTime (in second) between two inconsistent messages
   * @desc requestTime (in second) between two inconsistent messages
   * @see ETSI TS 103 868-3 Table B.7
   * @see ETSI TS 103 868-3 Table B.7
   */
   */
  modulepar float PX_REPEAT_INCONSISTENT_MESSAGE_TIMEOUT := 1.0;
  modulepar float PX_REPEAT_INCONSISTENT_MESSAGE_TIMEOUT := 1.0 / 20; // 20 Hz


  /**
  /**
   * @desc Speed threshold value for unknown(0), pedestrian(1), cyclist(2), moped(3), specialVehicles(10) and tram(11)
   * @desc Speed threshold value for unknown(0), pedestrian(1), cyclist(2), moped(3), specialVehicles(10) and tram(11)
@@ -42,4 +54,28 @@ module LibItsMbr_Pixits {
   */
   */
  modulepar integer PX_MBR_RSU_SPEED_THRESHOLD := 0;
  modulepar integer PX_MBR_RSU_SPEED_THRESHOLD := 0;


  /**
   * @desc Altered StationTyoe
   * @see ASN.1 Type definition for MbObsCamStatic
   */
  modulepar integer PX_MBR_ALTER_STATION_TYPE := 4; // motocycle

  /**
   * @desc Altered StationTyoe
   * @see ASN.1 Type definition for MbObsCamStatic
   */
  modulepar integer PX_MBR_ALTER_VEHICLE_ROLE := 8; // agriculture

  /**
   * @desc Vehicle length  threshold value
   * @see ASN.1 Type definition for MbObsCamStatic
   */
  modulepar integer PX_MBR_VEHICLE_LENGTH_VALUE_THRESHOLD := 1000;

  /**
   * @desc Vehicle lenght  threshold value
   * @see ASN.1 Type definition for MbObsCamStatic
   */
  modulepar integer PX_MBR_VEHICLE_WIDTH_VALUE_THRESHOLD := 1000;

} // End of module LibItsMbr_Pixits
} // End of module LibItsMbr_Pixits
 No newline at end of file
+71 −0
Original line number Original line Diff line number Diff line
@@ -306,6 +306,77 @@ module LibItsMbr_Templates {


    } // End of group long_acc
    } // End of group long_acc


    group beacon {
      
      template (present) AsrCam mw_asr_cam_report_beacom(
                                                         template (present) MbObsCamBeacon p_observations := ?, 
                                                         template (present) V2xPduStreamList p_v2xPduEvidence := ?,
                                                         template (present) AsrCam.nonV2xPduEvidence p_nonV2xPduEvidence := ?
                                                         ) := {
        observations       := { 
                                {  tgtId := c_CamTgt_BeaconCommon, 
                                  observations := { { mbObsCamBeacon := p_observations}  }
                                } // Record ObservationsByTarget
                              }, // Record of ObservationsByTargetSequence 
        v2xPduEvidence     := p_v2xPduEvidence,
        nonV2xPduEvidence  := p_nonV2xPduEvidence
      } // End of template mw_asr_cam_report_beacom

      template (value) MbObsCamBeacon mw_asr_cam_report_beacon_interval_too_small := {
        obsId  := c_Obs_Beacon_IntervalTooSmall,
        obs    := { beacon_IntervalTooSmall := NULL }
      } // End of template mw_asr_cam_report_beacon_interval_too_small

    } // End of group beacon

    group cam_static {
      
      template (present) AsrCam mw_asr_cam_report_static(
                                                         template (present) MbObsCamStatic p_observations := ?, 
                                                         template (present) V2xPduStreamList p_v2xPduEvidence := ?,
                                                         template (present) AsrCam.nonV2xPduEvidence p_nonV2xPduEvidence := ?
                                                         ) := {
        observations       := { 
                                {  tgtId := c_CamTgt_StaticCommon, 
                                  observations := { { MbObsCamStatic := p_observations}  }
                                } // Record ObservationsByTarget
                              }, // Record of ObservationsByTargetSequence 
        v2xPduEvidence     := p_v2xPduEvidence,
        nonV2xPduEvidence  := p_nonV2xPduEvidence
      } // End of template mw_asr_cam_report_static

      template (value) MbObsCamStatic mw_asr_cam_report_static_change_performance_class := {
        obsId  := c_Obs_Static_Change,
        obs    := { static_Change := '00000'B }
      } // End of template mw_asr_cam_report_static_change_performance_class

      template (value) MbObsCamStatic mw_asr_cam_report_static_change_vehicle_width := {
        obsId  := c_Obs_Static_Change,
        obs    := { static_Change := '00001'B }
      } // End of template mw_asr_cam_report_static_change_vehicle_width

      template (value) MbObsCamStatic mw_asr_cam_report_static_change_vehicle_role := {
        obsId  := c_Obs_Static_Change,
        obs    := { static_Change := '00010'B }
      } // End of template mw_asr_cam_report_static_change_vehicle_role

      template (value) MbObsCamStatic mw_asr_cam_report_static_change_vehicle_length := {
        obsId  := c_Obs_Static_Change,
        obs    := { static_Change := '00100'B }
      } // End of template mw_asr_cam_report_static_change_vehicle_length

      template (value) MbObsCamStatic mw_asr_cam_report_static_change_station_type := {
        obsId  := c_Obs_Static_Change,
        obs    := { static_Change := '01000'B }
      } // End of template mw_asr_cam_report_static_change_station_type

      template (value) MbObsCamStatic mw_asr_cam_report_static_change_special_transport_type := {
        obsId  := c_Obs_Static_Change,
        obs    := { static_Change := '10000'B }
      } // End of template mw_asr_cam_report_static_change

    } // End of group cam_static

    group security {
    group security {


      template (value) AsrCam m_asr_cam_report_security(
      template (value) AsrCam m_asr_cam_report_security(
Loading