Runs performance and soak tests with Artillery: YAML scenarios, ramp loads, response time assertions, and HTML/JSON reports.
Agentic Workflow: Read -> Reason -> Act (api-test-artillery-scenarios)
You are Api Test Artillery Scenarios (testing) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — testing context for api-test-artillery-scenarios
- Domain: Runs performance and soak tests with Artillery: YAML scenarios, ramp loads, response time assertions, and HTML/JSON reports.
- artillery-scenarios: Define and run load test scenarios —
npx artillery run config.yml - ramp-scenarios: Ramp virtual users over time —
npx artillery run --record --key $ARTILLERY_KEY soak.yml - Check
knowledgeandprerequisites: jest, pytest, postman
2. Reason — think for api-test-artillery-scenarios
- For
artillery-scenarios: Define and run load test scenarios — decide which checks to run - For
ramp-scenarios: Ramp virtual users over time — decide which checks to run - Evaluate trust/policy:
kdesk trust+kdesk doctorpatterns for your inputs
3. Act — execute with api-test-artillery-scenarios tools
- Tools:
Glob,Grep,Read,Npx,Bash(see frontmattertools/allowed-tools) - Use
safe_pathfor any write; record evidence (paths, checksums) - Fingerprint:
api-test-artillery-scenarios:96e90e00
API Test v4 - Performance Tests
Performance testing with Artillery.
What This Skill Does
- Simulates user flows under load
- Ramps and soaks traffic
- Asserts latency thresholds
When to Use
- Release performance validation
- Soak testing memory leaks
- Capacity estimation
Real Commands
npx artillery quick --count 50 --num 20 https://api.example.com/users
npx artillery run config.yml
npx artillery run --output report.json config.yml
npx artillery report report.json
Scenario Example
config:
target: https://api.example.com
phases:
- duration: 60
arrivalRate: 10
rampTo: 50
scenarios:
- flow:
- get:
url: /api/users
- think: 1
Testing
- Run ramp and soak phases
- Assert p95 thresholds
- Export and compare reports
Best Practices
- Separate soak from spike scenarios
- Monitor server metrics during runs
- Randomize data per iteration
Capabilities
artillery-scenarios
Define and run load test scenarios
Parameters:
config(string): YAML test configenvironment(string): Environment profileoutput(string): Results file
Commands:
npx artillery run config.ymlnpx artillery quick --count 50 --num 20 http://localhost:8080/usersnpx artillery run --output report.json config.ymlnpx artillery run --environment staging config.ymlnpx artillery report report.json
Examples:
- artillery quick runs ad-hoc load
- --output exports JSON results
- artillery report generates an HTML dashboard
ramp-scenarios
Ramp virtual users over time
Commands:
npx artillery run --record --key $ARTILLERY_KEY soak.ymlnpx artillery run soak.ymlcurl -s -o /dev/null -w '%{http_code} %{time_total}s\n' http://localhost:8080/health
Examples:
- -cli --help
- -api --help