Action

The Action type defines a record for retrieving actions in the tested application.

Syntax

PUBLIC TYPE Action RECORD
     name STRING,
     active BOOLEAN,
     text STRING              
END RECORD
  1. name is the name of the action.
  2. active is the status of the action, whether enabled or disabled.
  3. text describes the action.

Usage

You can use it to retrieve actions in an application testing actions. A variable of the type Action must be defined, for example, calling the function getActions():

DEFINE actions DYNAMIC ARRAY OF ggc.Action
    CALL ggc.getActions() RETURNING actions
    DISPLAY "Actions:"
    FOR i = 1 TO actions.getLength()
        DISPLAY "ac", i, " = ", actions[i]
    END FOR