ggc.notifyCheckFailureEx
Report a check failure, and provide the error information: filename, line number, and error message.
Syntax
notifyCheckFailureEx(
fileName STRING,
lineNo INTEGER,
message STRING )
- The
fileNameis the filename where the check failure occurred. - The
lineNois the line number in the file. - The
messageis the details of the error.
Usage
You can use this method to notify the scenario user of a check failure. This is an implementation
of ggc.notifyCheckFailure function where you must provide the error
information: filename, line number, and error message. If you expect a failure to be recorded and
reported at the end of the scenario, call this function when your check fails. At the end of the
scenario all failures will be listed, formatted
as:
filename:lineno:messageFor
example:/home/f4gl/app/myapp.4gl:82:error: The action 'hello' is not found.Calling
this function does not stop the scenario. For example:
IF (ggc.getFormName() != "bad price") THEN
CALL ggc.notifyCheckFailureEx("test.4gl",2, SFMT("Form name is not valid, expected: 'bad price', got: '%1'", getFormName()))
END IF