Example tests
Don't start from a blank page: download an example, open it in Spitfire with Tests → Open JSON, change the address and values for your system and save. The same file runs with the CLI too: spitfire run file.json. For your own API the quickest start is Tests → From API document (OpenAPI, Postman or a browser recording).
Log in, browse, cart, checkout
Every virtual user logs in once, lists products with the returned token, adds the first one to the cart and checks out. Think times mimic a real user; adding to the cart and checking out change data, so the run asks for approval first. The checkout step has its own p95 threshold.
Constant request rate and a spike
200 requests a second whatever the response time; at minute four a second scenario climbs to 800 requests/s in 30 seconds. The run stops itself if the error rate passes 2%; iterations skipped because the system could not keep up have a threshold too.
Kafka: produce and consume
Produces 500 order events a second (key, JSON body, header) while 10 consumers read the same topic and check the body. The produce acknowledgement's p95 must stay under 50 ms.
Needs: a Kafka connection named "kafka" under Connections.
PostgreSQL read load
Single-order reads with random ids and an hourly summary query. It only reads; add a write and Spitfire asks for approval before the run.
Needs: a PostgreSQL connection named "orders-db" under Connections, and an orders table.
"Open JSON" came with 0.5.13; on earlier releases paste the file into a new test's JSON tab. Every field of a test definition: installation guide.