Gatling can be used both for load testing and for functional API testing. An popular approach to creating these tests is to observe HTTP traffic via the Chrome Developer Tools or a proxy server. This tool will take HTTP traces as input and generate Gatling simulations.
Run the CLI using the provided shell script:
./ggen <filename>.http
Ex: ./ggen get_abc.httpOr use Gradle directly:
./gradlew run --args=get_abc.httpexport the GGEN_TARGET_DIR environment variable to set the output directory.
Project-level configuration can be set using a .ggen file in the target directory.
Example .ggen file:
encodeFunction=Utils.encodeForOdata
Support OData format https://www.odata.org/
Record a live browser session via Google Developer Tools API. (experiment with MCP server: https://github.com/ChromeDevTools/chrome-devtools-mcp)
Use Playwright to take screenshots during the recording session.
For reference see: https://docs.gatling.io/reference/script/http/recorder/
One of the main purposes of this project is to explore using various AI code generators such as CoPilot, Devin, Augment, OpenCode, etc.