Newer
Older
/**
Bostjan Pintar
committed
* @author ETSI / STF484 / TTF002
* @version $Url: https://oldforge.etsi.org/svn/ITS/tags/20170222_STF527_Final/ttcn/AtsMapemSpatem/ItsSpatem_TestCases.ttcn $
* $Id: ItsSpatem_TestCases.ttcn 2646 2016-12-16 07:35:58Z garciay $
Bostjan Pintar
committed
* @reference ETSI TS 103 301 v1.3.1
* @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 ItsSpatem_TestCases {
// LibItsMapemSpatem
import from LibItsMapemSpatem_TestSystem all;
// LibItsMapemSpatem
import from ItsSpatem_TpFunctions all;
group spateMessageDissemination {
group spateMessageFormat {
/**
* @desc Check that protocolVersion is set to 1 and messageID is set to 4
* <pre>
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* a SPATEM is generated
* }
* then {
* the IUT sends a valid SPATEM
* containing ITS PDU header
* containing protocolVersion
* indicating value '1'
* and containing messageID
* indicating value '4'
* }
* }
* </pre>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_01
* @reference ETSI TS 103 301 v1.1.1 Clause 5.3
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_01();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_01
Bostjan Pintar
committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
* @desc An IUT shall include the unique identifier for the intersection as part of
* the signal phase and timing message broadcast
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* the TLM service is requested to send a SPATEM
* }
* then {
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id
* indicating unique intersection identifier
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_02
* @reference CEN ISO/TS 19091 [4], clauses 6.7.3, G
*/
testcase TC_IS_TLM_GEN_MSGF_BV_02 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_02();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_02
/**
Bostjan Pintar
committed
* @desc Check that TLM service generates a SPAT message with the revision data element
* synchronized with the revision data element in the intersection configuration
* of the roadway geometric information (MAP)
* <pre>
* Initial conditions:
* with {
* the IUT being in the "initial state"
Bostjan Pintar
committed
* and the IUT sending SPATEM
* and the Iast broadcastet MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing revision
* indicating (R)
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* containing id of type IntersectionReferenceID
* indicating ID
* }
* then {
* the IUT sends a valid SPATEM
Bostjan Pintar
committed
* containing the elements of type IntersectionState
* containing revision
* indicating R
* }
* }
* </pre>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_03
* @reference CEN ISO/TS 19091 [4], clause G.4
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_03 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_03();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_03
/**
Bostjan Pintar
committed
* @desc An IUT shall include a timestamp as part of the signal phase and timing message broadcast.
* <pre>
* Initial conditions:
* with {
* the IUT being in the "initial state"
Bostjan Pintar
committed
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* }
* then {
Bostjan Pintar
committed
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing moy
* indicating the minute of the year when message was generated
* containing timeStamp
* indicating the millisecond of the current minute
* }
* }
* </pre>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_04
* @reference CEN ISO/TS 19091 [4], clauses 6.7.5, G
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_04 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_04();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_04
/**
Bostjan Pintar
committed
* @desc An IUT shall include signalGroupe for each intersection if this signalGroup is defined in the
* intersection configuration of the roadway geometric information (MAP)
* <pre>
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
Bostjan Pintar
committed
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* containing id of type IntersectionReferenceID
* indicating ID
* }
* then {
Bostjan Pintar
committed
* the IUT sends a valid SPATEM
* containing elements of type IntersectionState
* containing spat
* containing intersections
* containing as many elements of type IntersectionState as needed
* containing states
* containing as many elements of type MovementState as needed
* containing signalGroup
* indicating SG
* }
* }
* </pre>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_05
* @reference CEN ISO/TS 19091 [4], clause 6.7.6
*/
testcase TC_IS_TLM_GEN_MSGF_BV_05 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_05();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_05
/**
Bostjan Pintar
committed
* @desc For each vehicular manoeuvre at a signalized intersection, an IUT shall include the current
* movement state.
* <pre>
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
Bostjan Pintar
committed
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
* and containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* }
* then {
Bostjan Pintar
committed
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing states
* containing elements of type MovementState
* containing signalGroup
* indicating SG
* containing state-time-speed
* containing elements of type MovementEvent
* not containing timing
* or containing timing
* indicating time interval containing current time
* }
* }
* </pre>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_06
* @reference CEN ISO/TS 19091 [4], clauses 6.7.8
*/
testcase TC_IS_TLM_GEN_MSGF_BV_06 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_06();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_06
Bostjan Pintar
committed
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/**
* @desc For each pedestrian manoeuvre at a signalized intersection, an IUT shall include the current
* movement state.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION and PICS_PEDESTRIAN_MANOEUVRES
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing crosswalk
* or containing sidewalk
* and containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
* }
* Expected behaviour:
* ensure that {
* when {
* the TLM service is requested to send a SPATEM
* }
* then {
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing states
* containing elements of type MovementState
* containing signalGroup
* indicating SG
* containing state-time-speed
* containing elements of type MovementEvent
* not containing timing
* or containing timing
* indicating time interval containing current time
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_07
Bostjan Pintar
committed
* @reference CEN ISO/TS 19091 [4], clauses 6.7.9
*/
testcase TC_IS_TLM_GEN_MSGF_BV_07 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_07();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_07
/**
* @desc For each active manoeuvre an IUT shall include the earliest time point when the manoeuvre
* state is predicted to change
Bostjan Pintar
committed
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
* and containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
Bostjan Pintar
committed
* }
* Expected behaviour:
* ensure that {
* when {
* the TLM service is requested to send a SPATEM
Bostjan Pintar
committed
* }
* then {
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing states
* containing elements of type MovementState
* containing signalGroup
* indicating SG
* and containing state-time-speed
* containing elements of type MovementEvent
* containing timing
* containing minEndTime
* indicating time point when state can be changed
Bostjan Pintar
committed
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_08
* @reference CEN ISO/TS 19091 [4], clause 6.7.11
Bostjan Pintar
committed
*/
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_08();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_08
/**
* @desc For each manoeuvre at a signalized intersection, an IUT shall include:
* - the next expected movement states pertaining to that manoeuvre
* - the time point for when the succeeding manoeuvre state is predicted to change
* - the start time for each pending manoeuvre
* <pre>
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
Bostjan Pintar
committed
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
* and containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* }
* then {
* the IUT sends a valid SPATEM
Bostjan Pintar
committed
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing states
* containing elements of type MovementState
* containing signalGroup
* indicating SG
* and containing state-time-speed
* containing elements of type MovementEvent [1..N]
Bostjan Pintar
committed
* containing timing
* containing minEndTime
* indicating the earliest time point when state ends
* and optionally containing startTime
* indicating time point when state starts
* and containing nextTime
* indicating time point when the manoeuvre will next be permitted
* }
* }
* </pre>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_09
* @reference CEN ISO/TS 19091 [4], clauses 6.7.13, 6.7.14
*/
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_09();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_09
Bostjan Pintar
committed
/**
* @desc Check that SPAT message prioritization is encoded using regional extension.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_PRIORITIZATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
Bostjan Pintar
committed
* and the IUT received CAM
* containing stationId
* indicating (PrioSID)
* triggerring the prioritization request
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* containing prioritization response
* }
* then {
* the IUT sends a valid SPATEM
Bostjan Pintar
committed
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing regional
* containing element of type IntersectionState-addGrpC
* containing activePrioritizations
* containing stationID
* indicating PrioSID
* and containing priorState
* indicating prioritization request status
* }
* }
* </pre>
*
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_10
Bostjan Pintar
committed
* @reference CEN ISO/TS 19091 [4], clauses G.5.1.4 and G.8.2.5.2
*/
f_IS_TLM_GEN_MSGF_BV_10();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_10
/**
* @desc For each manoeuvre at a signalized intersection, an IUT shall indicate if one or
* more pedestrians have been detected in the pedestrian crossing.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_PEDESTRIAN_MANOEUVRES
Bostjan Pintar
committed
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
* and containing connectsTo
* containing elements of type Connection
* containing connectionID (CONN_ID)
Bostjan Pintar
committed
* }
* Expected behaviour:
* ensure that {
* when {
* the TLM service is requested to send a SPATEM
* indicating presence of pedestrians on the signalized intersection
Bostjan Pintar
committed
* }
* then {
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing maneuverAssistList
* containing elements of type ConnectionManeuverAssist
* containing connectionID
* indicating CONN_ID
* and containing pedBicycleDetect
* indicating true
Bostjan Pintar
committed
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_12
* @reference CEN ISO/TS 19091 [4], clauses 6.7.16
*/
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_11();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_11
Bostjan Pintar
committed
/**
* @desc An IUT shall transmit information about the optimal speed for vehicles on each lane
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_OPTIMAL_SPEED
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
Bostjan Pintar
committed
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
* and containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* }
* then {
* the IUT sends a valid SPATEM
Bostjan Pintar
committed
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing states
* containing elements of type MovementState
* containing signalGroup
* indicating SG
* and containing state-time-speed
* containing elements of type MovementEvent
* containing speeds
* containing element of type AdvisorySpeed
* containing type
* indicating ecoDrive or transit
* and containing speed
* indicating optimal speed
* }
* }
* </pre>
*
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_12
Bostjan Pintar
committed
* @reference CEN ISO/TS 19091 [4], clauses 6.7.18
*/
f_IS_TLM_GEN_MSGF_BV_12();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_12
/**
Bostjan Pintar
committed
* @desc An IUT shall transmit information about the signal timing progression speed along the
* roadway.
* <pre>
Bostjan Pintar
committed
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_SIGNAL_PROGRESSION_SPEED
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
Bostjan Pintar
committed
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
* and containing connectsTo
* containing elements of type Connection
* containing signalGroup
* indicating (SG)
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the TLM service is requested to send a SPATEM
* }
* then {
* the IUT sends a valid SPATEM
Bostjan Pintar
committed
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing states
* containing elements of type MovementState
* containing signalGroup
* indicating SG
* and containing state-time-speed
* containing elements of type MovementEvent
* containing speeds
* containing element of type AdvisorySpeed
* containing type
* indicating greenwave
* and containing speed
* indicating the signal timing progression speed
* }
* }
* </pre>
*
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_13
Bostjan Pintar
committed
* @reference CEN ISO/TS 19091 [4], clauses 6.7.19
*/
f_IS_TLM_GEN_MSGF_BV_13();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_13
Bostjan Pintar
committed
/**
* @desc An IUT shall transmit the length of the queue and the length of available
* vehicular storage on each egress lane.
Bostjan Pintar
committed
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_EGRESS_QUEUE
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* and the last broadcasted MAPEM is
* containing id of type IntersectionReferenceID
* indicating ID
* and containing elements of type IntersectionGeometry
* containing laneSet
* containing elements of type GenericLane
* containing laneAttributes
* containing laneType
* containing vehicle
Bostjan Pintar
committed
* }
* Expected behaviour:
* ensure that {
* when {
* the TLM service is requested to send a SPATEM
Bostjan Pintar
committed
* }
* then {
* the IUT sends a valid SPATEM
* containing spat
* containing intersections
* containing elements of type IntersectionState
* containing id of type IntersectionReferenceID
* indicating ID
* and containing maneuverAssistList
* containing elements of type ConnectionManeuverAssist
* containing queueLength
* indicating current length of the queue
* and containing availableStorageLength
* indicating available space for the line queue
Bostjan Pintar
committed
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_13
* @reference CEN ISO/TS 19091 [4], clauses 6.7.20, 6.7.21
Bostjan Pintar
committed
*/
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_14();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_14
Bostjan Pintar
committed
} // End of group spateMessageFormat
Bostjan Pintar
committed
group spateEventGeneration {
/**
Bostjan Pintar
committed
* @desc Check that TLM Service generates a new SPATEM on reception of a valid AppSPATEM _Start request
* <pre>
Bostjan Pintar
committed
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
Bostjan Pintar
committed
* and the IUT has not sent any SPATEM yet
* }
* Expected behaviour:
* ensure that {
* when {
Bostjan Pintar
committed
* the IUT receives an AppSPATEM_Start request from the application layer
* }
* then {
Bostjan Pintar
committed
* the IUT sends a valid SPATEM
* }
* }
* </pre>
*
Bostjan Pintar
committed
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_EVGN_BV_01
* @reference ETSI TS 103 301 v1.1.1 Clause 5.4.2
*/
testcase TC_IS_TLM_GEN_EVGN_BV_01() runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_EVGN_BV_01();
} // End of testcase TC_IS_TLM_GEN_EVGN_BV_01
/**
* @desc Check that TLM Service generates SPATEM are time ordered
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT has sent a SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* several SPATEM are generated
* }
* then {
* the IUT sends SPATEM in time order
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_EVGN_BV_02
* @reference ETSI TS 103 301 v1.1.1 Clause 5.4.2
*/
testcase TC_IS_TLM_GEN_EVGN_BV_02() runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_EVGN_BV_02();
} // End of testcase TC_IS_TLM_GEN_EVGN_BV_02
/**
* @desc Check that TLM Service terminates on reception of a valid AppSPATEM _Stop request
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AppSPATEM _Stop request from the application layer
* }
* then {
* the IUT stops sending SPATEM
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_EVGN_BV_03
* @reference ETSI TS 103 301 v1.1.1 Clause 5.4.2
*/
testcase TC_IS_TLM_GEN_EVGN_BV_03() runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_EVGN_BV_03();
} // End of testcase TC_IS_TLM_GEN_EVGN_BV_03
/**
* @desc Check that TLM Service generates a new SPATEM on reception of a valid AppSPATEM_Trigger request
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* the IUT receives an AppSPATEM _Stop request from the application layer
* }
* then {
* the IUT stops sending SPATEM
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_EVGN_BV_04
* @reference ETSI TS 103 301 v1.1.1 Clause 5.4.2
*/
testcase TC_IS_TLM_GEN_EVGN_BV_04() runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_EVGN_BV_04();
} // End of testcase TC_IS_TLM_GEN_EVGN_BV_04
} // End of group spateEventGeneration
group spateCommunication {
/**
* @desc Check that TLM Service provides the destination area in SPATEM
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* a SPATEM is generated
* }
* then {
* the IUT sends a valid SPATEM
* containg spat
* containing regional
* containing at least on region
* indicating a regionId
* and indication a regExtValue
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_COM_BV_01
* @reference ETSI TS 103 301 v1.1.1 Clause 5.4.3.2
*/
testcase TC_IS_TLM_GEN_COM_BV_01 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_COM_BV_01();
} // End of testcase TC_IS_TLM_GEN_COM_BV_01
/**
* @desc Check that SPATEM uses BTP_B packet. Check that the destination port for SPATEM is set to 2004
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SHORT_RANGE
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* a SPATEM is generated
* }
* then {
* the IUT sends a valid SPATEM
* encapsulated in a BTP-B packet
* containing a destination port value set to 2004
* and containing a destination port info value set to 0
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_COM_BV_02
* @reference ETSI TS 103 301 [2], clauses 10.2 and 5.4.3.2
*/
testcase TC_IS_TLM_GEN_COM_BV_02 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_COM_BV_02();
} // End of testcase TC_IS_TLM_GEN_COM_BV_02
/**
* @desc Check that TLM service encapsulates SPATEM in a GBC with the HeaderType field set to the value of 4
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* a SPATEM is generated
* }
* then {
* the IUT sends a valid SPATEM
* encapsulated in a GBC packet
* containing a correctly formatted Common Header
* containing HeaderType field
* indicating the value '4'
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_COM_BV_03
* @reference ETSI TS 103 301 v1.1.1 Clause 5.4.3.2
*/
testcase TC_IS_TLM_GEN_COM_BV_03 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_COM_BV_03();
} // End of testcase TC_IS_TLM_GEN_COMM_BV_03
} // End of group spateCommunication
} // End of group spateMessageDissemination
group spateSecurityParameters {
/**
* @desc Check that TLM service uses certificate containing valid ITS AID to sign SPATEM messages.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_IS_IUT_SECURED
* Initial conditions:
* with {
* the IUT being in the "SPATEM initial state"
* and the IUT is operating in secured mode
* and the IUT sending SPATEM
* }
* Expected behaviour:
* ensure that {
* when {
* a SPATEM is generated
* }
* then {
* the IUT sends a valid SPATEM
* containing a correctly formatted Security Header as a EtsiTs103097Data structure
* containing signedData.tbsData.headerInfo
* containing psid
* indicating ITS_AID_SPATEM
* }