Tests
Tests builds on your collections. You write checks once, on the request, and then group requests into suites that you run, compare and schedule. A suite never copies a request: it points at it, so edits to the request show up in every suite that uses it.
Checks live on the request
Open a request and its Tests tab. Add assertions (status code, a header, a JSON path, response time) or a pm.test(...) post-response script. Folders and collections can add assertions that every request inside them inherits. Send shows the results under Test results, and they run the same way in collection runs, the CLI and CI.
The Tests tab also shows how many suites use the request.
Suites
A suite runs requests from your collections left to right. Open Tests, pick a suite with the switcher next to its name (or choose New suite there), and build it on the Builder tab:
- the Requests panel on the left lists your collections, folders, requests and flows;
- the canvas in the middle shows the suite: one card per request or flow, in run order;
- the Edit panel on the right edits whatever card or package you select.
A suite can mix requests from several collections. Each request runs with its own collection's variables, auth and scripts. Values a script sets are passed on to the requests after it, as in a collection run.
Adding requests
Tick requests, or a whole folder, and press Add to suite, or drag them onto the canvas. Choose how they are added:
- Separate steps: one card per request.
- One package: the requests are grouped in a hand-picked package (see below).
- Package that follows the folder: when you pick every request of a folder, the suite can follow the folder instead, so requests added to the folder later run too.
Drag a collection onto the canvas to follow the whole collection the same way. Into chooses where new requests go: the end of the suite or a hand-picked package. You can also drop requests straight onto a package.
The By rule tab adds a rule package: every request of a collection (or one folder) that matches a method, a piece of the URL and a piece of the name. The match list shows what the rule takes now, and the rule is worked out again each time the suite runs, so new requests that match are picked up without editing the suite.
Not covered lists the requests of the suite's collections that the suite doesn't run yet, with Add all. Requests already in the suite are marked in the tree (added, or via a folder, collection or rule package), and Hide requests already in the suite keeps the list short.
Packages
A package groups related requests into one card on the canvas. A closed package shows its name, where its requests come from and, after a run, how many failed; open it to see its requests as cards inside. Close all and Open all are at the bottom left of the canvas.
- A hand-picked package holds the requests you put in it. Use Add requests on the package, drop requests on it, or select a request card and choose Put in a package.
- A folder or collection package follows its source. Removing a request from it skips that request in this suite only; restore brings it back.
- A rule package follows its rule, which you can change in the Edit panel.
Checks you add to a package apply to each of its requests. Ungroup turns a package back into separate request cards and keeps its checks on each of them. Empty package on the canvas starts a hand-picked package to fill; it is saved once it has a request.
Editing and removing
Select a card to edit it on the right:
- Request: the method and URL of the saved request. Save to Collections changes the request itself, so every suite that uses it runs the new version.
- Role: Test, Setup or Clean up (see Setup, clean-up and variables).
- Checks: one-click checks (status, response time, content type, a JSON field), Write a check… for any assertion, or Generate from the last response after a run. Choose where new checks go: Only in this suite, or Save to the request, which adds them to the request's Tests tab in Collections so every suite and collection run checks them. The request's own checks and the ones it inherits from its folder and collection are listed under them with their last result; × on a saved check removes it from the request.
- Save to variable: values of the response that later steps use, see below.
- Move left and Move right change the run order within the card's group.
On the canvas each request shows how many checks it runs, or how many passed in the last run, and no checks when only the status code is checked. Variables a step saves show under it as → name.
Remove a card or a package with the × on it, the Remove button, or the Delete key. Undo in the message at the bottom brings it back. Press Save in the header to keep your changes.
The Settings tab holds the suite's name, project, environment, iterations, delay, retries and stop-on-failure. You can also start a suite with Save as suite in a collection's runner.
If a request, folder, collection or flow a suite points at is deleted, its card shows a warning and it is skipped.
Tests are in every plan. The Free plan stores up to 3 suites in the organization, with up to 30 items in each; Pro, Team and Enterprise have no limit. Running suites, in the app, the CLI, CI or on the server, is never limited. When a limit is reached, saving shows a message naming it; existing suites keep running, and a suite that is already over the limit after a downgrade can still be edited as long as it doesn't get more items.
Setup, clean-up and variables
Many tests need data first: log in, create an account or a balance, then test what uses it.
- Set a request, flow or package to Setup in its Role. Setup steps run first, in a Setup lane at the start of the canvas. If one fails, the tests after it are not run (their results would say nothing), and the run counts as stopped.
- Clean up steps run last, in their own lane, and always run, even after a failure, so test data is removed.
- Save to variable on a request saves a value of its response, a JSON path such as
$.access_tokenor a header such asLocation, as{{name}}for every step after it. After a run, the fields of the response are offered as one-click suggestions. A value that is missing fails the step, so a setup login without a token stops the suite. - Flows get the variables saved before them as input, so a flow can use
{{token}}. On a flow, Save to variable reads one of its steps' response by step name (empty means the last step), for example the id a "Create balance" step returned.
Scripts in a request's Tests tab (pm.environment.set(...)) still work too: variables they set are seen by the steps after it.
Improving a suite with AI
The AI tab next to Edit on the right drafts changes to the suite from a description, for example "save the token from the login request and use it everywhere" or "add checks from the last responses".
- Pick Cloud (the model your Requestarium server is set up with), Local (Ollama, LM Studio or another OpenAI-compatible server on your computer) or Hybrid, which works like Cloud for suites. The model settings are shared with Build with AI in Flows and with Settings → Profile → Local AI. Address can be changed for any runtime, for example
http://127.0.0.1:1235/v1when LM Studio runs on port 1235; press ↻ next to Model to load the list. See Local AI models for setup and recommended models. - The suite, its checks, the variables it saves and the last run (statuses, failed checks and the start of each response) are sent. Tokens, passwords, keys and secret-looking fields are removed first.
- The answer is a list of changes: add a check (to this suite or saved on the request), save a variable, make a step Setup or Clean up, or add a saved request. Each one has a reason. Keep or Skip them one by one, or Keep all.
- Kept changes edit the suite like any other edit, so press Save to keep them. Checks saved on a request go to Collections at once.
The server checks every change: one that names a request or step that isn't there, or an unknown check, is left out and listed under the changes.
The suite also warns when a variable its requests use, such as {{host}}, isn't set in the picked environment but is set in another one, and offers that environment. Variables a script or a Save to variable step sets don't count. A new suite starts with the environment picked in Collections.
Running a suite and reading results
Run suite sends the requests from your computer. With Show last run on, each card shows whether it passed and how long it took, a package shows how many of its requests failed, and the Edit panel shows each check's result and a failed request's response. The header shows the last run and how many of the requests in the suite's collections the suite covers.
The Runs tab shows a summary (passed, failed, errors, flaky, pass rate, p95) and a row per request. Select a row to see every check with its expected and actual value, failures first.
- Rerun failed runs only the requests that didn't pass.
- Flaky marks a request that both passed and failed on the same environment and commit in recent runs.
- The trend column shows the request's recent results and timings.
- HTML report and JUnit download the run you just finished, to share with QA or attach to a ticket.
- Notify in the header sends failed, recovered or every run to Slack, Teams, a webhook or a flow.
- History lists earlier runs, from the app and from the CLI. Open one to see its results, and Changes since… lists what newly fails, what was fixed and what got slower.
Runs are saved to the history when you can send requests in the workspace. Each run also appears in the run history of every collection it touched.
Running suites from the CLI and CI
The suite's Settings tab shows the command to run it anywhere; click it to copy:
requestarium run --suite SUITE_ID --env Staging --save-run --junit report.xmlAdd --max-p95 800 or --min-pass-rate 98 to fail the run on slow responses or a low pass rate. To run a suite on a schedule, schedule that command in your CI. See the CLI reference.
Tests made before suites
Tests that were kept only in this browser by the earlier Tests screen are offered for import once per workspace. A test whose request still exists with the same method and URL becomes a reference to it, with its assertions added by the suite. Other HTTP and GraphQL tests are saved as requests in an Imported tests collection. Flow tests and chaos experiments from that screen are not imported; the earlier screen itself has been removed. The browser copy is not changed.
Flows in suites
Add a flow to a suite (tick it under Flows in the Requests panel, or drag it onto the canvas) to test a scenario that needs several steps, branches or data from earlier responses, such as "create an order, pay it, check the invoice". A flow runs where it sits in the suite, once per iteration, on the server and with the suite's environment.
A flow shows as one row in the results. Every step that ran is a check: a failed step fails the row, while errors the flow handled and skipped branches pass. The assertions and pm.test results of saved-request steps follow their step, named "Step › check". JUnit and HTML reports, Rerun failed and the pass-rate and p95 gates include flow rows.
Each flow run is also stored in the flow's Runs tab with the source "Test suite", where you can open every step's output. Flow rows are not added to the collection run history.