Running, replaying and debugging
A test that ran is not automatically a test you can trust. This page covers the loop after the recording: choosing where to run, finding the execution later, replaying what happened, and getting evidence when a step fails.
After this page you should be able to:
- choose between a local run and a cloud browser
- explain which runs produce recordings
- find an execution in the history and read the pass/fail report
- scrub a replay and inspect the DOM at a point in time
- download a video or the full recording archive
- debug a failure with per-step runs, breakpoints, and console/network history
An execution is evidence. When a test fails, do not guess from the step list. Open the execution, scrub to the failing moment, and look at the page, the console, and the network. The recording is the source of truth.
Local or cloud?
| Mode | Best for | What runs | Recording |
|---|---|---|---|
| Local | Editing and debugging on your machine | The kogiQA desktop app | Manual local runs use the localClient platform and do not save a replay recording |
| Cloud | Clean environments, CI, browser coverage | Chrome, Firefox, or Safari on kogiQA infrastructure | Cloud sessions save a recording when the platform is testSession or testRunner |
The play button in the recorder has a dropdown for Run Locally, Run in Chrome, Run in Firefox,
and Run in Safari. The SDK uses the same distinction with the browser argument in Browser.start.
const local = await Browser.start(apiKey, "local", "Local run")
const cloud = await Browser.start(apiKey, "firefox", "Cloud run")
If you ran a test locally and cannot find the replay, check the platform. Local manual executions are useful for their step results, but they are not recorded as cloud-style replays.
Find past executions
The left panel has two related views:
- Test executions: a chronological list grouped by current hour, today, yesterday, this week, last week, this month, last month, and older.
- Execution report: a 15-day bar chart of passed and failed executions, with the same execution list underneath.
Click an execution to open its replay. Executions that are still running open a waiting view and switch to the replay when they finish.
Replay a recording
The recording viewer is sometimes called the Film Strip in older documentation. In the app it appears as Test executions / Execution Recordings.
The viewer shows the page as it looked during the run. At the bottom you have:
- a play/pause control
- a timeline scrubber
- a time readout
Press Space to toggle playback. Scrubbing updates the page snapshot, so you can inspect the state just before a click, not only the final page.
Inspect the DOM at a moment
The replay renders a DOM snapshot for the current time. Use the context menu on the recording to inspect an element, or open the built-in Dev tool panel while working in the app.
Download a recording
Right-click the recording window and choose one of:
- Download Video: saves a
.webmvideo of the run. - Download Recording: saves the full recording archive as a
.zip, including the trace data.
Use the video for a bug report or a stakeholder review. Use the archive when you need the underlying trace.
Debug a failing step
Use the smallest tool that answers the question:
- Run the single step with its play icon to confirm the step itself.
- Run Until Here to stop after the step before the failure.
- Run From Here to continue after a known-good step.
- Open the replay and scrub to the failure.
- Use
getConsoleLog()andgetNetworkHistory()when the page looked correct but the request or script failed.
const {logs} = await browser.getConsoleLog()
const {networkHistory} = await browser.getNetworkHistory()
console.log(logs)
console.log(networkHistory)
For a visual bug, the Create Bug Report helper produces a PDF with a screenshot, recent actions, console logs, and network history.
Folder runs
A folder run executes the folder's tests in order. If a test fails, the run stops. That is useful for a smoke suite with dependencies, but it means a folder is not a parallel test plan. For independent tests, run them separately or orchestrate them from code.
What to do with a flaky test
Before adding retries, check the cause:
- Timing: the page was still loading. Prefer a validation or a short wait over a fixed sleep.
- Duplicate labels: the algorithm picked a different "Save" button. Add a position hint.
- Environment: the cloud run has a different viewport, data, or network. Reproduce in the same mode.
- State: a previous run left cookies or local storage behind. Clear the session.
- External dependency: an API, email, or OAuth provider is slow. Use
waitForEmailor a targeted wait.
Run a small test locally, find it in Test executions, scrub to the middle, and inspect the page. Then run the same test in a cloud browser and compare what is available in the replay. Write down one difference between the two modes.
- Local runs are for editing. Cloud runs are for clean environments and CI.
- Cloud recordings appear in the executions view. Local manual runs use
localClientand are not recorded as cloud-style replays. - The execution report gives a 15-day pass/fail view.
- Scrub the timeline to inspect the page at a specific moment.
- Download the video for humans, the archive for trace-level debugging.
- Fix flakiness by finding the cause, not by adding retries.