This a Groovy example that shows how to use the GenRocket API to build an absolute minimum Scenario from scratch and output one row to an XML file.
Activity Diagram
The activity diagram defines the steps and API calls necessary to load, modify and run the Scenario.
Example Using Native API
The following Groovy code example makes native API calls.
Groovy Source Code Example Using REST
The following Groovy code example makes REST API calls. To makes calls to REST, the GenRocket Realtime REST Engine needs to be started in a local terminal. This example also uses a helper method, makeRequestAndRetrieveResponse, that handles the actual HTTP request and response.