TestCreateTesterAction
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
Creates a tester action. The condition is checked every time when the given trigger occurs. The check of the condition must be implemented in the given CAPL callback. The triggers have to be added with the TestAddTriggerTesterAction function.To execute the command call TestValidateTesterAction with the handle of the tester action.
Parameters
- actionText: Tester instruction of the popup window.
- heading: Heading of the popup window.
-
callback: CAPL callback which is called every time to check the condition when the trigger occurs. The callback is also automatically called once before the popup opens and once before the popup closes after timeout occurs.
Callback function must have the following signature:
The parameter trigger is the handle of the trigger which triggers the callback. The return value describes the result of the condition:
- 0: condition is not fulfilled. Continue waiting
- ≠0: condition is fulfilled. Stop waiting and end command
- resourceFile: The path of the resource image to show on the popup window.
- resourceCaption: The caption to show below the resource image.
Return Values
- > 0: Handle of the tester action.
- -1: General error.