Loading Common/LibItsCommon_Functions.ttcn +20 −9 Original line number Diff line number Diff line Loading @@ -119,14 +119,14 @@ module LibItsCommon_Functions { } /** * @desc Send a command/request request primitive and wait for the command confirm response * @param p_commandReq The command/request request * @param p_commandConf The command/request confirm response * @desc Send a command request primitive and wait for the command confirm response * @param p_commandReq The command request * @param p_commandConf The command confirm response * @param p_discard Set to true if command confirm responses shall be discard, otherwise the function failed * @param p_result The command/request confirm response * @verdict Unchanged on success, fail otherwise */ function f_utCommandRequest( function f_utCommandRequestConfirm( in template (value) UtCommandRequest p_commandReq, in template (present) UtCommandConfirm p_commandConf, in boolean p_discard, Loading @@ -142,26 +142,37 @@ module LibItsCommon_Functions { [] utPort.receive { tc_wait.stop; if (p_discard == false) { log("*** f_utCommandRequest: ERROR: Event not correctly indicated at application layer ***"); log("*** f_utCommandRequestConfirm: ERROR: Event not correctly indicated at application layer ***"); f_selfOrClientSyncAndVerdict("error", e_error); } else { log("*** f_utCommandRequest: INFO: Another event indicated at application layer, repeating check ***"); log("*** f_utCommandRequestConfirm: INFO: Another event indicated at application layer, repeating check ***"); repeat; } } [] tc_wait.timeout { if (p_discard == false) { log("*** f_utCommandRequest: ERROR: Timeout while waiting for event check result ***"); log("*** f_utCommandRequestConfirm: ERROR: Timeout while waiting for event check result ***"); f_selfOrClientSyncAndVerdict("error", e_timeout); } else { log("*** f_utCommandRequest: INFO: Event not indicated at application layer ***"); log("*** f_utCommandRequestConfirm: INFO: Event not indicated at application layer ***"); } } } // end of 'alt' statement } // End of function f_utCommandRequest } // End of function f_utCommandRequestConfirm /** * @desc Send a command request primitive and do not wait for the command confirm response * @param p_commandReq The command request * @verdict Unchanged on success, fail otherwise */ function f_utCommandRequestWithoutConfirm( in template (value) UtCommandRequest p_commandReq ) runs on ItsAdapterComponent { utPort.send(p_commandReq); } // End of function f_utCommandRequestWithoutConfirm /** * @desc Capture the next event sent to the Upper Tester Loading Loading
Common/LibItsCommon_Functions.ttcn +20 −9 Original line number Diff line number Diff line Loading @@ -119,14 +119,14 @@ module LibItsCommon_Functions { } /** * @desc Send a command/request request primitive and wait for the command confirm response * @param p_commandReq The command/request request * @param p_commandConf The command/request confirm response * @desc Send a command request primitive and wait for the command confirm response * @param p_commandReq The command request * @param p_commandConf The command confirm response * @param p_discard Set to true if command confirm responses shall be discard, otherwise the function failed * @param p_result The command/request confirm response * @verdict Unchanged on success, fail otherwise */ function f_utCommandRequest( function f_utCommandRequestConfirm( in template (value) UtCommandRequest p_commandReq, in template (present) UtCommandConfirm p_commandConf, in boolean p_discard, Loading @@ -142,26 +142,37 @@ module LibItsCommon_Functions { [] utPort.receive { tc_wait.stop; if (p_discard == false) { log("*** f_utCommandRequest: ERROR: Event not correctly indicated at application layer ***"); log("*** f_utCommandRequestConfirm: ERROR: Event not correctly indicated at application layer ***"); f_selfOrClientSyncAndVerdict("error", e_error); } else { log("*** f_utCommandRequest: INFO: Another event indicated at application layer, repeating check ***"); log("*** f_utCommandRequestConfirm: INFO: Another event indicated at application layer, repeating check ***"); repeat; } } [] tc_wait.timeout { if (p_discard == false) { log("*** f_utCommandRequest: ERROR: Timeout while waiting for event check result ***"); log("*** f_utCommandRequestConfirm: ERROR: Timeout while waiting for event check result ***"); f_selfOrClientSyncAndVerdict("error", e_timeout); } else { log("*** f_utCommandRequest: INFO: Event not indicated at application layer ***"); log("*** f_utCommandRequestConfirm: INFO: Event not indicated at application layer ***"); } } } // end of 'alt' statement } // End of function f_utCommandRequest } // End of function f_utCommandRequestConfirm /** * @desc Send a command request primitive and do not wait for the command confirm response * @param p_commandReq The command request * @verdict Unchanged on success, fail otherwise */ function f_utCommandRequestWithoutConfirm( in template (value) UtCommandRequest p_commandReq ) runs on ItsAdapterComponent { utPort.send(p_commandReq); } // End of function f_utCommandRequestWithoutConfirm /** * @desc Capture the next event sent to the Upper Tester Loading