Customizing Alerts

Alerts are pop-up windows that are implemented by a JavaScript function called Alert. This function is called from the onload section of HTML pages.

Example: Alert in an HTML response


The error detection mechanism detects any alert contained in a HTML response and treats it as being an error of SEVERITY_TRANS_EXIT severity. Known alerts that are to be ignored or reported with another severity can be specified in the AlertSeverities.csv file.

Each known alert message is represented by a single row in the AlertSeverities.csv file, across two columns:
  • Severity: Specifies the severity of error that is to be raised. Values in this column must begin with N, S, I, W, E, or T (signifying the severities None (=ignore), Success, Informational, Warning, Error or Transaction Exit).
  • Alert String: The text of the alert string (or fragment thereof).

Alert messages are reported with the actual alert text, prefixed with the gsAlertMsgPrefix global variable. This variable contains an empty string by default, but can be assigned any value at anytime during script execution to meet your reporting needs.