Newer
Older
// LibIts
import from LibIts_TestSystem all;
import from LibIts_Interface all;
group defaults {
/**
* @desc basic default behaviour handling
* @remark none
* @param none
*/
altstep a_basicDefault() runs on ItsFa {
[] camPort.receive(mw_camInd ( mw_camMsg_any )){
setverdict(fail, "*** a_basicDefault: FAIL: CAM message received in default ***");
[] camPort.receive {
setverdict(fail, "*** a_basicDefault: FAIL: event received on CAM port in default ***");
setverdict(fail, "*** a_basicDefault: FAIL: a timer expired in default ***");
stop;
}
}//end altstep a_basicDefault
} // end of defaults
group preambles {
/**
* @desc Initialize the IUT
* @remark No specific actions specified in the base standard
* @param none
*/
group postambles {
/**
* @desc Global postamble - stops the MTC
* @remark No specific actions required so far
* @param none
*/
function f_postamble() runs on ItsFa {
log("*** f_postamble: INFO: postamble ***");
} // end of function
} // end of upperTester
group upperTester {
function f_upperTester () {
// crash signal activated
// crash signal deactivated
} // end of function
* @param p_camPtc returned Facility component variable
*/
/**
* @desc Wait for component to finish and unmap CAM ports
function f_ptcCamDown(in ItsFa p_ptcCam) runs on ItsMtc {
tc_guard.start;
alt {
[] p_ptcCam.done {
tc_guard.stop;
}
[] tc_guard.timeout {
log("*** f_ptcCamDown: ERROR: Timeout while waiting for component ***");
setverdict(inconc);
}
}
unmap(p_ptcCam:camPort);
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
group externalFunctions {
/**
* @desc Generate a timestamp of the cureent time to be used in a generationTime field
* @return TimeStamp<br>
*/
external function fx_generateTime()
return TimeStamp;
/* @desc Wrapper function for fx_generateTime
* If external function returns FncRetCode "e_error" Test execution stops
*
* @see xf_generateTime
* @see FncRetCode
*
*/
function f_generateTime()
return TimeStamp {
//Variables
var TimeStamp v_generationTime:=0;
v_generationTime := fx_generateTime();
if (v_generationTime!=0)
{
return v_generationTime ;
log("**** f_generateTime: INFO: OK - generationTime = " & int2str(v_generationTime) & " ****");
}
else {
log("**** f_generateTime: ERROR: timestamp could not be generated ****");
setverdict( inconc ) ;
stop;
f_postamble();
}
} // end function f_triggerMsDsaReq_sf
} // end of externalFunctions