Server-side runs or the CLI: where should your API tests run?

The same collection or test suite can run in two places. The CLI sends requests from wherever it runs: your laptop, a CI runner, a server in your network. Server-side runs, started with the Run API or a trigger URL, send them from the Requestarium server, so the caller needs nothing installed.

Both use the same requests, scripts, checks and run history. They differ in what they can reach and what they support.

Side by side

CLI (requestarium run, run-collection, run --suite)Server-side (Run API, trigger URLs)
Sends requests fromyour machine or CI runnerthe Requestarium server
Reachesanything that machine can reachpublic addresses (on requestarium.com)
NeedsNode.js 20.10+ and the CLI, a tokenan HTTP call and a token or the trigger URL
ProtocolsHTTP and GraphQLHTTP and GraphQL; gRPC and WebSocket listed as skipped
Iterationsup to 100, or a data fileup to 20
ReportsJSON, JUnit, HTML files; GitHub Actions summaryJSON from the API, JUnit at /api/v1/runs/{id}/junit
Secret managersAWS, Azure, Google Cloud, with your cloud sign-innot used
Run history sourcecli or ci, with branch, commit, job linkapi or hook

When the CLI is the answer

  • The API isn't public. Staging behind a VPN, a service in a private Kubernetes cluster, localhost in a docker-compose job. Requestarium's server can't reach those, by design; the CLI in a runner that can reach them can.
  • You fetch secrets at run time from AWS Secrets Manager, Azure Key Vault or Google Cloud Secret Manager. The CLI does this from your runner, with your cloud credentials, and Requestarium never sees them.
  • You need client certificates, a proxy or a custom CA (--cert, --proxy, --ca-cert).
  • You want reports as files in the CI job: JUnit for the test view, HTML as an artifact.

See running API tests in GitHub Actions and the other CI guides.

When a server-side run is the answer

  • The caller can only send a webhook. A deploy tool, a Git host, a scheduler. A trigger URL starts a run with one POST, and can wait for the result and answer 422 on failure.
  • You don't want a CI step to maintain. No Node.js, no CLI version to keep up to date.
  • Your own code decides when to test. The Run API takes a target, an environment and variables, and gives back JSON or JUnit, or calls you back.

On a self-hosted Requestarium, the server is inside your network, so server-side runs reach what it can reach. An administrator can also turn server-side sending off entirely.

Same results either way

Wherever a run happens, it lands in the same history, with its source. Notifications to Slack, Teams or a webhook fire for both, and the status badge in your README follows both. So you can mix: a CLI job in CI for every pull request against a private preview, and a trigger URL that your deploy tool calls after each production release.

Limits of server-side runs

60 runs started per minute per token, 2 runs at a time per organization (more wait in the queue), 10 minutes per run, at most 20 iterations. Suites run without their delay and retry settings on the server.