Skip to main content

TestCheckCondition

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

Description

Checks whether the specified condition was already injured. This function can be used both within a test case and also on test module level.

Parameters

  • aAuxHandle: Event object, for example a check from the TestService Library. Specified is the handle that is returned on creation of a check. This function can be used both within a test case and also on the test module level.
  • aEventText: Textual name of an event whose occurrence should be monitored. This event can be triggered with the function TestSupplyTextEvent.

Return Values

  • 1: Condition was already injured at least once
  • 0: Condition was not yet injured
  • < 0: The function cannot be executed because, for example, the specified condition does not exist

Example

Example 1 Add check as condition
Example 2 Add text event as condition
TestAddConditionTestSupplyEvent