Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Debug

When a step fails, the results page carries everything needed to work out why: the error, the screenshots either side of the failure, the logs, and what else depends on the element. This is the order to work through it in.

  1. Go to Run Results and click the test plan.

  2. Click the test case you want to investigate.

  3. Select the failed step from the step list on the left.

The list is headed by the step count and the number of failed steps, and each step carries an icon showing whether it passed, failed, or was not executed. Drag the divider between the list and the details pane to resize either side.

The step header shows the step number, duration, status, and error message, with Read more for the full message. The details pane carries the Analysis, Locators, Logs, Step Settings, and Metadata tabs.

The Analysis tab opens with the error code, such as #NO_SUCH_ELEMENT. Visual Evidence then places the screenshot captured at authoring time next to the one captured in this run.

Below the panels, the tab lists the element, element name, run type, action, start time, duration, step level timeout, plan level timeout, error code, error message, test data type, and test data for each side. The icons on a screenshot expand or download it.

Page source at the bottom holds the captured HTML for each side. Click the file name to open it, or the download icon to save it.

Testsigma can read the step’s error, screenshot, page source, and heal attempts, and explain what broke.

  1. Find the Root cause card on the Analysis tab.

  2. Click Explain this failure.

The Root cause card on the Analysis tab, with Explain this failure

The explanation opens with a one-line summary of what failed, such as Step failed: no Shop Back to School link on Google homepage, followed by the reasoning and a recommended change. Read less collapses it.

  1. Open the Logs tab.

  2. Select Selenium, Console, or Network.

  3. Use the scope list to switch between This step and the whole run.

  4. Click Jump to error to move to the first error in the log.

  5. Click the download icon to save it.

Network logs are captured only when they are switched on for the test machine, and they arrive once the lab finishes uploading them. Until then the Network tab reads No network log was recorded for this run.

When auto-healing resolves a locator mid-run, a banner above the step list reports how many steps were healed, and the Analysis tab shows a Healed this step card with Approve as Primary and Ignore.

A healed step reports Passed, because the step completed. See Healer.

Comparing a failing step against a run that worked shows what changed. Two entry points:

  • Compare Runs in the page header compares the whole test case across 2 runs, step by step
  • Compare Steps in Visual Evidence compares the current step alone, with the screenshot and element source modes

Comparison spans the steps either side of the failure as well. See Results.

When an element causes a failure, check which other tests depend on it before you fix it.

  1. Click Affected tests in the step header.

  2. Review each tab in the Affected Instances panel: Test Cases, Step Groups, Test Suites, and Test Plans, each with a count.

The Affected Instances panel, with counts for test cases, step groups, suites, and plans

Where nothing else uses the element, the panel reads There are no Test Cases associated with the element.

Four routes, all from the results page:

  • Analyze with Agent in the action bar returns the error type, the root cause, and suggestions you can apply as a step update
  • Run using Copilot in the action bar reruns the test case interactively
  • Update element corrects a locator yourself, through the edit icon on the Element field in Visual Evidence
  • Relearn step re-captures the step

Where auto-healing fired, approve or reject the healed element directly on the first screen.

  • The element or UI identifier changed in the application
  • The application does not load
  • The local internet connection fails
  • The element is unchanged, but navigation to it changed
  • Addon code does not perform as expected
  • The application under test contains a defect
  • The result is a false positive or false negative
  • An API is down
  • The element locator is incorrect

Was this page helpful?