Genero BDL API for GGC
The Genero BDL API for GGC provides types, functions, and methods for writing and generating tests in Genero BDL.
Import the API
The module $GGCDIR/lib/ggc.42m defines the API. To implement it in your
test, 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. |
|
Set a delay between test instructions. |
|
Adjust the pace of ggc.wait(delay)
commands. |
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 |
---|---|
|
Return the value in a specified form field. |
|
Return a list of values from a table, tree, or screen record. |
|
Return the name of the current focused element. |
|
Get the current form name. |
|
Get the current form title. |
|
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 current column in a table. |
|
Get the current row of the table. |
|
Get the table's current offset value. |
|
Get the table size. |
Function | Description |
---|---|
|
Registers a scenario function for testing. |
|
Return the Id of the Scenario. |
|
Plays a scenario for testing. |
|
Ends a scenario for testing. |
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. |
|
Fill a dynamic array with program arguments. |
Function | Description |
---|---|
|
Registers a front call function for testing. |
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. |