Genero BDL API for GGC
The Genero BDL API for the GGC provides types, functions, and methods for generating or writing tests in Genero BDL.
Import the API
The ggc.42m module in the GGCDIR/lib/ directory defines
the API. To implement it in your test, you need to add the instruction IMPORT FGL
ggc
to your Genero BDL test module.
Types | Description |
---|---|
|
The FrontCallAnswer type defines a record for retrieving the result of a front call. |
|
The FrontCallRequest type defines a record for retrieving front call request details. |
|
The Message type defines a record for retrieving errors and messages. |
|
The statistics type defines a record for retrieving test result statistics. |
Function | Description |
---|---|
|
Execute an action by name. |
|
Send a key by name. |
|
Execute an ON IDLE action. |
|
Execute an ON TIMER action. |
|
Adjust the pace of ggc.wait(delay)
commands. |
|
Set a delay between test instructions. |
Function | Description |
---|---|
|
Set value in a form field. |
|
Set focus on a field. |
|
Set value in the current field. |
Function | Description |
---|---|
|
Get the column value of a table, tree, or screen record at the specified row. |
|
Get column values of a table, tree, or screen record. |
|
Hide a table column. |
|
Select a cell in a table. |
|
Select a table row. |
|
Update a multiple row selection state. |
|
Set the table page size offset value. |
|
Set the table size. |
|
Show a hidden table column. |
|
Sort a table. |
Function | Description |
---|---|
|
Collapse a node (row) in a tree view. |
|
Expand a node (row) in a tree view. |
Function | Description |
---|---|
|
Returns the list of actions in the tested application. |
|
Get the text from the specified button. |
|
Get the comment from a dialog. |
|
Return the value in a specified form field. |
|
Return a list of values from a table, tree, or screen record. |
|
Return a list of the terminal (TTY) attributes of a form field. |
|
Return the name of the current focused element. |
|
Get the current form name. |
|
Get the current form title. |
|
Return the value of the user data. |
|
Return the value in the current field. |
|
Returns the values of the current row of the current table, tree, or matrix. |
|
Return the widget type of the specified field. |
|
Get the current window name. |
|
Get the current window title. |
Function | Description |
---|---|
|
Return the current error message. |
|
Return the current message. |
Function | Description |
---|---|
|
Return the state of the specified action. |
Function | Description |
---|---|
|
Get the number of columns in a table. |
|
Get a table column name. |
|
Get the column value of a table, tree, or screen record at the specified row. |
|
Get column values of a table, tree, or screen record. |
|
Get the current column in a table. |
|
Get the current row of the table. |
|
Get the table's current offset value. |
|
Get the table size. |
|
Get the number of visible rows of the table or tree. |
|
Returns a list of the terminal (TTY) attributes of the focused table, tree, or matrix cell. |
Function | Description |
---|---|
|
Retrieve the application name. |
|
Retrieve the number of running child applications. |
|
Get the current session identifier. |
|
Retrieve the application state. |
|
Retrieve the test session statistics. |
|
Report a check failure. |
|
Show test statistics. |
Method | Description |
---|---|
|
Returns the front call name. |
|
Returns the front call module name. |
|
Returns the parameter count to the front call. |
|
Returns the parameter values to the front call. |
|
Returns the return values count to the front call. |
Method | Description |
---|---|
|
Initializes a front call answer object with "Function not found" error. |
|
Initializes a front call answer object with "Module not found" error. |
|
Leave the front call unprocessed. |
|
Adds an integer return value. |
|
Adds a string return value. |
|
Initializes a front call answer object with "Stack error" error. |
|
Initializes a front call answer object with SUCCESS
status. |
|
Initializes a front call answer object with custom error and error message. |