api-test-app is a CLI demo/test utility for exercising Firebolt C++ client APIs.
It can connect to a local mock service, a platform service, or any endpoint set through an environment variable.
It can be run in either interactive or auto mode.
In interactive mode, the user can select which APIs to call via a menu system.
In auto mode, every API method is called sequentially, with no input from the user.
All output is to stdout.
The app binary name is:
api-test-app
api-test-app [--auto] [--mock] [--platform] [--url <URL>] [--dbg] [--help]-
--autoRun all methods for all interfaces automatically. -
--mockUse local mock endpoint:ws://127.0.0.1:9998/. -
--platformUse platform endpoint:ws://127.0.0.1:3474/. -
--url URLSet the WebSocket endpoint to the specified URL. -
--dbgEnable debug logging. -
--helpPrint usage and exit.
The app chooses the WebSocket endpoint in this order:
--mockor--platformor--url URL(if provided)FIREBOLT_ENDPOINTenvironment variable (if set)- Default fallback:
ws://127.0.0.1:9998/
At startup, the app prints the selected URL:
Using firebolt URL: <url>
- Shows a menu of interfaces.
- After selecting an interface, shows its methods.
- Runs selected methods on demand.
- Runs every method of every interface sequentially.
- Prints each interface and method before execution.
When input is piped in, the app automatically switches to autorun behavior for command processing and reads one method name per line.
Each line must match a method string exactly (for example, Accessibility.highContrastUI).
If a method is unknown, it prints:
Method not found: <input>
api-test-app --mockapi-test-app --platform --dbgexport FIREBOLT_ENDPOINT="ws://192.168.1.50:3474/"
api-test-appapi-test-app --auto --mockcat test-suite.example | api-test-app --mock- The app attempts to connect and waits up to 2 seconds for initial connection.
- It exits with non-zero status if connection setup fails or times out.
- On completion, it disconnects cleanly.
The local helper script build.sh in this directory:
- Builds the app in
build/ - Runs
build/api-test-app --mockby default - Supports options such as
--clean,--no-run,--just-run, and--sysroot