Newer
Older
/**
* @author ETSI STF517 / STF525 / TTF002
* @version $Url: https://oldforge.etsi.org/svn/ITS/tags/20170222_STF527_Final/ttcn/AtsIVIM/ItsIvim_TpFunctions.ttcn $
* $Id: ItsIvim_TpFunctions.ttcn,v 1.7 2019/01/07 08:56:01 dte Exp $
* @desc IVIM TP functions
* @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 ItsIvim_TpFunctions {
// LibCommon
import from LibCommon_Sync all;
import from LibCommon_VerdictControl all;
import from LibCommon_Time all;
import from LibCommon_BasicTypesAndValues all;
// LibItsCommon
import from LibItsCommon_Pixits all;
import from LibItsCommon_Functions all;
import from LibItsCommon_TypesAndValues all;
import from LibItsCommon_ASN1_NamedNumbers all;
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from IVIM_PDU_Descriptions language "ASN.1:1997" all;
import from IVI language "ASN.1:1997" all;
// LibItsIVIM
import from LibItsIvim_TypesAndValues all;
import from LibItsIvim_Templates all;
import from LibItsIvim_TestSystem all;
import from LibItsIvim_Functions all;
import from LibItsIvim_Pics all;
import from LibItsIvim_ASN1_IVInamedNumbers all;
group iviMessageTransmission {
group iviMessageFormat {
/**
* @desc TP Function for TC_IS_IVI_MSGF_BV_01
*/
function f_IS_IVI_GEN_MSGF_BV_01() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
// Test control
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_iviIdentificationNumber := f_utTriggerEvent(valueof(m_utTriggerEvent()));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader
))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected IVIM received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: IVIM not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_MSGF_BV_01
} // End of group iviMessageFormat
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
group iviLoactionContainer{
/**
* @desc TP Function for IS_IVI_GEN_LOC_BV_01
*/
function f_IS_IVI_GEN_LOC_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_LOC_BV_01
/**
* @desc TP Function for IS_IVI_GEN_LOC_BV_02
*/
function f_IS_IVI_GEN_LOC_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_LOC_BV_02
/**
* @desc TP Function for IS_IVI_GEN_LOC_BV_03
*/
function f_IS_IVI_GEN_LOC_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_LOC_BV_03
/**
* @desc TP Function for IS_IVI_GEN_LOC_BV_04
*/
function f_IS_IVI_GEN_LOC_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_LOC_BV_04
/**
* @desc TP Function for IS_IVI_GEN_LOC_BV_05
*/
function f_IS_IVI_GEN_LOC_BV_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_LOC_BV_05
/**
* @desc TP Function for IS_IVI_GEN_LOC_BV_06
*/
function f_IS_IVI_GEN_LOC_BV_06() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_LOC_BV_06
} // End of group iviLoactionContainer
group iviManagamentContainer{
/**
* @desc TP Function for IS_IVI_GEN_MANC_BV_01
*/
function f_IS_IVI_GEN_MANC_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_MANC_BV_01
/**
* @desc TP Function for IS_IVI_GEN_MANC_BV_02
*/
function f_IS_IVI_GEN_MANC_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_MANC_BV_02
} // End of group iviManagamentContainer
group iviEventGeneration {
function f_IS_IVI_GEN_EVGN_BV_01() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber
))))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVGN_BV_01
function f_IS_IVI_GEN_EVGN_BV_02() runs on ItsIvim {
// Local variables
var template (value) UtIvimTriggerList v_utTriggers := {
m_utTriggerEvent(c_duration_2sec, f_getCurrentTime() - 1000 * c_duration_2sec, -/*, -, -*/),
m_utTriggerEvent(c_duration_4sec, f_getCurrentTime() - 1000 * c_duration_4sec, -/*, -, -*/),
m_utTriggerEvent(c_duration_6sec, f_getCurrentTime() - 1000 * c_duration_6sec, -/*, -, -*/)
}
var boolean v_success := true;
var IviIdentificationNumberList v_iviIdentificationNumbers;
var IvimInd v_ivimInd;
var integer i;
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
for (i := 0; i < lengthof(v_utTriggers) - 1; i := i + 1) {
f_utTriggerEvent(valueof(v_utTriggers[i]));
f_awaitIviMessage(mw_ivimInd(mw_anyIvimPdu), v_ivimInd);
v_iviIdentificationNumbers[i] := v_ivimInd.msgIn.ivi.mandatory.iviIdentificationNumber;
}
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(valueof(v_utTriggers[lengthof(v_utTriggers) - 1]));
f_awaitIviMessage(mw_ivimInd(mw_anyIvimPdu), v_ivimInd);
v_iviIdentificationNumbers[lengthof(v_iviIdentificationNumbers) - 1] := v_ivimInd.msgIn.ivi.mandatory.iviIdentificationNumber;
//check the action id
for (i := 0; i < lengthof(v_iviIdentificationNumbers) - 1; i := i + 1) {
if (v_iviIdentificationNumbers[lengthof(v_iviIdentificationNumbers) - 1] == v_iviIdentificationNumbers[i]) {
v_success := false;
}
}
if (v_success==true) {
log("*** " & testcasename() & ": PASS: IviIdentificationNumber field indicating unused value. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
else {
log("*** " & testcasename() & ": FAIL: IviIdentificationNumber field indicating used value. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
// Postamble
for (i := 0; i < lengthof(v_iviIdentificationNumbers); i := i + 1) {
f_poCancelEvent(e_iut, v_iviIdentificationNumbers[i]);
}
f_cfDown();
} // End of function f_IS_IVI_GEN_EVGN_BV_02
function f_IS_IVI_GEN_EVGN_BV_03() runs on ItsIvim {
// Local variables
var template (value) UtIvimTriggerList v_utTriggers := {
m_utTriggerEvent(c_duration_2sec, f_getCurrentTime() - 1000 * c_duration_2sec, -/*, -, -*/),
m_utTriggerEvent(c_duration_4sec, f_getCurrentTime() - 1000 * c_duration_4sec, -/*, -, -*/),
m_utTriggerEvent(c_duration_6sec, f_getCurrentTime() - 1000 * c_duration_6sec, -/*, -, -*/)
}
var IviIdentificationNumber v_iviIdentificationNumber;
var boolean v_success := true;
var IvimInd v_ivimInd;
var integer i;
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
for (i := 0; i < lengthof(v_utTriggers) - 1; i := i + 1) {
f_utTriggerEvent(valueof(v_utTriggers[i]));
f_awaitIviMessage(mw_ivimInd(mw_anyIvimPdu), v_ivimInd);
f_poCancelEvent(e_iut, v_ivimInd.msgIn.ivi.mandatory.iviIdentificationNumber);
}
//save the last IVI identification number
v_iviIdentificationNumber := v_ivimInd.msgIn.ivi.mandatory.iviIdentificationNumber;
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTriggerEvent(valueof(v_utTriggers[lengthof(v_utTriggers) - 1]));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber + 1,
IviStatus_new_
))))) -> value v_ivimInd {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
v_iviIdentificationNumber := v_ivimInd.msgIn.ivi.mandatory.iviIdentificationNumber;
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVGN_BV_03
function f_IS_IVI_GEN_EVGN_BV_04() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
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
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
))))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVGN_BV_04
function f_IS_IVI_GEN_EVGN_BV_05() runs on ItsIvim {
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
// Local variables
const integer c_epsilon := 500; // maximum c_epsilon cannot exceed 500ms
var IviIdentificationNumber v_iviIdentificationNumber;
var TimestampIts v_timestamp;
var IvimInd v_iviMsg;
// Test control
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_timestamp := f_getCurrentTime();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer_timestamp(
-,
v_iviIdentificationNumber,
IviStatus_new_
))))) -> value v_iviMsg {
tc_ac.stop;
if (f_abs(v_iviMsg.msgIn.ivi.mandatory.timeStamp - v_timestamp) < c_epsilon) {
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: TimeStamp value is out of range (" & int2str(c_epsilon) & "). ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVGN_BV_05
} // End of group iviEventGeneration
group iviEventUpdate {
function f_IS_IVI_GEN_EVUP_BV_01() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
))))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVUP_BV_01
function f_IS_IVI_GEN_EVUP_BV_02() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
var TimestampIts v_validTo;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
)))),
v_rcvdMsg
);
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber));
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_validTo := f_getCurrentTime() + 1000 * 3600; // Current ITS time + one hour
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber, -, -, v_validTo));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer_validTo(
-,
v_iviIdentificationNumber,
v_validTo
))))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVUP_BV_02
function f_IS_IVI_GEN_EVUP_BV_03() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
var TimestampIts v_validFrom;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
)))),
v_rcvdMsg
);
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber));
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_validFrom := f_getCurrentTime() + 1000 * 3600; // Current ITS time + one hour
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber, -, v_validFrom));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer_validFrom(
-,
v_iviIdentificationNumber,
v_validFrom
))))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVUP_BV_03
function f_IS_IVI_GEN_EVUP_BV_04() runs on ItsIvim {
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
// Local variables
const integer c_epsilon := 500; // maximum c_epsilon cannot exceed 500ms
var IviIdentificationNumber v_iviIdentificationNumber;
var TimestampIts v_timestamp;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_new_
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_timestamp := f_getCurrentTime();
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber));
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
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer_timestamp(
-,
v_iviIdentificationNumber,
IviStatus_update_
))))) -> value v_rcvdMsg {
tc_ac.stop;
if (f_abs(v_rcvdMsg.msgIn.ivi.mandatory.timeStamp - v_timestamp) < c_epsilon) {
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
} else {
log("*** " & testcasename() & ": FAIL: TimeStamp value is out of range (" & int2str(c_epsilon) & "). ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVUP_BV_04
function f_IS_IVI_GEN_EVUP_BV_05() runs on ItsIvim {
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
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_new_
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber));
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
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_update_
))))) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Successfully received expected IVIM. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Received a IVIM with incorrect information. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_EVUP_BV_05
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
group iviGeneralApplicationContainer{
function f_IS_IVI_GEN_GENAPP_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_GENAPP_BV_01
function f_IS_IVI_GEN_GENAPP_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_GENAPP_BV_02
function f_IS_IVI_GEN_GENAPP_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_GENAPP_BV_03
function f_IS_IVI_GEN_GENAPP_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_GENAPP_BV_04
function f_IS_IVI_GEN_GENAPP_BV_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_GENAPP_BV_05
function f_IS_IVI_GEN_GENAPP_BV_06() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_GENAPP_BV_06
} // End of group iviGeneralApplicationContainer
group iviRoadConfigurationContainer{
function f_IS_IVI_GEN_RCC_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_RCC_BV_01
function f_IS_IVI_GEN_RCC_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_RCC_BV_02
function f_IS_IVI_GEN_RCC_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_RCC_BV_03
} // End of group iviRoadConfigurationContainer
group iviTextContainer{
function f_IS_IVI_GEN_TEXT_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_TEXT_BV_01
function f_IS_IVI_GEN_TEXT_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_TEXT_BV_02
function f_IS_IVI_GEN_TEXT_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_TEXT_BV_03
function f_IS_IVI_GEN_TEXT_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_TEXT_BV_04
} // End of group iviTextContainer
group iviGenerationFrequency {
function f_IS_IVI_GEN_GFQ_TI_01() runs on ItsIvim {
// Local variables
const integer c_maxLoopValue := 10;
timer t_minTransInterval := PICS_T_GENIVIMMIN * 0.90;
var integer v_counter := 0;
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent(float2int(PICS_T_GENIVIMMIN)));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
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
-,
IviStatus_new_
))))) {
tc_ac.stop;
t_minTransInterval.start;
log("*** " & testcasename() & ": INFO: Initial conditions: First IVIM received ***");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Initial conditions: IVIM not received ***");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_timeout);
}
}
// Test Body
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer
)))) {
tc_ac.stop;
if (t_minTransInterval.running) {
log("*** " & testcasename() & ": FAIL: IVIM received BEFORE expiry of the minimum generation timer interval ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
} else {
v_counter := v_counter + 1;
if (v_counter < c_maxLoopValue) {
t_minTransInterval.start;
} else {
log("*** " & testcasename() & ": PASS: Generation of IVIMs was successful ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
}
[] t_minTransInterval.timeout {
repeat;
[] tc_ac.timeout {
t_minTransInterval.stop;
log("*** " & testcasename() & ": INCONC: IVIM not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_GFQ_TI_01
function f_IS_IVI_GEN_GFQ_TI_02() runs on ItsIvim {
const integer c_maxLoopValue := 10;
timer t_maxTransInterval := PICS_T_GENIVIMMAX * 1.10;
var integer v_counter := 0;
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent(float2int(PICS_T_GENIVIMMIN)));
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
-,
IviStatus_new_
))))) {
tc_ac.stop;
t_maxTransInterval.start;
log("*** " & testcasename() & ": INFO: Initial conditions: First IVIM received ***");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Initial conditions: IVIM not received ***");
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_timeout);
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
// Test Body
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer
)))) {
tc_ac.stop;
t_maxTransInterval.stop;
t_maxTransInterval.start;
v_counter := v_counter + 1;
if (v_counter < c_maxLoopValue) {
t_maxTransInterval.start;
repeat;
} else {
log("*** " & testcasename() & ": PASS: Generation of IVIMs was successful ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
[] t_maxTransInterval.timeout {
log("*** " & testcasename() & ": FAIL: No IVIM received BEFORE expiry of the maximum generation timer interval ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
t_maxTransInterval.stop;
log("*** " & testcasename() & ": INCONC: IVIM not received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_GFQ_TI_02
} // End of group iviGenerationFrequency
group iviEventRepetition {
function f_IS_IVI_GEN_EVRP_BV_01() runs on ItsIvim {
// Local variables
const integer c_maxLoopValue := 10;
const TimestampIts c_repetitionInterval := c_duration_4sec;
var integer v_counter := 0;
var boolean v_ivimReceived := false;
const float c_minTransInterval := int2float(c_repetitionInterval) * 0.90;
const float c_maxTransInterval := int2float(c_repetitionInterval) * 1.10;
var Times v_times := {};
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent(c_repetition_interval_deactivated));
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_new_
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber, c_duration_4sec));
tc_ac.start(60.0);
ivimPort.clear;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_update_
v_times[v_counter] := tc_ac.read;
v_counter := v_counter + 1;
if (v_counter < c_maxLoopValue) {
repeat;
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": FAIL: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
if (v_counter==c_maxLoopValue) {
for (v_counter:=1; v_counter<c_maxLoopValue; v_counter:=v_counter + 1) {
var float v_timeDiff := v_times[v_counter]-v_times[v_counter-1];
if (not match(v_timeDiff, (c_minTransInterval..c_maxTransInterval))) {
log("*** " & testcasename() & ": FAIL: IUT did NOT send IVIM with respect to the 'repetition interval' RI_1. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
break;
}
}
if (v_counter==c_maxLoopValue) {
log("*** " & testcasename() & ": FAIL: IUT sends IVIM with respect to the 'repetition interval' RI_1. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
} // End of function f_IS_IVI_GEN_EVRP_BV_01
function f_IS_IVI_GEN_EVRP_BV_02() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_UPDATE) {
log("*** " & testcasename() & ": PICS_IVIM_UPDATE required for executing the TC ***");
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
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_new_
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utUpdateEvent(m_utIvimUpdateEvent(v_iviIdentificationNumber, c_repetition_interval_deactivated));
ivimPort.clear;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_update_
tc_noac.stop;
log("*** " & testcasename() & ": FAIL: No more IVIM shall be sent. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No more IVIM was sent. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
} // End of function f_IS_IVI_GEN_EVRP_BV_02
} // End of group iviEventRepetition
group iviEventTermination {
function f_IS_IVI_GEN_EVTR_BV_01() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
var integer v_timeOffset := 4 * c_duration_4sec; //at most 4 repetitions
// Test control
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent(c_duration_4sec, -, f_getCurrentTime() + 1000 /* to milliseconds */ * v_timeOffset));
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_new_
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_sleep(int2float(v_timeOffset));
ivimPort.clear; //remove repeated events
tc_noac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
))))) {
log("*** " & testcasename() & ": INFO: No more IVIM shall be sent. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No more IVIM was sent. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_cfDown();
} // End of function f_IS_IVI_GEN_EVTR_BV_01
function f_IS_IVI_GEN_EVTR_BV_02() runs on ItsIvim {
// Local variables
var IviIdentificationNumber v_iviIdentificationNumber;
var IvimInd v_rcvdMsg;
// Test control
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
f_awaitIviMessage(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
IviStatus_new_
)))),
v_rcvdMsg
);
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
f_utTerminateEvent(m_utEventCancellation(v_iviIdentificationNumber));
tc_noac.start;
alt {
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer(
-,
v_iviIdentificationNumber,
))))) {
log("*** " & testcasename() & ": INFO: No more IVIM shall be sent. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_noac.timeout {
log("*** " & testcasename() & ": PASS: No more IVIM was sent. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
}
// Postamble
f_cfDown();
} // End of function f_IS_IVI_GEN_EVTR_BV_02
function f_IS_IVI_GEN_EVTR_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_EVTR_BV_03
function f_IS_IVI_GEN_EVTR_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_EVTR_BV_04
} // End of group iviEventTermination
group iviCommunication {
function f_IS_IVI_GEN_COM_BV_01() runs on ItsIvim {
// Local variables
const UInt8 c_gnNhBtpB := 2;
var IviIdentificationNumber v_iviIdentificationNumber;
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
if (not PICS_IVIM_GENERATION) {
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Test adapter configuration
// Preamble
f_prInitialState();
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimIndWithGnParameters(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer
)),
c_gnNhBtpB
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected IVIM encapsultated in BTP-B packet received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimIndWithGnParameters(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer
)),
omit
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: no GN NH information in IvimInd. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected IVIM received, but not encapsulated in BTP-B packet. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_COM_BV_01
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
// function f_IS_IVI_COMM_BV_01_02() runs on ItsIvim {
//
// // Local variables
// const UInt16 c_gnNhBtpBPort := 2006;
// var IviIdentificationNumber v_iviIdentificationNumber;
//
// // Test control
// if (not PICS_IVIM_GENERATION) {
// log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
// setverdict(inconc);
// stop;
// }
//
// // Test component configuration
// f_cfUp();
//
// // Test adapter configuration
//
// // Preamble
// f_prInitialState();
// f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
//
// // Test Body
// v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
//
// tc_ac.start;
// alt {
// [] ivimPort.receive(
// mw_ivimIndWithBtpParameters(
// mw_anyIvimPdu(
// mw_itsPduHeader,
// mw_ivimStructure(
// mw_iviManagementContainer
// )),
// c_gnNhBtpBPort,
// 0
// )) {
// tc_ac.stop;
// log("*** " & testcasename() & ": Expected IVIM encapsultated in BTP packet with port value 2006 received. ***");
// f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
// }
// [] ivimPort.receive(
// mw_ivimInd(
// mw_anyIvimPdu(
// mw_itsPduHeader,
// mw_ivimStructure(
// mw_iviManagementContainer
// )))) {
// tc_ac.stop;
// log("*** " & testcasename() & ": FAIL: Expected IVIM received, but not addressed to the correct destination port. ***");
// f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
// }
// [] ivimPort.receive(
// mw_ivimInd(
// mw_anyIvimPdu
// )) {
// tc_ac.stop;
// log("*** " & testcasename() & ": FAIL: Expected IVIM received, but not encapsulated in BTP-B packet. ***");
// f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
// }
// [] tc_ac.timeout {
// log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
// f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
// }
// }
//
// // Postamble
// f_poCancelEvent(e_iut, v_iviIdentificationNumber);
// f_cfDown();
//
// } // End of function f_IS_IVI_COMM_BV_01_02
function f_IS_IVI_GEN_COM_BV_02 () runs on ItsIvim {
// Local variables
const UInt8 c_gnHtUnc := 2;
var IviIdentificationNumber v_iviIdentificationNumber;
// Test control
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
log("*** " & testcasename() & ": PICS_IVIM_GENERATION required for executing the TC ***");
setverdict(inconc);
stop;
}
// Test component configuration
f_cfUp();
// Preamble
f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
// Test Body
v_iviIdentificationNumber := f_utTriggerEvent(m_utTriggerEvent());
tc_ac.start;
alt {
[] ivimPort.receive(
mw_ivimIndWithGnParameters(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer
)),
c_gnHtUnc
)) {
tc_ac.stop;
log("*** " & testcasename() & ": PASS: Expected IVIM encapsulated in GBC packet received. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
}
[] ivimPort.receive(
mw_ivimIndWithGnParameters(
mw_anyIvimPdu(
mw_itsPduHeader,
mw_ivimStructure(
mw_iviManagementContainer
)),
omit
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: no GN NH information in IvimInd. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] ivimPort.receive(
mw_ivimInd(
mw_anyIvimPdu
)) {
tc_ac.stop;
log("*** " & testcasename() & ": FAIL: Expected IVIM received, but not encapsulated in BTP-B packet. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
}
[] tc_ac.timeout {
log("*** " & testcasename() & ": INCONC: Timeout while awaiting the reception of a message. ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_timeout);
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVI_GEN_COM_BV_02
} // End of group iviCommunication
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
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
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
group iviSecurityParameters{
function f_IS_IVI_GEN_SEC_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SEC_BV_01
function f_IS_IVI_GEN_SEC_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SEC_BV_02
function f_IS_IVI_GEN_SSP_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BV_01
function f_IS_IVI_GEN_SSP_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BV_02
function f_IS_IVI_GEN_SSP_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BV_03
function f_IS_IVI_GEN_SSP_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BV_04
function f_IS_IVI_GEN_SSP_BV_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BV_05
function f_IS_IVI_GEN_SSP_BV_06() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BV_06
function f_IS_IVI_GEN_SSP_BO_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BO_01
function f_IS_IVI_GEN_SSP_BO_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BO_02
function f_IS_IVI_GEN_SSP_BO_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BO_03
function f_IS_IVI_GEN_SSP_BO_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BO_04
function f_IS_IVI_GEN_SSP_BO_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BO_05
function f_IS_IVI_GEN_SSP_BO_06() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_GEN_SSP_BO_06
} // End of group iviSecurityParameters
} // End of group iviMessageTransmission
group iviMessageReception {
/**
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
* @desc TP Function for TC_IS_IVI_RCV_MSGF_BV_01
*/
function f_IS_IVI_RCV_MSGF_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_MSGF_BV_01
/**
* @desc TP Function for TC_IS_IVI_RCV_DATA_BV_01
*/
function f_IS_IVI_RCV_DATA_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_DATA_BV_01
/**
* @desc TP Function for TC_IS_IVI_RCV_DATA_BV_02
*/
function f_IS_IVI_RCV_DATA_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_DATA_BV_02
/**
* @desc TP Function for TC_IS_IVI_RCV_DATA_BV_03
*/
function f_IS_IVI_RCV_DATA_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_DATA_BV_03
/**
* @desc TP Function for TC_IS_IVI_RCV_DATA_BV_04
*/
function f_IS_IVI_RCV_DATA_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_DATA_BV_04
/**
* @desc TP Function for TC_IS_IVI_RCV_DATA_BV_05
*/
function f_IS_IVI_RCV_DATA_BV_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_DATA_BV_05
/**
* @desc TP Function for TC_IS_IVI_RCV_EVUP_BV_01
*/
function f_IS_IVI_RCV_EVUP_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_EVUP_BV_01
/**
* @desc TP Function for TC_IS_IVI_RCV_EVUP_BV_02
*/
function f_IS_IVI_RCV_EVUP_BV_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_EVUP_BV_02
/**
* @desc TP Function for TC_IS_IVI_RCV_EVUP_BV_03
*/
function f_IS_IVI_RCV_EVUP_BV_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_EVUP_BV_03
/**
* @desc TP Function for TC_IS_IVI_RCV_EVUP_BV_04
*/
function f_IS_IVI_RCV_EVUP_BV_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_EVUP_BV_04
/**
* @desc TP Function for TC_IS_IVI_RCV_EVUP_BV_05
*/
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
function f_IS_IVI_RCV_EVUP_BV_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_EVUP_BV_05
/**
* @desc TP Function for TC_IS_IVI_RCV_EVUP_BV_06
*/
function f_IS_IVI_RCV_EVUP_BV_06() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_EVUP_BV_06
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BV_01
*/
function f_IS_IVI_RCV_SSP_BV_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BV_01
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_01
*/
function f_IS_IVI_RCV_SSP_BO_01() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_01
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_02
*/
function f_IS_IVI_RCV_SSP_BO_02() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_02
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_03
*/
function f_IS_IVI_RCV_SSP_BO_03() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_03
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_04
*/
function f_IS_IVI_RCV_SSP_BO_04() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_04
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_05
*/
function f_IS_IVI_RCV_SSP_BO_05() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_05
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_06
*/
function f_IS_IVI_RCV_SSP_BO_06() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_06
/**
* @desc TP Function for TC_IS_IVI_RCV_SSP_BO_07
*/
function f_IS_IVI_RCV_SSP_BO_07() runs on ItsIvim {
// TODO
} // End of function f_IS_IVI_RCV_SSP_BO_07
//
// /**
// * @desc TP Function for TC_IS_IVI_MSGF_BV_02
// */
// function f_IS_IVI_MSGF_BV_02() runs on ItsIvim {
//
// // Local variables
// var IvimReq v_ivimReq;
// var integer i;
//
// // Test control
// if (not PICS_IVIM_RECEPTION) {
// log("*** " & testcasename() & ": PICS_IVIM_RECEPTION required for executing the TC ***");
// setverdict(inconc);
// stop;
// }
//
// // Test component configuration
// f_cfUp();
//
// // Test adapter configuration
//
// // Preamble
// f_prInitialState();
// f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
//
// // Test Body
// v_ivimReq := valueof(
// m_ivimReq(
// m_ivimStructurePdu(
// valueof(m_ivimStructure(
// valueof(m_iviManagementContainer(
// f_getProvider(),
// 1,
// IviStatus_new_
// ))
// ))
// )
// )
// );
// ivimPort.send(v_ivimReq);
//
// f_sleep(PX_TNOAC);
// for(i:=0; i < lengthof(vc_utEvents) and not match(v_ivimReq.msgOut, vc_utEvents[i].iviMsg); i:=i+1) {
// // empty on purpose
// }
// if(i < lengthof(vc_utEvents)) {
// log("*** " & testcasename() & ": PASS: IVIM was transmitted to upper layer***");
// f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
// }
// else {
// log("*** " & testcasename() & ": FAIL: IVIM was not transmitted to upper layer***");
// f_selfOrClientSyncAndVerdict(c_tbDone, e_error);
// }
//
// // Postamble
// f_poDefault();
// f_cfDown();
//
// } // End of function f_IS_IVI_MSGF_BV_02
} // End of group iviMessageReception
} // End of module ItsIvim_TpFunctions