メインコンテンツまでスキップ
バージョン:25.2

assertionFailedDelegate

  • global property

  • new in 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 assertionFailedDelegate object is set, it should implement a "to handle assertionFailed" 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. The second parameter is the name of the assertion behavior that was invoked: "error", "warning", "exception", or "pause". The assertionFailed handler can change the behavior if desired.