Build scenarios
Browser settings
Run browser steps as a phone or a tablet, in another language, time zone and place, on a slow network, with requests blocked; upload files.
Load tests with real browsers are not included in the plans for now. A scenario keeps its browser steps, but its test runs, debug runs, preflights and schedules are refused, and the workflow editor says so. Browser steps still run in the browser checks of monitoring.
The browser steps of a flow can look like a visitor on a phone in Paris, on a slow network, with the analytics of other sites turned off. These are the Browser settings of the flow: they apply to every browser step of the flow, for every virtual user and every iteration, without writing code.
Open the browser settings
In the workflow editor, choose the flow with its tab above the canvas and click an empty place of the canvas (or press Escape): the panel on the right shows the flow. A flow holding browser steps has a Browser settings section.

Device
| Device | Screen | Good to know |
|---|---|---|
| Desktop computer | 1366 × 768 | used when you choose no device |
| Laptop (high-resolution screen) | 1440 × 900, pixel ratio 2 | |
| Tablet (Galaxy Tab S4) | 712 × 1138, pixel ratio 2.25, touch | identifies itself as an Android tablet |
| Phone (Pixel 7) | 412 × 915, pixel ratio 2.625, touch | identifies itself as an Android phone |
| Custom… | your own size, pixel ratio, touch and mobile behavior, user agent | starts from the device it replaces |
The line under the choice sums up what the pages get, for example 412 × 915 · scale 2.625 · touch · mobile. The phone and the tablet announce the version of Chrome the test runs with, so the sites see a current browser.
Language and place
- Language: a language tag such as
en-GBorfr-FR. Pages are asked in this language and show numbers and dates in its format. - Time zone: a zone name such as
Europe/ParisorAmerica/New_York(an offset such as+02:00is not accepted). - Location: a latitude and a longitude (and an accuracy in metres). Tick the Location permission as well, so that pages asking where the visitor is get this place without a prompt.
- Permissions granted: what pages may use without asking (location, notifications, camera, microphone, clipboard…).
Appearance and security
- Color scheme: light, dark or no preference, for sites that follow the system theme.
- Accept invalid certificates: only for test sites with self-signed certificates.
Headers and sign-in
Extra headers are added to the requests of the pages. A line under each header tells where it goes:
- a header holding a secret (for example
Authorizationwith a project secret) is sent to the site under test only: its base address and the addresses the flow opens; - the other headers are sent with every request of the pages, other sites included.
Sign-in (HTTP authentication) answers the sign-in prompt of every site the pages reach. It therefore cannot hold a
secret: to sign in with a secret, put the whole value in an Authorization extra header instead.
Slow network and processor
Choose Slow 3G, Fast 3G or Custom… (added latency, download and upload in kilobits per second), and a Processor slowdown from 1 (full speed) to 20. A note reminds you that slowing down slows the load generator too: use it to see what people on a slow phone or network experience, with few virtual users, not to measure how much load the site takes.
Blocked requests
- Block requests to other sites: only the site under test is reached.
- Block common analytics and advertising services: a short list of well-known services kept by Swarmetry.
- Block these addresses: one pattern per line, compared with the whole address;
*stands for any text, for example*google-analytics.com*or*/beacon*.

Blocking and secret headers work on the page itself. The panel lists what they do not cover:
- requests made inside frames from other sites are neither blocked nor given the secret headers;
- requests of web workers stay waiting, so a page that relies on a worker may not finish;
- pop-up windows are not covered;
- the browser cache of the page is turned off: files are downloaded again at every visit;
- with a sign-in name and password, or when the test configuration blocks host names or IP addresses, frames from other sites never finish loading. Swarmetry warns you about it in the problems of the scenario.
Screenshots
Keep screenshots of failed steps in load tests is ticked by default: a load test keeps a few screenshots of the failures of iterations 1 to 3, then of the 10th, 100th, 1 000th… iteration of the test when they fail (Preflight and debug evidence). Untick it for a flow whose failures you do not need to see. Debug runs and preflights keep their screenshots.
Upload files
The Upload files action of a browser step gives files to a file field of the page, as if a person had chosen them. Find the field by its test id, a CSS selector or an XPath expression (not inside a frame), then add one to ten files:
- A file from my computer: kept in the scenario, at most 512 KiB for all the files of the scenario together;
- A column of the test data: the column holds the content as text, or as base64 for images and other binary files.
The file name and type are what the page receives. Synthetic monitoring checks accept files from the computer only.
With the assistant, the CLI or the API
The settings are the browser member of the flow in the scenario. The assistant knows worked examples of devices and
blocked requests. Ask it, for example: “in Web journey,
open the pages on a mobile phone in French (fr-FR, Paris time) and block the third-party requests”.