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
*/
Bostjan Pintar
committed
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
*/
Bostjan Pintar
committed
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
337
338
339
340
341
342
343
344
/**
* @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_01
* @reference CEN ISO/TS 19091 [4], clauses 6.7.9
*/
testcase TC_IS_TLM_GEN_MSGF_BV_07 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_07();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_07
/**
Bostjan Pintar
committed
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
* @desc For each manoeuvre for specialized vehicles at a signalized intersection, an IUT shall
* include the current movement state.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION
* Initial conditions:
* with {
* TODO
* }
* Expected behaviour:
* ensure that {
* when {
* TODO
* }
* then {
* TODO
* }
* }
* </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], clauses 6.7.10
*/
testcase TC_IS_TLM_GEN_MSGF_BV_08 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_08();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_08
/**
* @desc For each active manoeuvre an IUT shall include the earliest time point when the manoeuvre
* state is predicted to change
* <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
* containing timing
* containing minEndTime
* indicating time point when state can be changed
* }
* }
* </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], clause 6.7.11
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_09 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
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 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>
Bostjan Pintar
committed
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_TIMING
* Initial conditions:
* with {
* TODO
* }
* Expected behaviour:
* ensure that {
* when {
* TODO
* }
* then {
* TODO
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_10
* @reference CEN ISO/TS 19091 [4], clauses 6.7.13, 6.7.14
*/
testcase TC_IS_TLM_GEN_MSGF_BV_10 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_10();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_10
/**
* @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>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_11
* @reference CEN ISO/TS 19091 [4], clauses G.5.1.4 and G.8.2.5.2
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_11 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
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 For each manoeuvre at a signalized intersection, an IUT shall indicate if one or more
* pedestrians have been detected in the pedestrian crossing
* <pre>
Bostjan Pintar
committed
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
* Pics Selection: PICS_SPATEM_GENERATION and PICS_SPATEM_PEDESTRIAN_MAOEUVRES
* Initial conditions:
* with {
* TODO
* }
* Expected behaviour:
* ensure that {
* when {
* TODO
* }
* then {
* TODO
* }
* }
* </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
*/
testcase TC_IS_TLM_GEN_MSGF_BV_12 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_12();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_12
/**
* @desc For each manoeuvre at a signalized intersection, an IUT shall transmit an indication if a
* pedestrian call (request) has been detected in the pedestrian crossing
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_PEDESTRIAN_MAOEUVRES
* Initial conditions:
* with {
* TODO
* }
* Expected behaviour:
* ensure that {
* when {
* TODO
* }
* then {
* TODO
* }
* }
* </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.17
*/
testcase TC_IS_TLM_GEN_MSGF_BV_13 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_13();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_13
/**
* @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>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_14
* @reference CEN ISO/TS 19091 [4], clauses 6.7.18
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_14 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
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
* @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>
*
Bostjan Pintar
committed
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_15
* @reference CEN ISO/TS 19091 [4], clauses 6.7.19
*/
Bostjan Pintar
committed
testcase TC_IS_TLM_GEN_MSGF_BV_15 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
Bostjan Pintar
committed
f_IS_TLM_GEN_MSGF_BV_15();
Bostjan Pintar
committed
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_15
Bostjan Pintar
committed
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
/**
* @desc An IUT shall transmit the length of the queue and the length of available vehicular storage
* on each egress lane.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_EGRESS_QUEUE
* Initial conditions:
* with {
* TODO
* }
* Expected behaviour:
* ensure that {
* when {
* TODO
* }
* then {
* TODO
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_16
* @reference CEN ISO/TS 19091 [4], clauses 6.7.20, 6.7.21
*/
testcase TC_IS_TLM_GEN_MSGF_BV_16 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_16();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_16
/**
* @desc An IUT shall determine whether there is available storage on an egress lane.
* <pre>
* Pics Selection: PICS_SPATEM_GENERATION AND PICS_SPATEM_HAS_EGRESS_QUEUE
* Initial conditions:
* with {
* TODO
* }
* Expected behaviour:
* ensure that {
* when {
* TODO
* }
* then {
* TODO
* }
* }
* </pre>
*
* @version 1.1.1
* @see ETSI TS 103 191-2 v1.2.5 TP_IS_TLM_GEN_MSGF_BV_17
* @reference CEN ISO/TS 19091 [4], clause 6.7.22
*/
testcase TC_IS_TLM_GEN_MSGF_BV_17 () runs on ItsMapemSpatem system ItsMapemSpatemSystem {
f_IS_TLM_GEN_MSGF_BV_17();
} // End of testcase TC_IS_TLM_GEN_MSGF_BV_17
} // 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
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 {