on_error

Description

This event is fired whenever the test engine generates a error. The text of the error message is contained in the variabled 'message_text'. This lets you customize the output, displaying the error in a formatted page instead of a message box. To do so, simply display a page that references the 'message_text' variable. If the variable changes, the page will automatically update.

The message is also written to the log.

See also

on_warning
Log

Example

script on_warning is
  message (message_text, Message_warning)
end

script on_error is
  message (message_text, Message_error)
end