Skip to content
Swarmetry

Build scenarios

Problems and quick fixes

Read the warnings of a scenario and fix them in one click.

Swarmetry checks your scenario while you edit it. Besides the errors, which must be fixed before a run, it points out warnings — what is likely to give wrong results — and notes — what is worth knowing. Warnings and notes never block a save, a debug run or a test.

Problems of a scenario

Where problems appear

  • Workflow editor toolbar: the problems counted by level — errors (octagon), warnings (triangle), notes (circle) — in the colour of the most serious one. Click it to open the list: errors first, then warnings, then notes.
  • Nodes: a badge with the most serious level of the step and how many problems have it.
  • Property panel: each problem next to the field it concerns. Only errors mark a field as invalid.
  • Test configuration: the warnings and notes of the configuration under the editor (Test configuration).
  • Start a run: the warnings and notes of the test as it would run (after the number of virtual users you chose), folded under Before you start (Running tests).

Problems at the fields of a step

Read a problem

Each problem names the step and says what is wrong. Why? explains why it matters and how to fix it. Click the title to select the step on the canvas.

Quick fixes

Many problems have a one-click fix, for example Add a status check or Add a pause of 1 to 3 s.

  • In the workflow editor a fix is an ordinary change: undo it with Ctrl+Z. Fix all safe problems applies the first fix of every warning at once, as one change you undo in one step. Notes and problems without a fix stay: their explanation says what to do.
  • In the test configuration editor a fix of the configuration changes your draft: save the configuration to keep it. A fix that changes the scenario (a pause at the end of a flow, the way a dataset is read) saves a new version of the scenario; save the configuration first.
  • A fix computed on an older state of the scenario is skipped, never applied halfway: wait for the new check and try again.

Problems of a test configuration

What Swarmetry checks

Problem Level Quick fix
A request without any check (an error page with status 200 would count as a success) warning add a status check
A value saved (extracted or set) but never used warning remove the extraction or the assignment
A loop of requests without a pause warning add a pause of 1 to 3 s at the end of the loop
A flow without think time run by a number of virtual users warning add a pause at the end of the flow
A dataset that may run out of rows and stop the test warning (note when the count is an estimate) end the iteration quietly when no row is left, or reuse the rows in order
Too few virtual users to reach an arrival rate warning raise the maximum number of virtual users
No threshold: the test has no verdict warning add default thresholds
Thresholds on response times only note add a threshold on the error rate
A recorded token, session id, CSRF token or time written in a request warning use the current time; remove a recorded Cookie header; otherwise extract the value from an earlier response (the debug run and the assistant help)
An element selector with a syntax error warning —
A host the project may not send load to warning — (allow and verify it in the project targets)
A screenshot inside a loop warning disable the step
How an event stream (SSE) is read note —
An event stream without timeout warning set a 10 s timeout

Ask the assistant

The assistant sees the same problems as you, wherever you are (the workflow editor, a test configuration, the start of a run), and applies the same quick fixes with the same rules as the editor: a fix it applies to the scenario saves a new version you can restore. The command line and the API give the same problems and fixes. Ask the assistant, for example:

  • "fix the safe problems of the scenario Checkout";
  • "why is the request Add to cart flagged?";
  • "add the missing checks and pauses, then tell me what is left".