Recording from the CLI
Recording Requests
The basic method for recording requests uses the intercept commands directly:
Command
stoobly-agent intercept configure --mode record
stoobly-agent intercept enableOptions
To see more options for the command:
$ stoobly-agent intercept configure -h
Usage: stoobly-agent intercept configure [OPTIONS]
Configure intercept
Options:
--mode [mock|record|replay]
--policy [all|found]
-h, --help Show this message and exit.Recording with Scaffold Workflows
When using Stoobly scaffold for E2E testing or multi-service setups, you can record requests using scaffold workflows. The approach differs based on your runtime:
Docker Runtime
For Docker runtime, use Makefile commands to run the record workflow:
Note: With Docker runtime and E2E testing, your tests typically run automatically in the entrypoint container, and all HTTP requests are recorded.
Local Runtime
For local runtime, use CLI commands directly:
Note: Make commands (e.g., make -f .stoobly/services/Makefile record) are Docker-specific only. Local runtime uses stoobly-agent scaffold workflow up/down commands directly.
Additional Recording Options
You can configure recording behavior using intercept options:
For more details on scaffold workflows, see:
How to Run a WorkflowLast updated
Was this helpful?