Skip to content

Debug Failed Automated Tests

When an automated test fails, the run report holds what you need to find out why: the failure message, the stack trace, the logs, and the traces.

Open a failed test in the run report. The Failure section shows the error message, and the stack trace below it shows where the test broke. In a long log, search the stack trace for text or a regular expression to find the line you need.

The Failure section of a failed automated test

A Playwright trace records everything the browser did during a test: actions, network requests, and more.

  1. Set up S3 storage for artifacts. See Test Artifacts.
  2. Allow third-party cookies in your browser.
  3. Run your tests.
  4. Open a test in the run report.
  5. Click trace.zip.

The trace opens in the Playwright Trace Viewer.

Sometimes a test never finishes, for example when a gateway goes down or a server stops answering. Set a timeout, and Testomat.io terminates a run that goes past it.

  1. Go to Settings → Project.
  2. Enter the number of minutes in Automated runs freeze timeout minutes. The default and shortest value is 30 minutes.
  3. Save the settings.

The Automated runs freeze timeout minutes field in the project settings

A terminated run gets a crossed-out clock icon on the Runs page.

A terminated automated run on the Runs page