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
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