Artillery
$ artillery Official Med RiskArtillery (artillery) runs YAML-defined load tests and ad-hoc artillery quick checks across HTTP APIs, WebSockets, Socket.IO, and Playwright browser scripts. Passing --output report.json captures detailed latency percentiles, error counts, and custom metrics for CI thresholds.
npm install -g artillery Generates sustained concurrent traffic and executes local Playwright/Node test scenarios directly from shell or CI runners.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --output <file>.json for full structured test telemetry, --quiet, and non-interactive CI execution via artillery run and artillery quick.
- Structured JSON output via
artillery run --output report.json - Built-in
ensurethresholds for non-zero CI exit codes
Load tests can overwhelm remote targets or trigger rate limits if --count/phases are misconfigured; requires explicit target discipline.
- Bounded request counts in
artillery quickandensureassertions
Distributed globally via npm/npx across macOS, Linux, and Windows; requires Node.js runtime and optional Playwright browsers.
- Standard
npm install -g artilleryandnpx artillery
Supports multi-step user journeys, CSV parameterization, WebSockets, and real browser Playwright load testing in one CLI.
- Covers HTTP, WebSockets, Socket.IO, and Playwright engines
First-party open-source project (artilleryio/artillery) under MPL-2.0 with active releases and cloud ecosystem.
- Official
artilleryio/artilleryrepository
Extensive official documentation covering CLI flags, engines, and JSON report schemas.
- Comprehensive docs at
https://www.artillery.io/docs
Security, Auth & Guardrails
Reads optional target auth headers from test scripts or env vars; Artillery Cloud uses ARTILLERY_CLOUD_API_KEY if enabled.
MPL-2.0 open-source CLI is free; optional distributed cloud runner features are commercial.
# Artillery Agent Rules - Always pass `--output <file>.json` when capturing metrics for automated parsing. - Keep `artillery quick --count` and `--num` small and never load-test production or unowned URLs without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
artillery quick --count 5 --num 10 --output quick-report.json http://localhost:3000/health
Sends a small fixed burst of requests against localhost and saves metrics to quick-report.json.
Controlled Writes & Previews
artillery run --output report.json test.yml
Runs the configured phases in test.yml and writes full latency/counter summaries to report.json.
Strengths for Agents
- +
--output report.jsoncaptures rich percentile latency and status-code breakdowns. - + Unifies API load tests and Playwright browser load tests under one YAML format.
Caveats & Pitfalls
- ! JSON metrics write to a file via
--outputrather than directly to stdout, while stdout prints periodic progress summaries. - ! Node.js installation footprint is heavier than single-binary Go/Rust load generators.