Newer
Older
}
}
// Postamble
f_poCancelEvent(e_iut, v_iviIdentificationNumber);
f_cfDown();
} // End of function f_IS_IVIM_GFQ_TI_02
group iviCommunication {
function f_IS_IVIM_COMM_BV_01_01() runs on ItsIvim {
// Local variables
const UInt8 c_gnNhBtpB := 2;
var IviIdentificationNumber v_iviIdentificationNumber;
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
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();
function f_IS_IVIM_COMM_BV_01_02() runs on ItsIvim {
// Local variables
const UInt16 c_gnNhBtpBPort := 2006;
var IviIdentificationNumber v_iviIdentificationNumber;
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
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;
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
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
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_IVIM_COMM_BV_01_02
function f_IS_IVIM_COMM_BV_02 () runs on ItsIvim {
// Local variables
const UInt8 c_gnHtUnc := 2;
var IviIdentificationNumber v_iviIdentificationNumber;
// Test control
if (PICS_IVIM_GENERATION) {
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 group iviCommunication
} // End of group iviMessageTransmission
group iviMessageReception {
} // End of group iviMessageReception
} // End of module ItsIvim_TpFunctions