Retrieve information and data

The Genero BDL API for GGC provides functions for retrieving information and data when testing applications.

Table 1. Functions for retrieving information and data
Function Description
getActions()
   RETURNS DYNAMIC ARRAY OF ggc.Action
Returns the list of actions in the tested application.
getButtonText(
    buttonName  STRING)
  RETURNS STRING
Get the text from the specified button.
getDialogComment()
  RETURNS STRING
Get the comment from a dialog.
getFieldValue(
  fieldName STRING)
  RETURNS STRING 
Return the value in a specified form field.
getFieldValues(
  name STRING)
  RETURNS DYNAMIC ARRAY OF STRING 
Return a list of values from a table, tree, or screen record.
getFieldTTYAttributes(
    name  STRING)
    RETURNS DYNAMIC ARRAY OF STRING
Return a list of the terminal (TTY) attributes of a form field.
getFocus()
  RETURNS STRING
Return the name of the current focused element.
getFormName()
  RETURNS STRING
Get the current form name.
getFormTitle()
  RETURNS STRING
Get the current form title.
getUserData(
  keyName STRING)
  RETURNS STRING 
Return the value of the user data.
getValue()
   RETURNS STRING 
Return the value in the current field.
getValues()
   RETURNS DYNAMIC ARRAY OF STRING
Returns the values of the current row of the current table, tree, or matrix.
getWidgetType(
  fieldName STRING)
  RETURNS STRING
Return the widget type of the specified field.
getWindowName()
  RETURNS STRING
Get the current window name.
getWindowTitle() RETURNS STRING
Get the current window title.