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. |
|
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 |
---|---|
|
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. |
|
Configure GGC to stop if action fails. |
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 |
---|---|
|
Set the application name. |
|
Registers a scenario function for testing. |
|
Returns the Id of the Scenario. |
|
Plays a scenario for testing. |
|
Ends a scenario for testing. |
|
Stops the GGC. |
|
Stops the BDL server if it was started by the scenario. |
|
Finalizes the scenario execution and performs additional cleanup. |
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. |
|
Report a check failure, and provide the error information: filename, line number, and error message. |
|
Report a scenario failure. |
|
Report a scenario failure, and provide the error information: file name, line number, and error message. |
|
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. |