Skip to main content
Version: 25.4

assertionPassedDelegate

Global Property (Added in SenseTalk 2.06)

The assertionPassedDelegate and the assertionFailedDelegate are global properties, which can be used to set objects to receive "assertionPassed" or "assertionFailed" messages when an assert command is executed.

If the assertionPassedDelegate object is set, it should implement a to handle assertionPassed handler. This handler can be used for such tasks as logging or otherwise recording or analyzing the assertions. The handler receives a first parameter which is a message text describing the assertion. An assertionFailed handler will also receive a second parameter which is the name of the assertion behavior that was invoked: "error", "warning", "exception", or "pause". The assertionFailed handler can change the behavior if desired.

Further Reading

Resources in our other reference manuals.

Related terms in the SenseTalk Dictionary.