Scenario functions

The Genero BDL API for GGC provides functions for working with scenarios.

The following functions allow you to register and play scenarios for testing.

Table 1. Functions for working with scenarios
Function Description
setApplicationName(
    name  STRING )
Set the application name.
registerScenario(
    FUNCTION function_name )
Registers a scenario function for testing.
getScenarioId()
  RETURNS STRING
Returns the Id of the Scenario.
play()
Plays a scenario for testing.
end()
Ends a scenario for testing.
stop()
Stops the GGC.
stopBDLServer()
Stops the BDL server if it was started by the scenario.
cleanup()
Finalizes the scenario execution and performs additional cleanup.