checkError()

Checks if an expected error message is available, and it has the expected value.

Syntax

checkError(
    errorText STRING ) RETURNS()
  1. errorText is the text of the error message to test.

Usage

Use checkError() to check if an error message exists. If the message is not found, an error message is generated for the test report. Only a failed check is reported.

CALL ggc.checkError("Failed to register customer")