Newer
Older
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
var template INsapPrimitivesUp v_INsapPrimUp;
var template UtAtspEventInd v_utAtspEventInd;
// Test control
if (not((not PICS_INUDS) and (not PICS_CIC_l4))) {
log("*** TC_ATSP_DP_BI_02: ERROR: 'NOT PICS_INUDS AND NOT PICS_CIC_l4' required for executing the TC ***");
stop;
}
// Test component configuration
f_cf01Up();
// Test adapter configuration
// Preamble
// Clause 'Initial conditions'
v_CIstatus := f_initialCIstateActive();
// the IUT being in the CI state "active"
// Test Body
// Set MinimumUserPriority
v_writeParameter.paramNo := c_ciIParamNoMinUserPriority;
v_writeParameter.parameter.UserPriority := 128; // m_inUserPriorityAverage plus 1
v_writeValues := {v_writeParameter};
v_cfSetErrorList := f_cnSetIParameterValueCI(f_get_CI_LinkID(),v_writeValues, false );
// Clause 'then the IUT accepts the new value of this I-Parameter'
if (f_cnCheckOneIparamSetSuccess(c_ciIParamNoMinUserPriority, v_cfSetErrorList)) {
log("*** TC_ATSP_DP_BI_02: INFO: MI-Set.confirm was successfully executed ***");
} else {
log("*** TC_ATSP_DP_BI_02: ERROR: MI-Set was not properly acknowledged ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_error);
stop;
}
// Clause 'when'
// the IUT receives an IN-UNITDATA.request for transmission of a packet to a MAC broadcast address
f_utSendIN_UNITDATA_Request(
//source
m_inLLServiceAddr(
PX_IN_SAP_ADDRESS,
f_get_CI_LinkID()),
//destination
m_inLLServiceAddr(
PX_IN_SAP_ADDRESS,
f_get_DestinationVCI_BC_LinkID()),
m_inDataEmpty,
m_inUserPriorityAverage);
v_atspEventInd := mw_atspInd( mwd_inUnitDataInd(mw_inUnitDataInd(
//source
m_inLLServiceAddr(
PX_IN_SAP_ADDRESS,
f_get_CI_LinkID()),
//destination
m_inLLServiceAddr(
PX_IN_SAP_ADDRESS,
f_get_DestinationVCI_BC_LinkID()),
m_inDataEmpty,
?,
m_inUnitdataDefaultAP) ) );
// Clause 'then'
// the BC-VCI of the IUT correctly blocks transmission of the corresponding frame
tc_wait.start;
alt {
[] atspPort.receive(v_atspEventInd) {
tc_wait.stop;
log("*** TC_ATSP_DP_BI_01: INFO: Unexpected IN-UNITDATA.indication received ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_error);
}
[] atspPort.receive(AtspInd : { msgIn := ?, receptionTime := ? } ) -> value v_result {
log("*** TC_ATSP_DP_BI_01: INFO: An unexpected IN-UNITDATA.indication received, repeating check ***", v_result);
repeat;
}
[] tc_wait.timeout {
log("*** TC_ATSP_DP_BI_01: INFO: Expected time out ***");
f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);
}
} // End of 'alt' statement
// Postamble
f_poDefault();
f_cf01Down();
log("*** TC_ATSP_DP_BI_02: INFO: Postamble: done ***");
} // End of testcase TC_ATSP_DP_BI_02
} // End of group invalidBehavior
} // End of group handlingOfCDataPlane
} // End of module ItsAtsp_TestCases