Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
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
345
346
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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
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
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
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
754
755
756
757
758
759
760
761
762
763
764
765
766
767
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
/**
* @author ETSI / STF455
* @version $URL$
* $Id$
* @desc Testcases for Access Technology Support Protocols (ISO 21218) (TP version: 1.1.2 - v06)
*
*/
module ItsAtsp_TestCases {
// Libcommon
import from LibItsCalm_Interface all;
import from LibCommon_Sync all;
import from LibCommon_BasicTypesAndValues {
type UInt8
};
// LibIts
import from LibItsAtsp_Pics all;
import from LibItsAtsp_Pixits all;
import from LibItsAtsp_Templates all;
import from LibItsAtsp_TypesAndValues all;
import from LibItsAtsp_Functions all;
import from LibItsAtsp_Pixits all;
import from LibItsCalm_TestSystem {
type ItsCalmSystem
};
import from LibItsCalm_Interface {
type ItsCalm
};
import from LibItsMgt_Functions {
function f_getNextCommandRef
};
import from LibItsMgt_TypesAndValues {
type IParamNoList, IParamList
};
// ASN.1 modules
import from CALMllsap language "ASN.1:1997" {
type
Link_ID, MedType, CIstatus, VirtualCIs,
IN_UNITDATA_request,
I_Param, DataRate, Errors,
UserPriority,
INsapPrimitivesUp,
RemoteCIID
};
import from CALMmsap language "ASN.1:1997" {
type
MI_Command_request, MI_Command_confirm
};
// State event transitions
group stateEventTransitions {
group validBehavior {
/**
* @desc TP: IUT with CI supporting 48-bit MAC addresses registers correctly at the management entity
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_DYNREG AND PICS_MAC48
* Initial conditions:
* with {
* the IUT being in the CI state "not-existent"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT starts operation
* }
* then {
* the IUT registers properly at the ITS-S management
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT presented the state "registered" to the ITS-S management
* }
* then {
* the IUT has a LocalCIID representing the 48 bit MAC address of the IUT
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/01
* @remark to be created
*/
testcase TC_ATSP_SE_BV_01() runs on ItsCalm system ItsCalmSystem {
// Local variables
// Test control
if (not(PICS_DYNREG and PICS_MAC48)) {
log("*** TC_ATSP_SE_BV_01: ERROR: 'PICS_DYNREG' and 'PICS_MAC48' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
log("*** TC_ATSP_SE_BV_01: INFO: Waiting for power-on of IUT ***");
// Clause 'then'
// Wait for MI-Request.request "RegReq"
f_cnAwaitAndConfirmMI_RequestCI(mw_miRegRequest(f_get_CI_LinkID(), ?, m_regRequest(PX_CI_MED_TYPE)), true);
// Reply MI-Command.request "RegCmd"
f_cnSendMICOMMAND_RequestCheckSuccessCI(m_miRegistrationCommandRequest(
f_get_CI_LinkID(),
f_getNextCommandRef(),
m_regCommand(PX_ITS_SCU_ID, PX_CI_MED_TYPE)), true);
// Clause 'when'
// the IUT registers properly at the ITS-S management
// the IUT presented the state "registered" to the ITS-S management
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusRegistered)), true);
//Clause 'then'
// the IUT has a LocalCIID representing the 48 bit MAC address of the IUT
// Try to address the VCI using the expected Link-ID. Return value is not used.
f_cnGetCiStatusParameterValueCI(f_get_CI_LinkID());
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_01: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_01: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_01
/**
* @desc TP: IUT with CI not supporting 48-bit MAC addresses registers correctly at the management entity
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_DYNREG AND NOT PICS_MAC48
* Initial conditions:
* with {
* the IUT being in the CI state "not-existent"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT starts operation
* }
* then {
* the IUT registers properly at the ITS-S management
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT presented the state "registered" to the ITS-S management
* }
* then {
* the IUT has a LocalCIID created from ITS-SCU-ID and MedID
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/02
* @remark to be created
*/
testcase TC_ATSP_SE_BV_02() runs on ItsCalm system ItsCalmSystem {
// Local variables
// Test control
if (not(PICS_DYNREG and not PICS_MAC48)) {
log("*** TC_ATSP_SE_BV_02: ERROR: 'PICS_DYNREG' and NOT 'PICS_MAC48' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'then'
// Wait for MI-Request.request "RegReq"
f_cnAwaitAndConfirmMI_RequestCI(mw_miRegRequest(f_get_CI_LinkID(), ?, m_regRequest(PX_CI_MED_TYPE)), true);
// Reply MI-Command.request "RegCmd"
f_cnSendMICOMMAND_RequestCheckSuccessCI(m_miRegistrationCommandRequest(
f_get_CI_LinkID(),
f_getNextCommandRef(),
m_regCommand(PX_ITS_SCU_ID, PX_CI_MED_TYPE)), false);
//Clause 'when'
//the IUT registers properly at the ITS-S management
// the IUT presented the state "registered" to the ITS-S management
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusRegistered)), true);
//Clause 'then'
// the IUT has a LocalCIID created from ITS-SCU-ID and MedID
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_02: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_02: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_02
/**
* @desc TP: IUT repeats registration as long as management entity does not confirm it
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_DYNREG
* Initial conditions:
* with {
* the IUT being in the CI state "not-existent"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT starts operation
* }
* then {
* the IUT repeats continuously the registration procedure as long as the ITS-S management does not confirm with MI-COMMAND "RegCmd"
* }
* }
*
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/03
* @remark to be created
*/
testcase TC_ATSP_SE_BV_03() runs on ItsCalm system ItsCalmSystem {
// Local variables
var boolean v_discard;
var integer v_messageCounter;
// Test control
if (not(PICS_DYNREG)) {
log("*** TC_ATSP_SE_BV_03: ERROR: 'PICS_DYNREG' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
log("*** TC_ATSP_SE_BV_03: INFO: Waiting for power-on of IUT ***");
// Clause 'then'
for(v_messageCounter := 0; v_messageCounter < 5; v_messageCounter := v_messageCounter + 1) {
// Wait for MI-Request.request "RegReq"
f_cnAwaitAndConfirmMI_RequestCI(mw_miRegRequest(f_get_CI_LinkID(), ?, m_regRequest(PX_CI_MED_TYPE)), true);
}
// Reply MI-Command.request "RegCmd"
f_cnSendMICOMMAND_RequestCheckSuccessCI(m_miRegistrationCommandRequest(
f_get_CI_LinkID(),
f_getNextCommandRef(),
m_regCommand(PX_ITS_SCU_ID, PX_CI_MED_TYPE)), false);
// Check for reception of Status notification (I-Parameter 12 "CIstatus" set to "registered".
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusRegistered)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_03: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_03: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_03
/**
* @desc TP: IUT with CI class "CIC-l2" automatically creates a UC-VCI and reaches the CI state "active"
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_CIC_l2
* Initial conditions:
* with {
* the IUT being in the CI state "not-existent"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT has finished the registration procedure
* }
* then {
* the IUT creates a UC-VCI
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT created a UC-VCI
* }
* then {
* the IUT is in the state "active"
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/04
* @remark to be created
*/
testcase TC_ATSP_SE_BV_04() runs on ItsCalm system ItsCalmSystem {
// Local variables
var integer v_messageCounter;
// Test control
if (not(PICS_CIC_l2)) {
log("*** TC_ATSP_SE_BV_04: ERROR: 'PICS_CIC_l2' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
// the IUT has finished the registration procedure
f_cnAwaitRegistrationCI(f_get_CI_LinkID(), PX_CI_MED_TYPE, true);
// Clause 'then'
//the IUT creates a UC-VCI(applying MAC unicast communications)
//TODO: Cecking for a UC-VCI
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_UC, f_get_CI_Local_CIID())), true);
// Clause 'then'
// the IUT is in the state "active"
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusActive)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_04: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_04: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_04
/**
* @desc TP: IUT with CI class "CIC-l3" automatically creates a BC-VCI and reaches the CI state "active"
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_CIC_l3
* Initial conditions:
* with {
* the IUT being in the CI state "not-existent"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT has finished the registration procedure
* }
* then {
* the IUT creates a BC-VCI
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT created a BC-VCI
* }
* then {
* the IUT is in the state "active"
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/05
* @remark to be created
*/
testcase TC_ATSP_SE_BV_05() runs on ItsCalm system ItsCalmSystem {
// Local variables
var integer v_messageCounter;
// Test control
if (not(PICS_CIC_l3)) {
log("*** TC_ATSP_SE_BV_05: ERROR: 'PICS_CIC_l3' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
f_cnAwaitRegistrationCI(f_get_CI_LinkID(), PX_CI_MED_TYPE, true);
// Clause 'then'
//the IUT creates a BC-VCI(applying MAC broadcast communications)
//TODO: checking for BC-VCI
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_BC, f_get_CI_Local_CIID())), true);
// Clause 'then'
// the IUT is in the state "active"
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusActive)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_05: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_05: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_05
/**
* @desc TP: IUT with CI class "CIC-l4" automatically creates a RX-VCI and reaches the CI state "active"
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_CIC_l4
* Initial conditions:
* with {
* he IUT being in the CI state "registered"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT has finished the registration procedure
* }
* then {
* the IUT creates a RX-VCI
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT created a BC-VCI
* }
* then {
* the IUT is in the state "active"
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/06
* @remark to be created
*/
testcase TC_ATSP_SE_BV_06() runs on ItsCalm system ItsCalmSystem {
// Local variables
var integer v_messageCounter;
// Test control
if (not(PICS_CIC_l4)) {
log("*** TC_ATSP_SE_BV_06: ERROR: 'PICS_CIC_l4' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
f_cnAwaitRegistrationCI(f_get_CI_LinkID(), PX_CI_MED_TYPE, true);
// Clause 'then'
//the IUT creates a RX-VCI
// this is given by notification of the status "active"
// Clause 'then'
// the IUT is in the state "active"
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusActive)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_06: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_06: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_06
/**
* @desc TP: IUT with CI class "CIC-l1"or "CIC-il1" automatically creates a UC-VCI and a BC-VCI and reaches the CI state "active"
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_CIC_l1 OR PICS_CIC_il1
* Initial conditions:
* with {
* the IUT being in the CI state "registered", and MAC multicast groups are not known to the IUT
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT has finished the registration procedure
* }
* then {
* the IUT creates a UC-VCI and a BC-VCI
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT created a UC-VCI and a BC-VCI
* }
* then {
* the IUT is in the state "active"
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/07
* @remark to be created
*/
testcase TC_ATSP_SE_BV_07() runs on ItsCalm system ItsCalmSystem {
// Local variables
var CfAtspEventInd v_result;
var template CfAtspEventInd v_cf_UC_VCI_Event;
var boolean v_UC_VCI_created;
var template CfAtspEventInd v_cf_BC_VCI_Event;
var boolean v_BC_VCI_created;
var boolean v_discard := true;
// Test control
if (not(PICS_CIC_l1 or PICS_CIC_il1)) {
log("*** TC_ATSP_SE_BV_07: ERROR: 'PICS_CIC_l1' OR 'PICS_CIC_il1' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
f_cnAwaitRegistrationCI(f_get_CI_LinkID(), PX_CI_MED_TYPE, true);
// Clause 'then'
//the IUT creates a BC-VCI(applying MAC broadcast communications)
v_UC_VCI_created := false;
v_BC_VCI_created := false;
//TODO: UC-VCI and a BC-VCI correct template values, how to distinguish between UC and BC?
v_cf_UC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(f_get_CI_LinkID(), ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_UC, f_get_CI_Local_CIID()))));
v_cf_BC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(f_get_CI_LinkID(), ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_BC, f_get_CI_Local_CIID()))));
log("*** TC_ATSP_SE_BV_07: INFO: Expected MI-Request-request: ", v_cf_UC_VCI_Event, " ***");
log("*** TC_ATSP_SE_BV_07: INFO: Expected MI-Request-request: ", v_cf_BC_VCI_Event, " ***");
tc_wait.start;
alt {
[not v_UC_VCI_created] cfPort.receive(v_cf_UC_VCI_Event) -> value v_result {
v_UC_VCI_created := true;
log("*** TC_ATSP_SE_BV_07: INFO: Expected UC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_BC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[not v_BC_VCI_created] cfPort.receive(v_cf_BC_VCI_Event) -> value v_result {
v_BC_VCI_created := true;
log("*** TC_ATSP_SE_BV_07: INFO: Expected BC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_UC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[] cfPort.receive(CfAtspEventInd : ?) -> value v_result {
if (v_discard == false) {
tc_wait.stop;
log("*** TC_ATSP_SE_BV_07: ERROR: An unexpected MI-REQUEST was received ***", v_result);
f_selfOrClientSyncAndVerdict("error", e_timeout); // to be checked
} else {
log("*** TC_ATSP_SE_BV_07: INFO: An unexpected MI-REQUEST was received, repeating check ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
repeat;
}
}
[] tc_wait.timeout {
log("*** TC_ATSP_SE_BV_07: ERROR: Timeout while waiting for event check result ***");
f_selfOrClientSyncAndVerdict("error", e_timeout); // to be checked
}
} // End of 'alt' statement
// Clause 'then'
// the IUT is in the state "active"
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusActive)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_07: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_07: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_07
/**
* @desc TP: IUT with CI class "CIC-l3" automatically creates a BC-VCI and known MC-VCIs and reaches the CI state "active"
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_CIC_l3 AND PICS_MCVCI
* Initial conditions:
* with {
* the IUT being in the CI state "registered", and at least one MAC multicast group is known to the IUT
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT has finished the registration procedure
* }
* then {
* the IUT creates a BC-VCI and a MC-VCI for each known MAC multicast group
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT created a BC-VCI and the MC-VCI(s)
* }
* then {
* the IUT is in the state "active"
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/08
* @remark to be created
*/
testcase TC_ATSP_SE_BV_08() runs on ItsCalm system ItsCalmSystem {
// Local variables
var integer v_messageCounter;
var CfAtspEventInd v_result;
var template CfAtspEventInd v_cf_BC_VCI_Event;
var boolean v_BC_VCI_created;
var template CfAtspEventInd v_cf_MC_VCI_Event;
var boolean v_MC_VCI_created;
var boolean v_discard := true;
// Test control
if (not(PICS_CIC_l3 and PICS_MCVCI)) {
log("*** TC_ATSP_SE_BV_08: ERROR: 'PICS_CIC_l3' OR 'PICS_MCVCI' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
f_cnAwaitRegistrationCI(f_get_CI_LinkID(), PX_CI_MED_TYPE, true);
// Clause 'then'
//the IUT creates a BC-VCI(applying MAC broadcast communications)
v_BC_VCI_created := false;
v_MC_VCI_created := false;
v_cf_BC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(mw_miLinkIndAny, ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_BC, f_get_CI_Local_CIID()))));
v_cf_MC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(mw_miLinkIndAny, ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_MC, f_get_CI_Local_CIID()))));
log("*** TC_ATSP_SE_BV_08: INFO: Expected MI-Request-request: ", v_cf_BC_VCI_Event, " ***");
log("*** TC_ATSP_SE_BV_08: INFO: Expected MI-Request-request: ", v_cf_MC_VCI_Event, " ***");
tc_wait.start;
alt {
[not v_BC_VCI_created] cfPort.receive(v_cf_BC_VCI_Event) -> value v_result {
v_BC_VCI_created := true;
log("*** TC_ATSP_SE_BV_08: INFO: Expected BC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_MC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[not v_MC_VCI_created] cfPort.receive(v_cf_MC_VCI_Event) -> value v_result{
v_MC_VCI_created := true;
log("*** TC_ATSP_SE_BV_08: INFO: Expected MC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_BC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[] cfPort.receive(mw_miEventMI_RequestRequest_any) -> value v_result {
if (v_discard == false) {
tc_wait.stop;
log("*** TC_ATSP_SE_BV_08: ERROR: An unexpected MI-REQUEST was received ***", v_result);
f_selfOrClientSyncAndVerdict("error", e_timeout); // to be checked
} else {
log("*** TC_ATSP_SE_BV_08: INFO: An unexpected MI-REQUEST was received, repeating check ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
repeat;
}
}
[] tc_wait.timeout {
log("*** TC_ATSP_SE_BV_08: ERROR: Timeout while waiting for event check result ***");
f_selfOrClientSyncAndVerdict("error", e_timeout); // to be checked
}
} // End of 'alt' statement
// Clause 'then'
// the IUT is in the state "active"
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusActive)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_08: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_08: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_08
/**
* @desc TP: IUT with CI class "CIC-l1" or "CIC-il1" automatically creates a UC-VCI and a BC-VCI and known MC-VCIs and reaches the CI state "active"
* @author STF 455
* @config
*
* <pre>
* PICS selection: (PICS_CIC_l1 OR PICS_CIC_il1) AND PICS_MCVCI
* Initial conditions:
* with {
* the IUT being in the CI state "registered", and at least one MAC multicast group is known to the IUT
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT has finished the registration procedure
* }
* then {
* the IUT creates a UC-VCI and a BC-VCI and the MC-VCI(s)
* }
* }
*
* Final conditions:
* ensure that {
* when {
* the IUT created a UC-VCI and a BC-VCI and the MC-VCIs
* }
* then {
* the IUT is in the state "active"
* }
* }
* </pre>
*
* @version 2013-05-07.0
* @since 2013-05-07.0
* @status empty test case
* @reference ETSI TS 102 760-2 v1.1.2_STF455_v06 SE/BV/09
* @remark to be created
*/
testcase TC_ATSP_SE_BV_09() runs on ItsCalm system ItsCalmSystem {
// Local variables
var boolean v_discard;
var CfAtspEventInd v_result;
var template CfAtspEventInd v_cf_UC_VCI_Event;
var boolean v_UC_VCI_created;
var template CfAtspEventInd v_cf_BC_VCI_Event;
var boolean v_BC_VCI_created;
var template CfAtspEventInd v_cf_MC_VCI_Event;
var boolean v_MC_VCI_created;
// Test control
if (not((PICS_CIC_l1 or PICS_CIC_il1)and PICS_MCVCI)) {
log("*** TC_ATSP_SE_BV_09: ERROR: ('PICS_CIC_l1' OR 'PICS_CIC_il1') AND 'PICS_MCVCI' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
// Request operator to switch on the SUT or to activate the IUT
action("Switch on SUT or activate IUT");
// Test Body
// Clause 'when'
f_cnAwaitRegistrationCI(f_get_CI_LinkID(), PX_CI_MED_TYPE, true);
// Clause 'when'
v_UC_VCI_created := false;
v_BC_VCI_created := false;
v_MC_VCI_created := false;
//TODO: correct template values for UC-VCI, BC-VCI and MC-VCI
v_cf_UC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(mw_miLinkIndAny, ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_UC, f_get_CI_Local_CIID()))));
v_cf_BC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(mw_miLinkIndAny, ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_BC, f_get_CI_Local_CIID()))));
v_cf_MC_VCI_Event := mw_cfAtspRequestRequest(
mw_miEventsRequest(mw_miLinkIndAny, ?, mw_miEvent21218_3(mw_miVCICreDelRes(PX_REMOTE_CIID_MC, f_get_CI_Local_CIID()))));
log("*** TC_ATSP_SE_BV_09: INFO: Expected MI-Request-request: ", v_cf_UC_VCI_Event, " ***");
log("*** TC_ATSP_SE_BV_09: INFO: Expected MI-Request-request: ", v_cf_BC_VCI_Event, " ***");
log("*** TC_ATSP_SE_BV_09: INFO: Expected MI-Request-request: ", v_cf_MC_VCI_Event, " ***");
tc_wait.start;
alt {
[not v_UC_VCI_created] cfPort.receive(v_cf_UC_VCI_Event) -> value v_result {
v_UC_VCI_created := true;
log("*** TC_ATSP_SE_BV_09: INFO: Expected UC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_BC_VCI_created or not v_MC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[not v_BC_VCI_created] cfPort.receive(v_cf_BC_VCI_Event) -> value v_result{
v_BC_VCI_created := true;
log("*** TC_ATSP_SE_BV_09: INFO: Expected BC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_UC_VCI_created or not v_MC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[not v_MC_VCI_created] cfPort.receive(v_cf_MC_VCI_Event) -> value v_result{
v_MC_VCI_created := true;
log("*** TC_ATSP_SE_BV_09: INFO: Expected MC-VCI creation event received ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
if(not v_UC_VCI_created or not v_BC_VCI_created)
{
tc_wait.start;
repeat;
}
tc_wait.stop;
}
[] cfPort.receive(mw_miEventMI_RequestRequest_any) -> value v_result {
if (v_discard == false) {
tc_wait.stop;
log("*** TC_ATSP_SE_BV_09: ERROR: An unexpected MI-REQUEST was received ***", v_result);
f_selfOrClientSyncAndVerdict("error", e_timeout); // to be checked
} else {
log("*** TC_ATSP_SE_BV_09: INFO: An unexpected MI-REQUEST was received, repeating check ***");
f_cnConfirmMI_RequestCI(m_cfAtspRequestConfirm(v_result.miRequestRequest, c_ciErrStatusSuccess));
repeat;
}
}
[] tc_wait.timeout {
log("*** TC_ATSP_SE_BV_09: ERROR: Timeout while waiting for event check result ***");
f_selfOrClientSyncAndVerdict("error", e_timeout); // to be checked
}
} // End of 'alt' statement
// Clause 'then'
// the IUT is in the state "active"
f_cnAwaitEventNotificationCI(f_get_CI_LinkID(), mw_miEvent21218_5(mw_miCIStatusParam(c_ciStatusActive)), true);
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
log("*** TC_ATSP_SE_BV_09: INFO: test body done ***");
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_SE_BV_09: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_SE_BV_09
/**
* @desc TP: IUT deregisters correctly from the management entity
* @author STF 455
* @config
*
* <pre>
* PICS selection: PICS_DYNREG
* Initial conditions:
* with {
* the IUT being in the CI state different to "existent" or "not_existent"
* }
*
* Expected behaviour:
* ensure that {
* when {
* the IUT receives the COMMAND "CIstateChng" with the value "deregister"
* }
* then {
* the IUT performs deregistration