Run and analyse tests
Running tests
Countries, share per country, virtual users, small tests, egress IPs, live dashboard, stop, schedules.
Start a run
From a scenario page (Start run) or the project's Runs tab. Pick the scenario version, test configuration and environment, then choose where the load comes from.

Load origin: countries, share and virtual users
Swarmetry owns the load generators. You never see providers, regions or machines; you only decide:
- Countries: one or several among those your organization is offered (names in your language), from 400 virtual users; a smaller test runs from one country that Swarmetry chooses (see Small tests below). A country that cannot be served now is disabled with the reason. Swarmetry caps the number and the cost of its load generators: when a country reaches these limits, the run is refused or fails during preparation (the load generators of the country could not be prepared in time); choose another country or start the run again later. Without any country offered the section reads Built-in generator. The built-in generator has a limited capacity: the dialog shows At most N virtual users per test and warns above it, and a test written as code cannot run there when it is limited (its virtual users are only known when it runs). When your organization is offered no location at all, the section says so and tests cannot start: contact your administrator. Tests that use your organization's own runner image run only on the built-in generator, so they cannot start where it is not available to you.
- Share (%) per country: whole numbers that add up to 100 % (a Split evenly button helps). Each country must get at least 400 virtual users, so a test uses at most one country per 400 virtual users, within the maximum number of countries of your offer. Built-in generator cannot be mixed with countries.
- Virtual users: the total for the whole test. It scales the whole load profile of the test configuration proportionally (stages, arrival rates, pre-allocated users) and is split between countries by their share. With the default test configuration (every flow once with 1 virtual user), each virtual user runs its flow once.
The dialog validates the sum, the countries, the capacity per country and your quotas, then shows the estimate: virtual users, duration, virtual-user hours (including cloud virtual-user hours for countries, and their cost when the platform prices them), the quota remaining, whether an approval is needed, a verdict per target host and script findings. The virtual-user hours are an estimate checked against your quota: for a ramping profile (stages) it follows the ramps (the area under the profile), for the other executors it is an upper bound (all virtual users for the whole duration), and the dialog says which. The cloud virtual-user hours follow the same profile (browser virtual users weigh more, on the profile of their own scenario): your cloud quota, the cap per run and the cost shown count a ramped test for what its ramps use, not for its peak during the whole test. The run itself counts the virtual-user hours it measured. Starting a run is a costly action: the assistant, MCP and the CLI ask for confirmation.
Country locations need the cloud feature of your plan (otherwise "Available in the X plan").
Small tests: Swarmetry chooses the country
Every country of a test needs load generators of its own, so a small test spread over several countries uses far more of them than it needs. The rule is the same in the start dialog, in schedules, for the assistant, MCP, the CLI and the API:
- Fewer than 400 virtual users (a small test; the number may change, and the dialog always shows the one that applies): you do not choose countries. The countries give way to the note Small test: Swarmetry chooses the country, which names the country of the test. When your organization is offered the built-in generator, you can still choose it.
- 400 virtual users or more: you may choose countries, and each one must get at least 400 virtual users: 2 countries from 800 virtual users, 3 from 1,200, and so on. The dialog says This test can use up to 2 countries, each with at least 400 virtual users; once that many are ticked, the others cannot be (Untick a country to choose this one), and a country whose share is too small says so (France would get 360 virtual users: each country needs at least 400). Raise its share or the virtual users, or untick it.
- No country ticked, at any size: Swarmetry runs the test from one country it chooses, as for a small test.
Which country. The offered country nearest to the site you test. Swarmetry finds the country of the site's address in a country database, credited in the dialog (IP Geolocation by DB-IP, under the CC BY 4.0 licence). When the place of the site is not known (a private address, or a name that cannot be found), the test runs from the platform's default country, and the note says so. The country is kept for the project: its next tests run from the same country while it is available, so their results stay comparable. If that country stops being available, the next test gets another one. If the country looks wrong (a site behind a content delivery network can appear to be in another country), contact support: the platform can set the country of your project.
The estimate shows the country before you start, and the run page shows it like a chosen one, with its egress
addresses and Hold before load. For a test written as code, its size comes from its own options (see
Tests that open a real browser, Free scripts). A choice the rule does not allow is
refused with the reason and what to do, in every way of starting a test (codes run.locations_below_threshold,
run.locations_too_many_countries and run.location_below_minimum for the API).
Minimum billed per country. Swarmetry may bill each country of a test at least a number of virtual-user hours (off unless Swarmetry announces it). When it applies, the estimate says Each country of a test is billed at least N virtual-user hours, so this test counts at least M, and your usage counts that amount. Tests on the built-in generator, tests whose load never started and tests that ended because of a problem on Swarmetry's side are never raised.
Waiting for a free load generator
The built-in generator runs a limited number of tests at once for the whole platform. When it is busy, your test stays Queued and the run page and the list read Waiting for a free load generator; it starts by itself, in order of arrival, as soon as another test ends. You can stop it while it waits. Debug runs and preflights go before the waiting tests, but they too wait while every slot is taken.
Egress IP addresses to allow
If your system is behind a firewall or an allow-list, you need the source addresses of the load.
- Before the run: when a country is served by static addresses, the dialog and the estimate already show them, so you can allow them in advance.
- During preparation: the run page panel Load origin and egress IP addresses shows, per country, the share, virtual users, state and the addresses (deduplicated, IPv4 then IPv6, copy all) as soon as machines are created.
- Hold before load: tick Hold before load so that I can allow the addresses. The run prepares everything, waits in state holding (no virtual-user hour consumed) and starts when you click Start load. It is aborted if you take longer than the platform's limit (15 minutes by default).
- After the run: addresses of temporary machines no longer belong to Swarmetry; the panel says to remove them from your allow-lists. Static addresses stay valid.

Checks and approvals at start
Before any load: the emergency stop is not active, the script is statically checked, targets are allowed and verified, caps and quotas are respected (maximum virtual users, concurrent runs, duration, virtual-user hours), and an approval exists when your administrators require one above a threshold (a pending request is created and the start is refused until it is approved, see Administration).
Tests that open a real browser
Browser steps of a visual scenario, and free scripts that use the browser module, open a real Chromium browser in each of their virtual users. Such a test runs only on load generators that have a browser; Swarmetry chooses them for you:
- Built-in generator: every browser virtual user takes about one processor and 1 GB of memory, so Swarmetry sets a maximum per test (4 by default). The estimate says how many of your virtual users open a browser and that maximum; above it, the start is refused (This test opens a real browser in 6 virtual users, but the built-in load generator runs at most 4…). Lower the virtual users of the browser scenario, or choose a country. If there is no browser on the built-in generator, the estimate says so too.
- Countries: only the load generators of a country that have a browser serve the test. For now none has one (the load generators of countries run several organizations' tests side by side, and a browser there is not isolated enough yet): run browser tests on the built-in generator. A country without any is refused in the estimate (no load generator of DE has one): choose another country, or contact Swarmetry support.
- Free scripts: Swarmetry sizes a free script from its own options when they are written as plain values
(
vus,duration,iterations,stages,scenarios): their virtual users and duration count for the estimate, the limits and the countries, as for a visual scenario. When the options are computed while the script runs (from__ENV, a function, a spread), Swarmetry runs the code outside the default function once, in a closed sandbox (no network, no secret, at most 30 seconds), to read them; the result is kept for that version of the script. If that code fails, takes longer than 30 seconds, or sets an execution segment, the test is refused with the reason. Writing the options as plain values skips this step. When the script uses the browser module, its virtual users count as browser ones: on the built-in generator the test gets the resources of that many browser virtual users. - Keep them few: browser virtual users are heavy. Use only a few of them (about 10 % of the virtual users or less, the usual recommendation) next to protocol-level ones that create most of the load.
- Blocked hosts in the test configuration (block host names, blacklist IPs) make the test engine check every browser request itself and turn off the browser cache, which changes the Web Vitals of the test.
Blocked connections
While the test runs, every connection is checked again, including the addresses built by the script itself, the pages of browser steps and redirects. A host that is not one of the project's sites to test (or not verified when your organization requires verification) is refused at once: the request fails immediately instead of waiting for a timeout, and the run page lists the refused hosts with the reason. To test such a host, add it to the project's sites to test and verify it. Cloud metadata services, link-local addresses and Swarmetry's own services are always refused.
Live dashboard
The run page streams in real time: verdict and status, headline metrics (virtual users, requests/s, p95, error rate), synchronized charts (virtual users, request rate, latency, errors, iterations, checks, data), threshold lines, thresholds table, per-endpoint and checks tables, logs, and the panel of countries. Charts export to PNG. After the run the same page reads the stored series. Live, the request rate is the last complete second; once the run has ended, the card shows the average over the run (ramps included) with the peak rate under it (the highest rate over 10 seconds: the plateau of a ramped test). Click a point of the latency chart to list the slowest requests of that moment (Observability).
If you lose access while the page is open (you signed out elsewhere, you were removed from the organization, the run was deleted), the live updates stop within 30 seconds and the page says so: reload it. When the platform's retention deleted the measurements of an old run, its page keeps the status, verdict and thresholds and says after how many days the measurements were deleted.

Verdict
When the run ends, Swarmetry judges it from the thresholds of the test configuration and says why under the verdict:
- Passed: every threshold was checked on complete measurements and none failed.
- Failed: a threshold failed (Swarmetry's check or the test engine's own), a threshold with "stop the run" stopped it, or the script marked the test as failed.
- Inconclusive: nothing failed, but the result cannot be trusted as a pass: some measurements were lost or did not all arrive in time, a threshold could not be checked, or a threshold passed only because its metric had no measurement at all (for example a threshold on a step that never ran).
- No verdict: the test configuration has no threshold, the test never started, or it failed for a technical reason.
Swarmetry waits for the last measurements of every load generator (up to one minute) before it judges, and judges again
if late measurements change the result. On the built-in location it also compares each threshold with the test
engine's own judgement: if they disagree (a value extremely close to the limit), the run counts as failed and the page
explains it. When the test runs from several countries, thresholds that only the test engine could check (a filter on a
tag such as url, or the thresholds of a free script) are refused at the start: remove the filter or run from the
built-in location.
Steps that failed often
A threshold on all the checks (or on all the failed requests) is an average over every step: one step that fails most of the time can hide behind many that succeed, and the run still passes. So, whatever the verdict, the run page warns when a transaction or a check succeeded less than 90 % of the time (your organization's level, see below): "Thresholds passed, but 1 transaction failed 72.6% of the time", with one line per transaction or check, its success rate and its counts. The list of runs marks such a run with a warning icon next to its verdict, the report lists them on its first page under the verdict, and the notification of the finished test says it "passed with a warning". The verdict itself does not change: give each transaction its own success threshold in the test configuration (the configuration suggests it, see Transactions) so that a failing step fails the run.

The administrators of the organization choose the level in Administration → Organization → Success warnings, from 50 % to 99.9 % (90 % by default). It applies to the tests that end afterwards: a past test keeps the level it was judged with, so its warnings never change wording. Tests that ended before the warnings existed get them the first time they are opened (or shortly after an upgrade), as long as their measurements are still kept; a test whose measurements were deleted by the retention shows none. If measurements that arrive late (within a minute of the end) change the warnings of a test that passed, its starter is notified that it "passed with a warning".

Stop a run
Two buttons, both with confirmation:
- Stop run (graceful): the test engine stops the test, runs teardown and sends its last metrics. The run ends as stopped.
- Stop run now: the runner is killed at once; teardown does not run and the last seconds of metrics may be lost. Use it when something is wrong.
A run also stops by itself when an abort-on-fail threshold trips, when it exceeds its planned time by 5 minutes (graceful) then one more minute (immediate), or when Swarmetry triggers an emergency stop. Pause and resume are not offered (the test engine cannot pause a started test).
Schedules
Tab Schedules, Schedule a scenario: a name, a scenario, test configuration, environment, virtual users, where the
load comes from, and a cron expression (five fields, or @hourly, @daily, @weekly, @monthly) with a time zone.
The form shows the next three occurrences. Schedules start runs on behalf of their author, so their permissions and
quotas at that time apply. Each row of the page says where the load comes from, the virtual users, the approval state
and the last occurrence in words; Edit changes a schedule (not its scenario: create another schedule for another
scenario), Pause, Resume and Delete do what they say, and History opens every recent occurrence with what
happened and what to do.

Where the load of a schedule comes from
The rule of small tests applies: under 400 virtual users the form has no countries and names the project's country; from 400 it shows how many countries the schedule may use, each with at least 400 virtual users; with no country ticked the runs come from the project's country. A schedule saved earlier with countries that its size no longer allows (for example after the platform changed the number) is not stopped: its runs come from the project's country, and its history says From Germany this time with the reason. Edit its countries or raise its virtual users to choose countries again.
When the runs start
- Within a minute after the time. Each run starts up to 50 seconds after its time, always with the same delay for a given schedule, so that the tests of everyone do not start in the same second.
- Never two runs of one schedule at once. When the previous run is still in progress at the next time, that occurrence starts nothing; the history says Skipped: the previous run was still in progress. When you save a schedule whose runs last longer than the time between some occurrences, the form warns you (A run of this schedule lasts about 645 seconds, longer than the 300 seconds between some of its occurrences); the time to prepare the load generators of a country counts. Space the occurrences or shorten the test. The schedule is saved anyway.
- Missed occurrences are not replayed. An occurrence that cannot start within 5 minutes of its time (for example while the service is unavailable) starts nothing and is counted in the history (3 missed, not replayed); the next one starts at its own time.
Addresses to allow
There is no Hold before load for scheduled runs. When the platform has fixed addresses in a country, the runs of schedules take them first, so two runs come from the same addresses. When the addresses of a country are not published, the saved schedule and a note above the table say its addresses may change: they can change from one run to the next, and a firewall that allows only the addresses of an earlier run may block the next one. Read the addresses on each run's page, or contact us for fixed addresses in that country.
Approval of a schedule
When your administrators require an approval for tests of this size, the form says Approval needed. The request is made when you save; an administrator approves it once in Administration → Approvals, and that approval then covers every run of the schedule while the schedule stays the same. Changing what runs or when (virtual users, countries, cron, time zone, test configuration, environment, a new version of the scenario) asks again; renaming, pausing or resuming does not. Until it is approved, each occurrence starts nothing (Not started: waiting for approval) and a note says waits for approval, with Open approvals for administrators. An administrator can withdraw the approval (Revoke): the next run asks for a new one. Approvals of schedules and of tests started by hand are separate: one never uses the other.
Preflight required by your organization
When your organization requires a passed preflight before tests of this size (chapter 21), the form says A preflight is needed before saving: Run the preflight, then save runs it, then Save with this preflight saves. Save without a passed preflight, with a reason, appears only when your organization allows it. Each run checks the policy again at its time, without the age limit. It starts nothing when the scenario, its test configuration or its environment changed since the preflight, when the preflight did not pass, when the policy changed, or when the preflight saved with the schedule can no longer be read. A note above the table then says its runs are refused until the scenario has a new preflight with the reason, and Check and save again opens the schedule to run a new preflight and save it. Schedules saved before November 2026 kept only a link to their preflight: once its records expire (after 7 days) their runs are refused this way until they are saved again once.