checkError()

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

Syntax

checkError(
    errorText STRING ) RETURNS()
  1. errorText is the expected 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")