Newer
Older
* @desc This module provides test functions for NGAP tests.
* @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.
* @see ETSI TS 138 413 / 3GPP TS 38.413 version 16.12 Release 16
// LibCommon
import from LibCommon_Sync all;
import from LibCommon_VerdictControl all;
import from LibCommon_Time all;
// LibNGAP
import from NGAP_IEs language "ASN.1:2002" all;
import from NGAP_Constants language "ASN.1:2002" all;
import from LibNGAP_Pixits all;
import from LibNGAP_Templates all;
import from LibNGAP_Interface all;
import from LibNGAP_Steps all;
// NGAP_Ats
import from NGAP_Steps all;
import from NGAP_Pixits all;
* @desc Testcase function for TC_NGAP_gNB_or_aMF_functionName_01
function f_TC_NGAP_gNB_or_aMF_functionName_01() runs on NGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
//f_send_NGAP_PDU(m_ngap_initMsg(/*initiating msgtemplate*/));
//f_recv_NGAP_PDU(?);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_or_aMF_functionName_01
} // End of group TC_function_template
group gNB_Role{
//8.2
group PDU_Session_Management_Procedures{
//8.2.1
group PDU_Session_Resource_Setup{
* @desc Testcase function for TC_NGAP_gNB_PDU_01
*/
function f_TC_NGAP_GNB_PDU_01() runs on aMFNGAPComponent {
// Local variables
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
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
-,
-,
{
m_pDUSessionResourceSetupItemSUReq(
-,
m_s_NSSAI('00'O, '000000'O),
bit2oct(
encvalue(
m_pDUSessionResourceSetupRequestTransfer(
m_pDUSessionResourceSetupRequestTransfer_mandatories(
m_pDUSessionType(ipv4),
{
m_qosFlowSetupRequestItem(
PX_QOS_FLOW_IDENTIFIER,
m_qosFlowLevelQosParameters(
m_qosCharacteristics_dynamic5QI(
m_dynamic5QIDescriptor(
1,//in template (value) PriorityLevelQos p_priorityLevelQos,
0,//in template (value) PacketDelayBudget p_packetDelayBudget,
m_PacketErrorRate(
0,//in template (value) PacketErrorRate.pERScalar p_pERScalar,
0//in template (value) PacketErrorRate.pERExponent p_pERExponent
))),
m_allocationAndRetentionPriority(
1,//in template (value) PriorityLevelARP p_priorityLevelARP,
shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability,
not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability,
)))
},
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel
))))))
}
)));
-,
-,
//? //TODO replace with template
{
(mw_pDUSessionResourceSetupItemSURes(
?,//template (present) PDUSessionID p_pDUSessionID,
//mw_pDUSessionResourceSetupResponseTransfer(
// ?,//template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?,
// *,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
// *,//template SecurityResult p_securityResult := *,
// *,//template QosFlowListWithCause p_qosFlowFailedToSetupList := *,
// *//template PDUSessionResourceSetupResponseTransfer.iE_Extensions p_iE_Extensions := *
// ), In ASN1 it is OCTET STRING - PDUSessionResourceSetupResponseTransfer
?,//template (present) PDUSessionResourceSetupItemSURes.pDUSessionResourceSetupResponseTransfer p_pDUSessionResourceSetupResponseTransfer := ?,
*//template PDUSessionResourceSetupItemSURes.iE_Extensions p_iE_Extensions := *
)
)
}
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_02
*/
function f_TC_NGAP_GNB_PDU_02() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
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
m_ngap_initMsg(
m_n2_PDUSessionResourceSetupRequest(
-,
-,
{
m_pDUSessionResourceSetupItemSUReq(
-,
m_s_NSSAI('00'O, '000000'O),
bit2oct(
encvalue(
m_pDUSessionResourceSetupRequestTransfer(
m_pDUSessionResourceSetupRequestTransfer_mandatories(
m_pDUSessionType(ipv4),
{
m_qosFlowSetupRequestItem(
PX_QOS_FLOW_IDENTIFIER,
m_qosFlowLevelQosParameters(
m_qosCharacteristics_dynamic5QI(
m_dynamic5QIDescriptor(
1,//in template (value) PriorityLevelQos p_priorityLevelQos,
0,//in template (value) PacketDelayBudget p_packetDelayBudget,
m_PacketErrorRate(
0,//in template (value) PacketErrorRate.pERScalar p_pERScalar,
0//in template (value) PacketErrorRate.pERExponent p_pERExponent
))),
m_allocationAndRetentionPriority(
1,//in template (value) PriorityLevelARP p_priorityLevelARP,
shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability,
not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability,
)))
},
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel
)))))),
m_pDUSessionResourceSetupItemSUReq(
-,
m_s_NSSAI('00'O, '000000'O),
bit2oct(
encvalue(
m_pDUSessionResourceSetupRequestTransfer(
m_pDUSessionResourceSetupRequestTransfer_mandatories(
m_pDUSessionType(ipv4),
{
m_qosFlowSetupRequestItem(
PX_QOS_FLOW_IDENTIFIER,
m_qosFlowLevelQosParameters(
m_qosCharacteristics_dynamic5QI(
m_dynamic5QIDescriptor(
1,//in template (value) PriorityLevelQos p_priorityLevelQos,
0,//in template (value) PacketDelayBudget p_packetDelayBudget,
m_PacketErrorRate(
0,//in template (value) PacketErrorRate.pERScalar p_pERScalar,
0//in template (value) PacketErrorRate.pERExponent p_pERExponent
))),
m_allocationAndRetentionPriority(
1,//in template (value) PriorityLevelARP p_priorityLevelARP,
shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability,
not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability,
)))
},
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel
))))))
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceSetupResponse(
-,
-,
//? //TODO replace with template
{
*
//FIXME: when template Ready
//mw_pDUSessionResourceFailedToSetupItemSURes(
// ?,
// ?,
// *
//)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
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
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_03
*/
function f_TC_NGAP_GNB_PDU_03() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceSetupRequest(
-,
-,
{
m_pDUSessionResourceSetupItemSUReq(
-,
m_s_NSSAI('00'O, '000000'O),
bit2oct(
encvalue(
m_pDUSessionResourceSetupRequestTransfer(
m_pDUSessionResourceSetupRequestTransfer_mandatories(
m_pDUSessionType(ipv4),
{
m_qosFlowSetupRequestItem(
PX_QOS_FLOW_IDENTIFIER,
m_qosFlowLevelQosParameters(
m_qosCharacteristics_dynamic5QI(
m_dynamic5QIDescriptor(
1,//in template (value) PriorityLevelQos p_priorityLevelQos,
0,//in template (value) PacketDelayBudget p_packetDelayBudget,
m_PacketErrorRate(
0,//in template (value) PacketErrorRate.pERScalar p_pERScalar,
0//in template (value) PacketErrorRate.pERExponent p_pERExponent
))),
m_allocationAndRetentionPriority(
1,//in template (value) PriorityLevelARP p_priorityLevelARP,
shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability,
not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability,
)))
},
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel
))))))
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceSetupResponse(
-,
-,
//? //TODO replace with template
{
mw_pDUSessionResourceSetupItemSURes(
?,//template (present) PDUSessionID p_pDUSessionID,
//mw_pDUSessionResourceSetupResponseTransfer(
// ?,//template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?,
// *,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
// *,//template SecurityResult p_securityResult := *,
// *,//template QosFlowListWithCause p_qosFlowFailedToSetupList := *,
// *//template PDUSessionResourceSetupResponseTransfer.iE_Extensions p_iE_Extensions := *
// ), In ASN1 it is OCTET STRING - PDUSessionResourceSetupResponseTransfer
?,//template (present) PDUSessionResourceSetupItemSURes.pDUSessionResourceSetupResponseTransfer p_pDUSessionResourceSetupResponseTransfer := ?,
*//template PDUSessionResourceSetupItemSURes.iE_Extensions p_iE_Extensions := *
)
}
)
)
);
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceSetupRequest(
-,
-,
{
m_pDUSessionResourceSetupItemSUReq(
-,
m_s_NSSAI('00'O, '000000'O),
bit2oct(
encvalue(
m_pDUSessionResourceSetupRequestTransfer(
m_pDUSessionResourceSetupRequestTransfer_mandatories(
m_pDUSessionType(ipv4),
{
m_qosFlowSetupRequestItem(
PX_QOS_FLOW_IDENTIFIER,
m_qosFlowLevelQosParameters(
m_qosCharacteristics_dynamic5QI(
m_dynamic5QIDescriptor(
1,//in template (value) PriorityLevelQos p_priorityLevelQos,
0,//in template (value) PacketDelayBudget p_packetDelayBudget,
m_PacketErrorRate(
0,//in template (value) PacketErrorRate.pERScalar p_pERScalar,
0//in template (value) PacketErrorRate.pERExponent p_pERExponent
))),
m_allocationAndRetentionPriority(
1,//in template (value) PriorityLevelARP p_priorityLevelARP,
shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability,
not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability,
)))
},
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel
))))))
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceSetupResponse(
-,
-,
//? //TODO replace with template
{
*
//FIXME: when template Ready
//mw_pDUSessionResourceFailedToSetupItemSURes(
// ?,
// ?,
// *
//)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_03
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_04
*/
function f_TC_NGAP_GNB_PDU_04() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceSetupRequest(
-,
-,
{
m_pDUSessionResourceSetupItemSUReq(
-,
m_s_NSSAI('00'O, '000000'O),
bit2oct(
encvalue(
m_pDUSessionResourceSetupRequestTransfer(
m_pDUSessionResourceSetupRequestTransfer_mandatories(
m_pDUSessionType(ipv4),
{
m_qosFlowSetupRequestItem(
PX_QOS_FLOW_IDENTIFIER, //FIXME nonGBRQosID
m_qosFlowLevelQosParameters(
m_qosCharacteristics_dynamic5QI(
m_dynamic5QIDescriptor(
1,//in template (value) PriorityLevelQos p_priorityLevelQos,
0,//in template (value) PacketDelayBudget p_packetDelayBudget,
m_PacketErrorRate(
0,//in template (value) PacketErrorRate.pERScalar p_pERScalar,
0//in template (value) PacketErrorRate.pERExponent p_pERExponent
))),
m_allocationAndRetentionPriority(
1,//in template (value) PriorityLevelARP p_priorityLevelARP,
shall_not_trigger_pre_emption,//in template (value) Pre_emptionCapability p_pre_emptionCapability,
not_pre_emptable//in template (value) Pre_emptionVulnerability p_pre_emptionVulnerability,
)))
},
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel
))))))
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceSetupResponse(
-,
-,
//? //TODO replace with template
{
*
//FIXME: when template Ready
//mw_pDUSessionResourceFailedToSetupItemSURes(
// ?,
// ?,
// *
//)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_04
} // End of group PDU_Session_Resource_Setup
//8.2.2
group PDU_Session_Resource_Release{
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
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_05
*/
function f_TC_NGAP_GNB_PDU_05() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceReleaseCommand(
-,
-,
{
m_pDUSessionResourceToReleaseItemRelCmd(
PX_PDU_SESSION_ID,
bit2oct(
encvalue(
m_pDUSessionResourceReleaseCommandTransfer(
m_cause_misc(m_causeMisc(-)),
-//in template (omit) PDUSessionResourceReleaseCommandTransfer.iE_Extensions p_iE_Extensions := omit
)
)
),
- //in template (omit) PDUSessionResourceToReleaseItemRelCmd.iE_Extensions p_iE_Extensions := omit
)
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceReleaseResponse(
-,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
-,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
(
mw_pDUSessionResourceReleasedItemRelRes(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
-,//bit2oct(encvalue(mw_pDUSessionResourceReleaseResponseTransfer(*))),//template (present) PDUSessionResourceReleasedItemRelRes.pDUSessionResourceReleaseResponseTransfer p_pDUSessionResourceReleaseResponseTransfer := ?,
-//template PDUSessionResourceReleasedItemRelRes.iE_Extensions p_iE_Extensions := *
)
)
}//template (present) PDUSessionResourceReleasedListRelRes p_pDUSessionResourceReleasedListRelRes := ?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_05
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_06
*/
function f_TC_NGAP_GNB_PDU_06() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceReleaseCommand(
-,
-,
{
m_pDUSessionResourceToReleaseItemRelCmd(
PX_PDU_SESSION_ID,
bit2oct(
encvalue(
m_pDUSessionResourceReleaseCommandTransfer(
m_cause_misc(m_causeMisc(-)),
-//in template (omit) PDUSessionResourceReleaseCommandTransfer.iE_Extensions p_iE_Extensions := omit
)
)
),
- //in template (omit) PDUSessionResourceToReleaseItemRelCmd.iE_Extensions p_iE_Extensions := omit
),
m_pDUSessionResourceToReleaseItemRelCmd(
PX_PDU_SESSION_ID,
bit2oct(
encvalue(
m_pDUSessionResourceReleaseCommandTransfer(
m_cause_misc(m_causeMisc(-)),
-//in template (omit) PDUSessionResourceReleaseCommandTransfer.iE_Extensions p_iE_Extensions := omit
)
)
),
- //in template (omit) PDUSessionResourceToReleaseItemRelCmd.iE_Extensions p_iE_Extensions := omit
)
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceReleaseResponse(
-,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
-,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
(
mw_pDUSessionResourceReleasedItemRelRes(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
-,//bit2oct(encvalue(mw_pDUSessionResourceReleaseResponseTransfer(*))),//template (present) PDUSessionResourceReleasedItemRelRes.pDUSessionResourceReleaseResponseTransfer p_pDUSessionResourceReleaseResponseTransfer := ?,
-//template PDUSessionResourceReleasedItemRelRes.iE_Extensions p_iE_Extensions := *
)
)
}//template (present) PDUSessionResourceReleasedListRelRes p_pDUSessionResourceReleasedListRelRes := ?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_06
} // End of group PDU_Session_Resource_Release
//8.2.3
group PDU_Session_Resource_Modify{
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
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_07
*/
function f_TC_NGAP_GNB_PDU_07() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceModify(
-,
-,
{
m_pDUSessionResourceModifyItemModReq(
PX_PDU_SESSION_ID,
'00'O,//bit2oct(
// encvalue(
// m_pDUSessionResourceModifyRequestTransfer(//FIXME when template with mandatory IEs available
// -//in template (omit) PDUSessionResourceModifyRequestTransfer.protocolIEs p_protocolIEs
// )
// )
//),
-,//in template (omit) NAS_PDU p_nAS_PDU := omit,
-//in template (omit) PDUSessionResourceModifyItemModReq.iE_Extensions p_iE_Extensions := omit
)
}
)));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceModifyResponse(
-,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
-,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
(
mw_pDUSessionResourceModifyItemModRes(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
?,//mw_pDUSessionResourceModifyResponseTransfer(
//*,//template UPTransportLayerInformation p_dL_NGU_UP_TNLInformation := *,
//*,//template UPTransportLayerInformation p_uL_NGU_UP_TNLInformation := *,
//?,//template QosFlowAddOrModifyResponseList p_qosFlowAddOrModifyResponseList := *,
//*,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
//*,//template QosFlowListWithCause p_qosFlowFailedToAddOrModifyList := *,
//*//template PDUSessionResourceModifyResponseTransfer.iE_Extensions p_iE_Extensions := *
//),
-//template PDUSessionResourceModifyItemModRes.iE_Extensions p_iE_Extensions := *
)
)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_07
} // End of group PDU_Session_Resource_Modify
//8.2.4
group PDU_Session_Resource_Notify{
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
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_08
*/
function f_TC_NGAP_GNB_PDU_08() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PDU session resource NOTIFY!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_PDUSessionResourceNotify(
-,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
-,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
//*
mw_pDUSessionResourceNotifyItem(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
?,//template (present) PDUSessionResourceNotifyItem.pDUSessionResourceNotifyTransfer p_pDUSessionResourceNotifyTransfer,
-//template PDUSessionResourceNotifyItem.iE_Extensions p_iE_Extensions := *
)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_08
} // End of group PDU_Session_Resource_Notify
//8.2.5
group PDU_Session_Resource_Modify_Indication{
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
/**
* @desc Testcase function for TC_NGAP_gNB_PDU_09
*/
function f_TC_NGAP_GNB_PDU_09() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_NGAP_amf_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PDU session resource MODIFY!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_PDUSessionResourceModifyIndication(
-,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
-,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
(
mw_pDUSessionResourceModifyItemModInd(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
?,//pDUSessionResourceModifyIndicationTransfer(
//?,//template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?,
//*,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
//-//template PDUSessionResourceModifyIndicationTransfer.iE_Extensions p_iE_Extensions := *
//),
-//template PDUSessionResourceModifyItemModRes.iE_Extensions p_iE_Extensions := *
)
)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_PDU_09
} // End of group PDU_Session_Resource_Modify_Indication
} // End of group PDU_Session_Management_Procedures
//8.3
group UE_Context_Management_Procedures{
//8.3.1
group Initial_Context_Setup{
} // End of group Initial_Context_Setup
//8.3.2
group UE_Context_Release_Request_NG_RAN_node_initiated{
} // End of group UE_Context_Release_Request_NG_RAN_node_initiated
//8.3.3
group UE_Context_Release_AMF_initiated{
} // End of group UE_Context_Release_AMF_initiated
//8.3.4
group UE_Context_Modification{
} // End of group UE_Context_Modification
//8.3.5
group RRC_Inactive_Transition_Report{
} // End of group RRC_Inactive_Transition_Report
//8.3.6
group Connection_Establishment_Indication{
} // End of group Connection_Establishment_Indication
//8.3.7
group AMF_CP_Relocation_Indication{
} // End of group AMF_CP_Relocation_Indication
//8.3.8
group RAN_CP_Relocation_Indication{
} // End of group RAN_CP_Relocation_Indication
//8.3.9
group Retrieve_UE_Information{
} // End of group Retrieve_UE_Information
//8.3.10
group UE_Information_Transfer{
} // End of group UE_Information_Transfer
//8.3.11
group UE_Context_Suspend{
} // End of group UE_Context_Suspend
//8.3.12
group UE_Context_Resume{
} // End of group UE_Context_Resume
} // End of group UE_Context_Management_Procedures
//8.4
group UE_Mobility_Management_Procedures{
//8.4.1
group Handover_Preparation{
} // End of group Handover_Preparation
//8.4.2
group Handover_Resource_Allocation{
} // End of group Handover_Resource_Allocation
//8.4.3
group Handover_Notification{
} // End of group Handover_Notification
//8.4.4
group Path_Switch_Request{
} // End of group Path_Switch_Request
//8.4.5
group Handover_Cancellation{
} // End of group Handover_Cancellation
//8.4.6
group Uplink_RAN_Status_Transfer{
} // End of group Uplink_RAN_Status_Transfer
//8.4.7
group Downlink_RAN_Status_Transfer{
} // End of group Downlink_RAN_Status_Transfer
} // End of group Handover_Success
//8.4.9
group Uplink_RAN_Early_Status_Transfer{
} // End of group Uplink_RAN_Early_Status_Transfer
//8.4.10
group Downlink_RAN_Early_Status_Transfer{
} // End of group Downlink_RAN_Early_Status_Transfer
} // End of group UE_Mobility_Management_Procedures
//8.5
group Paging_Procedures{
//8.5.1
group Paging{
} // End of group Paging
} // End of group Paging_Procedures
//8.6
group Transport_of_NAS_Messages_Procedures{
//8.6.1
group Initial_UE_Message{
} // End of group Initial_UE_Message
//8.6.2
group Downlink_NAS_Transport{
} // End of group Downlink_NAS_Transport
//8.6.3
group Uplink_NAS_Transport{
} // End of group Uplink_NAS_Transport
//8.6.4
group NAS_Non_Delivery_Indication{
} // End of group NAS_Non_Delivery_Indication
//8.6.5
group Rerout_NAS_Request{
} // End of group Rerout_NAS_Request
} // End of group Transport_of_NAS_Messages_Procedures
//8.7
group Interface_Management_Procedures{
//8.7.1
group NG_Setup{
} // End of group NG_Setup
//8.7.2
group RAN_Configuration_Update{
} // End of group RAN_Configuration_Update
//8.7.3
group AMF_Configuration_Update{
} // End of group AMF_Configuration_Update
} // End of group NG_Reset
} // End of group Error_Indication
//8.7.6
group AMF_Status_Indication{
} // End of group AMF_Status_Indication
} // End of group Overload_Start
} // End of group Overload_Stop
} // End of group Interface_Management_Procedures
//8.8
group Configuration_Transfer_Procedures{
//8.8.1
group Uplink_RAN_Configuration_Transfer{
} // End of group Uplink_RAN_Configuration_Transfer
//8.8.2
group Downlink_RAN_Configuration_Transfer{
} // End of group Downlink_RAN_Configuration_Transfer
} // End of group Configuration_Transfer_Procedures
//8.9
group Warning_Message_Transmission_Procedures{
//8.9.1
group Write_Replace_Warning{
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
/**
* @desc Testcase function for TC_NGAP_gNB_WTP_01
*/
function f_TC_NGAP_GNB_WTP_01() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_WriteReplaceWarningRequest(
PX_MESSAGE_IDENTIFIER,
PX_SERIAL_NUMBER,
PX_REPETITION_PERIOD,
PX_NUMBER_OF_BROADCASTS_REQUESTED
)
));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_WriteReplaceWarningResponse(
PX_MESSAGE_IDENTIFIER,
PX_SERIAL_NUMBER
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_WTP_01
/**
* @desc Testcase function for TC_NGAP_gNB_WTP_02
*/
function f_TC_NGAP_GNB_WTP_02() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_WriteReplaceWarningRequest(
PX_MESSAGE_IDENTIFIER, // indicating value "different from already being broadcasted",
PX_SERIAL_NUMBER, //indicating value "different from already being broadcasted",
PX_REPETITION_PERIOD,
PX_NUMBER_OF_BROADCASTS_REQUESTED
)
));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_WriteReplaceWarningResponse(
PX_MESSAGE_IDENTIFIER,
PX_SERIAL_NUMBER
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_WTP_02
} // End of group Write_Replace_Warning
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
/**
* @desc Testcase function for TC_NGAP_gNB_WTP_03
*/
function f_TC_NGAP_GNB_WTP_03() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
//f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PWSCancelRequest(
PX_MESSAGE_IDENTIFIER,
PX_SERIAL_NUMBER
)
));
f_recv_NGAP_PDU(
mw_ngap_succMsg(
/*mw*/m_n2_PWSCancelResponse( //missing template
PX_MESSAGE_IDENTIFIER,
PX_SERIAL_NUMBER
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_WTP_03
} // End of group PWS_Cancel
//8.9.3
group PWS_Restart_Indication{
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
/**
* @desc Testcase function for TC_NGAP_gNB_WTP_04
*/
function f_TC_NGAP_GNB_WTP_04() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
//f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PWS_Restart_Indication!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
?
// /*mw*/m_n2_PWSRestartIndication( // missing template
// ?,//in template (value) CellIDListForRestart p_cellIDListForRestart,
// ?,//in template (value) GlobalRANNodeID p_globalRANNodeID,
// ?,//in template (value) TAIListForRestart p_tAIListForRestart,
// ?//in template (value) EmergencyAreaIDListForRestart p_emergencyAreaIDListForRestart
// )
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_WTP_04
} // End of group PWS_Restart_Indication
//8.9.4
group PWS_Failure_Indication{
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
/**
* @desc Testcase function for TC_NGAP_gNB_WTP_05
*/
function f_TC_NGAP_GNB_WTP_05() runs on aMFNGAPComponent {
// Local variables
// Preamble
f_NGAP_amf_init();
f_NGAP_amf_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PWS_Failure_Indication!");
f_recv_NGAP_PDU(
mw_ngap_unsuccMsg(
?
// /*mw*/m_n2_PWSFailureIndication( //missing template
// ?,//in template (value) PWSFailedCellList p_pWSFailedCellList,
// ?//in template (value) GlobalRANNodeID p_globalRANNodeID
// )
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_gNB();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_gNB_WTP_05
} // End of group PWS_Failure_Indication
} // End of group Warning_Message_Transmission_Procedures
//8.10
group NRPPa_Transport_Procedures{
} // End of group NRPPa_Transport_Procedures
//8.11
group Trace_Procedures{
//8.11.1
group Trace_Start{
} // End of group Trace_Start
//8.11.2
group Trace_Failure_Indication{
} // End of group Trace_Failure_Indication
//8.11.3
group Deactivate_Trace{
} // End of group Deactivate_Trace
//8.11.4
group Cell_Traffic_Trace{
} // End of group Cell_Traffic_Trace
} // End of group Trace_Procedures
//8.12
group Location_Reporting_Procedures{
//8.12.1
group Location_Reporting_Control{
} // End of group Location_Reporting_Control
//8.12.2
group Location_Reporting_Failure_Indication{
} // End of group Location_Reporting_Failure_Indication
//8.12.3
group Location_Report{
} // End of group Location_Report
} // End of group Location_Reporting_Procedures
//8.13
group UE_TNLA_Binding_Procedures{
//8.13.1
group UE_TNLA_Binding_Release{
} // End of group UE_TNLA_Binding_Release
} // End of group UE_TNLA_Binding_Procedures
//8.14
group UE_Radio_Capability_Management_Procedures{
//8.14.1
group UE_Radio_Capability_Info_Indication{
} // End of group UE_Radio_Capability_Info_Indication
//8.14.2
group UE_Radio_Capability_Check{
} // End of group UE_Radio_Capability_Check
//8.14.3
group UE_Radio_Capability_ID_Mapping{
} // End of group UE_Radio_Capability_ID_Mapping
} // End of group UE_Radio_Capability_Management_Procedures
//8.15
group Data_Usage_Reporting_Procedures{
//8.15.1
group Secondary_RAT_Data_Usage_Report{
} // End of group Secondary_RAT_Data_Usage_Report
} // End of group Data_Usage_Reporting_Procedures
//8.16
group RIM_Information_Transfer_Procedures{
//8.16.1
group Uplink_RIM_Information_Transfer{
} // End of group Uplink_RIM_Information_Transfer
//8.16.2
group Downlink_RIM_Information_Transfer{
} // End of group Downlink_RIM_Information_Transfer
} // End of group RIM_Information_Transfer_Procedures
} // End of group gNB_Role
group aMF_Role{
//8.2
group PDU_Session_Management_Procedures{
//8.2.1
group PDU_Session_Resource_Setup{
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
/**
* @desc Testcase function for TC_NGAP_aMF_PDU_01
*/
function f_TC_NGAP_AMF_PDU_01() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PDU session resource SETUP!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_PDUSessionResourceSetupRequest(
PX_AMF_UE_NGAP_ID,
PX_RAN_UE_NGAP_ID,
{
mw_pDUSessionResourceSetupItemSUReq(
PX_PDU_SESSION_ID,
mw_s_NSSAI(
PX_SST,
-,//in template (omit) SD p_sD := omit,
-//in template (omit) S_NSSAI.iE_Extensions p_iE_Extensions := omit
),
?,//mw_pDUSessionResourceSetupRequestTransfer(?),OCTETSTRING
-,//in template (omit) NAS_PDU p_pDUSessionNAS_PDU := omit,
-//in template (omit) PDUSessionResourceSetupItemSUReq.iE_Extensions p_iE_Extensions := omit
)
}//in template (value) PDUSessionResourceSetupListSUReq p_pDUSessionResourceSetupListSUReq
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_PDU_01
} // End of group PDU_Session_Resource_Setup
//8.2.2
group PDU_Session_Resource_Release{
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
/**
* @desc Testcase function for TC_NGAP_AMF_PDU_02
*/
function f_TC_NGAP_AMF_PDU_02() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_NGAP_gnb_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PDU session resource RELEASE!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_PDUSessionResourceReleaseCommand(
PX_AMF_UE_NGAP_ID,
PX_RAN_UE_NGAP_ID,
{
mw_pDUSessionResourceToReleaseItemRelCmd(
PX_PDU_SESSION_ID,
?,//mw_pDUSessionResourceReleaseCommandTransfer(?,-),OCTETSTRING
-//in template (omit) PDUSessionResourceToReleaseItemRelCmd.iE_Extensions p_iE_Extensions := omit
)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_PDU_02
} // End of group PDU_Session_Resource_Release
//8.2.3
group PDU_Session_Resource_Modify{
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
/**
* @desc Testcase function for TC_NGAP_AMF_PDU_03
*/
function f_TC_NGAP_AMF_PDU_03() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_NGAP_gnb_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PDU session resource MODIFY!");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_PDUSessionResourceModify(
PX_AMF_UE_NGAP_ID,
PX_RAN_UE_NGAP_ID,
{
mw_pDUSessionResourceModifyItemModReq(
PX_PDU_SESSION_ID,
?,//mw_pDUSessionResourceModifyRequestTransfer(*),OCTETSTRING
-,//template NAS_PDU p_nAS_PDU := *,
-//template PDUSessionResourceModifyItemModReq.iE_Extensions p_iE_Extensions := *
)
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_PDU_03
} // End of group PDU_Session_Resource_Modify
//8.2.4
group PDU_Session_Resource_Notify{
} // End of group PDU_Session_Resource_Notify
//8.2.5
group PDU_Session_Resource_Modify_Indication{
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
/**
* @desc Testcase function for TC_NGAP_AMF_PDU_04
*/
function f_TC_NGAP_AMF_PDU_04() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_NGAP_gnb_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceModifyIndication(
PX_AMF_UE_NGAP_ID,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
PX_RAN_UE_NGAP_ID,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
m_pDUSessionResourceModifyItemModInd(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
bit2oct(encvalue(
m_pDUSessionResourceModifyIndicationTransfer(
m_qosFlowPerTNLInformation(
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel(
PX_TRANSPORT_LAYER_ADDRESS,
PX_GTP_TEID,
omit
)
),
{
m_associatedQosFlowItem(
PX_QOS_FLOW_IDENTIFIER,
omit,
omit
)
},//in template (value) AssociatedQosFlowList p_associatedQosFlowList,
omit//in template (omit) QosFlowPerTNLInformation.iE_Extensions p_iE_Extensions := omit
),//template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?,
omit,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
omit//template PDUSessionResourceModifyIndicationTransfer.iE_Extensions p_iE_Extensions := *
))),
omit//template PDUSessionResourceModifyItemModRes.iE_Extensions p_iE_Extensions := *
)
}
)
)
);
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
f_recv_NGAP_PDU(
mw_ngap_succMsg(
mw_n2_PDUSessionResourceModifyConfirm(
PX_AMF_UE_NGAP_ID,
PX_RAN_UE_NGAP_ID,
{
mw_pDUSessionResourceModifyItemModCfm(
PX_PDU_SESSION_ID,
?,//mw_pDUSessionResourceModifyConfirmTransfer(
// ?,//template (present) QosFlowModifyConfirmList p_qosFlowModifyConfirmList := ?,
// ?,//template (present) UPTransportLayerInformation p_uLNGU_UP_TNLInformation := ?,
// -,//template UPTransportLayerInformationPairList p_additionalNG_UUPTNLInformation := *,
// -,//template QosFlowListWithCause p_qosFlowFailedToModifyList := *,
// -//template PDUSessionResourceModifyConfirmTransfer.iE_Extensions p_iE_Extensions := *
// ), OCTETSTRING
-//template PDUSessionResourceModifyItemModCfm.iE_Extensions p_iE_Extensions := *
)
}
)
)
);
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_PDU_04
/**
* @desc Testcase function for TC_NGAP_AMF_PDU_05
*/
function f_TC_NGAP_AMF_PDU_05() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_NGAP_gnb_UE_PDU_ResourceSetup();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
f_send_NGAP_PDU(
m_ngap_initMsg(
m_n2_PDUSessionResourceModifyIndication(
PX_AMF_UE_NGAP_ID,//template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
PX_RAN_UE_NGAP_ID,//template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
{
(
m_pDUSessionResourceModifyItemModInd(
PX_PDU_SESSION_ID,//template (present) PDUSessionID p_pDUSessionID := ?,
bit2oct(encvalue(
m_pDUSessionResourceModifyIndicationTransfer(
m_qosFlowPerTNLInformation(
m_uPTransportLayerInformation_gTPTunnel(
m_gTPTunnel(
PX_TRANSPORT_LAYER_ADDRESS,
PX_GTP_TEID,
omit
)
),
{
m_associatedQosFlowItem(
PX_QOS_FLOW_IDENTIFIER,
omit,
omit
)
},//in template (value) AssociatedQosFlowList p_associatedQosFlowList,
omit//in template (omit) QosFlowPerTNLInformation.iE_Extensions p_iE_Extensions := omit
),//template (present) QosFlowPerTNLInformation p_dLQosFlowPerTNLInformation := ?,
omit,//template QosFlowPerTNLInformationList p_additionalDLQosFlowPerTNLInformation := *,
omit//template PDUSessionResourceModifyIndicationTransfer.iE_Extensions p_iE_Extensions := *
))),
omit//template PDUSessionResourceModifyItemModRes.iE_Extensions p_iE_Extensions := *
)
)
}
)
)
);
f_recv_NGAP_PDU(
mw_ngap_succMsg(
//? //FIXME missing template mw_n2_PDUSessionResourceFailedToModifyListModCfm
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
mw_n2_PDUSessionResourceModifyConfirm(
PX_AMF_UE_NGAP_ID,
PX_RAN_UE_NGAP_ID,
{ *
// mw_pDUSessionResourceFailedToModifyItemModCfm(
// PX_PDU_SESSION_ID,
// ?,//mw_pDUSessionResourceModifyIndicationUnsuccessfulTransfer(
// // ?,//template (present) Cause p_cause := ?,
// // -//template PDUSessionResourceModifyIndicationUnsuccessfulTransfer.iE_Extensions p_iE_Extensions := *
// //),OCTETSTRING
// *//template PDUSessionResourceFailedToModifyItemModCfm.iE_Extensions p_iE_Extensions := *
// )
}
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_PDU_05
} // End of group PDU_Session_Resource_Modify_Indication
} // End of group PDU_Session_Management_Procedures
//8.3
group UE_Context_Management_Procedures{
//8.3.1
group Initial_Context_Setup{
} // End of group Initial_Context_Setup
//8.3.2
group UE_Context_Release_Request_NG_RAN_node_initiated{
} // End of group UE_Context_Release_Request_NG_RAN_node_initiated
//8.3.3
group UE_Context_Release_AMF_initiated{
} // End of group UE_Context_Release_AMF_initiated
//8.3.4
group UE_Context_Modification{
} // End of group UE_Context_Modification
//8.3.5
group RRC_Inactive_Transition_Report{
} // End of group RRC_Inactive_Transition_Report
//8.3.6
group Connection_Establishment_Indication{
} // End of group Connection_Establishment_Indication
//8.3.7
group AMF_CP_Relocation_Indication{
} // End of group AMF_CP_Relocation_Indication
//8.3.8
group RAN_CP_Relocation_Indication{
} // End of group RAN_CP_Relocation_Indication
//8.3.9
group Retrieve_UE_Information{
} // End of group Retrieve_UE_Information
//8.3.10
group UE_Information_Transfer{
} // End of group UE_Information_Transfer
//8.3.11
group UE_Context_Suspend{
} // End of group UE_Context_Suspend
//8.3.12
group UE_Context_Resume{
} // End of group UE_Context_Resume
} // End of group UE_Context_Management_Procedures
//8.4
group UE_Mobility_Management_Procedures{
//8.4.1
group Handover_Preparation{
} // End of group Handover_Preparation
//8.4.2
group Handover_Resource_Allocation{
} // End of group Handover_Resource_Allocation
//8.4.3
group Handover_Notification{
} // End of group Handover_Notification
//8.4.4
group Path_Switch_Request{
} // End of group Path_Switch_Request
//8.4.5
group Handover_Cancellation{
} // End of group Handover_Cancellation
//8.4.6
group Uplink_RAN_Status_Transfer{
} // End of group Uplink_RAN_Status_Transfer
//8.4.7
group Downlink_RAN_Status_Transfer{
} // End of group Downlink_RAN_Status_Transfer
//8.4.8
group Handover_Success{
} // End of group Handover_Success
//8.4.9
group Uplink_RAN_Early_Status_Transfer{
} // End of group Uplink_RAN_Early_Status_Transfer
//8.4.10
group Downlink_RAN_Early_Status_Transfer{
} // End of group Downlink_RAN_Early_Status_Transfer
} // End of group UE_Mobility_Management_Procedures
//8.5
group Paging_Procedures{
//8.5.1
group Paging{
} // End of group Paging
} // End of group Paging_Procedures
//8.6
group Transport_of_NAS_Messages_Procedures{
//8.6.1
group Initial_UE_Message{
} // End of group Initial_UE_Message
//8.6.2
group Downlink_NAS_Transport{
} // End of group Downlink_NAS_Transport
//8.6.3
group Uplink_NAS_Transport{
} // End of group Uplink_NAS_Transport
//8.6.4
group NAS_Non_Delivery_Indication{
} // End of group NAS_Non_Delivery_Indication
//8.6.5
group Rerout_NAS_Request{
} // End of group Rerout_NAS_Request
} // End of group Transport_of_NAS_Messages_Procedures
//8.7
group Interface_Management_Procedures{
//8.7.1
group NG_Setup{
} // End of group NG_Setup
//8.7.2
group RAN_Configuration_Update{
} // End of group RAN_Configuration_Update
//8.7.3
group AMF_Configuration_Update{
} // End of group AMF_Configuration_Update
} // End of group NG_Reset
//8.7.5
group Error_Indication{
} // End of group Error_Indication
//8.7.6
group AMF_Status_Indication{
} // End of group AMF_Status_Indication
} // End of group Overload_Start
} // End of group Overload_Stop
} // End of group Interface_Management_Procedures
//8.8
group Configuration_Transfer_Procedures{
//8.8.1
group Uplink_RAN_Configuration_Transfer{
} // End of group Uplink_RAN_Configuration_Transfer
//8.8.2
group Downlink_RAN_Configuration_Transfer{
} // End of group Downlink_RAN_Configuration_Transfer
} // End of group Configuration_Transfer_Procedures
//8.9
group Warning_Message_Transmission_Procedures{
//8.9.1
group Write_Replace_Warning{
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
/**
* @desc Testcase function for TC_NGAP_aMF_WTP_01
*/
function f_TC_NGAP_AMF_WTP_01() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger WRITE REPLACE WARNING REQUEST !");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_WriteReplaceWarningRequest(
?,// template (present) MessageIdentifier p_messageIdentifier :=?,
?,// template (present) SerialNumber p_serialNumber := ?,
?,// template (present) RepetitionPeriod p_repetitionPeriod := ?,
?// template (present) NumberOfBroadcastsRequested p_numberOfBroadcastsRequested := ?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_WTP_01
} // End of group Write_Replace_Warning
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
/**
* @desc Testcase function for TC_NGAP_aMF_WTP_02
*/
function f_TC_NGAP_AMF_WTP_02() runs on gNBNGAPComponent {
// Local variables
// Preamble
f_NGAP_gnb_init();
f_NGAP_gnb_UE_Register();
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Preamble done. ***");
// Body
action("Trigger PWS CANCEL REQUEST !");
f_recv_NGAP_PDU(
mw_ngap_initMsg(
mw_n2_PWSCancelRequest(
?,//template (present) MessageIdentifier p_messageIdentifier := ?,
?// template (present) SerialNumber p_serialNumber := ?
)
)
);
f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Testbody done. ***");
// Postamble
f_postamble_NGAP_AMF();
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());
log("*** " & __SCOPE__ & ": INFO: Postamble done. ***");
} // End of function f_TC_NGAP_AMF_WTP_02
} // End of group PWS_Cancel
//8.9.3
group PWS_Restart_Indication{
} // End of group PWS_Restart_Indication
//8.9.4
group PWS_Failure_Indication{
} // End of group PWS_Failure_Indication
} // End of group Warning_Message_Transmission_Procedures
//8.10
group NRPPa_Transport_Procedures{
} // End of group NRPPa_Transport_Procedures
//8.11
group Trace_Procedures{
//8.11.1
group Trace_Start{
} // End of group Trace_Start
//8.11.2
group Trace_Failure_Indication{
} // End of group Trace_Failure_Indication
//8.11.3
group Deactivate_Trace{
} // End of group Deactivate_Trace
//8.11.4
group Cell_Traffic_Trace{
} // End of group Cell_Traffic_Trace
} // End of group Trace_Procedures
//8.12
group Location_Reporting_Procedures{
//8.12.1
group Location_Reporting_Control{
} // End of group Location_Reporting_Control
//8.12.2
group Location_Reporting_Failure_Indication{
} // End of group Location_Reporting_Failure_Indication
//8.12.3
group Location_Report{
} // End of group Location_Report
} // End of group Location_Reporting_Procedures
//8.13
group UE_TNLA_Binding_Procedures{
//8.13.1
group UE_TNLA_Binding_Release{
} // End of group UE_TNLA_Binding_Release
} // End of group UE_TNLA_Binding_Procedures
//8.14
group UE_Radio_Capability_Management_Procedures{
//8.14.1
group UE_Radio_Capability_Info_Indication{
} // End of group UE_Radio_Capability_Info_Indication
//8.14.2
group UE_Radio_Capability_Check{
} // End of group UE_Radio_Capability_Check
//8.14.3
group UE_Radio_Capability_ID_Mapping{
} // End of group UE_Radio_Capability_ID_Mapping
} // End of group UE_Radio_Capability_Management_Procedures
//8.15
group Data_Usage_Reporting_Procedures{
//8.15.1
group Secondary_RAT_Data_Usage_Report{
} // End of group Secondary_RAT_Data_Usage_Report
} // End of group Data_Usage_Reporting_Procedures
//8.16
group RIM_Information_Transfer_Procedures{
//8.16.1
group Uplink_RIM_Information_Transfer{
} // End of group Uplink_RIM_Information_Transfer
//8.16.2
group Downlink_RIM_Information_Transfer{
} // End of group Downlink_RIM_Information_Transfer
} // End of group RIM_Information_Transfer_Procedures
} // End of group aMF_Role