AppError Function

Action

Places an error with the specified error message, proceeded by *** Error:, into the results file.

Syntax

AppError (sMessage)
Variable Description
sMessage The error message string for the results file. STRING.

Notes

AppError halts execution of the script or test case and invokes the recovery system, which attempts to return the application to its last-known base state, close any open windows, and so on.

Example

AppError ("Dialog not dismissed after {TIMEOUT} seconds")

The above syntax results in the following error message being placed in the results file, given that a TIMEOUT value of 15 is established:

*** ERROR: Dialog not dismissed after 15 seconds