Skip to main content

Automatic Failure Analysis

Learn how Automatic Failure Analysis works and how it helps to speed up debugging and root cause analysis.

Prerequisites for it to work

Automatic Failure Analysis is triggered after the completion of each build run. But it will work only if:

  1. There are failures in the current build run.
  2. There should have been test failures in the same project in the past.
  3. You should have manually tagged test failures into one of the failure categories in the past.

How to tag failures into categories manually?

Initially, all failed tests would be tagged as To be investigated. You can click the drop-down against the test name and select one of the following categories as shown below:

  • Product bug
  • Automation bug
  • Environment issue
  • No defect

You can also create custom failure categories and select those as well.

Drop-down against a test

Bulk tag multiple tests

You can tag multiple tests into a failure category using the following steps:

  1. Click the drop-down menu next to a test. Drop-down to select auto failure analysis category
  2. Click Bulk update failure category.
    Drop-down to select auto failure analysis category
  3. Select the failure category from Failure category options.
    Select auto failure analysis category
  4. Click Current Build, Last 10 Builds, or Last 10 Days to select the tests from a range.
    Select the range for auto failure analysis category
  5. Select the tests you want to tag the failure category and click Apply.
    Select the range for auto failure analysis category

You can see a success message Tests updated successfully! to confirm that the tests are tagged to the failure category.

How does it work?

Automatic error analysis for failure category detection works by employing a host of sophisticated algorithms. It analyses past errors and considers the category that you might have assigned manually to the different errors.

Automatic error analysis learns with every instance where you tag errors manually and over time it becomes more and more adept at intelligently categorizing issues. To add to that, you can also create custom sub-categories through Settings and assign different failures to those.

Initially, automatic failure analysis will not work in the absence of manually tagged error category data.

With time, if you keep on tagging failed tests into one of the failure buckets, automatic analysis will become more and more efficient in intelligently determining failure categories and save your valuable time from doing repeat tasks.

How does it help?

As an automation engineer responsible for the quality of features that go into production, the single most important task is to ensure that no real product bugs creep into production and impact the end user’s experience.

In the process to ensure quality, automation engineers across the globe write tons of tests to verify that scenarios work fine. But, the biggest problem faced is that of flakiness and other non-product-code related issues which result in test failures.

Hence, it becomes super important for you to know which test failures are genuine and which are just noise. We have built the Automatic Failure Analysis feature keeping exactly that in mind.

Automatic Failure Analysis helps by doing the following:

  1. Categorizes issues into Product bugs, Automation Issues, and Environment issues for you to identify which ones you can ignore from your analysis.
  2. You can pinpoint test failures due to environment issues and it helps you decide the next course of action like re-running those tests.
  3. You can also get a list of all Automation issues and either Mute them or create an issue on a project management tool such as Jira.
  4. You can track long-term trends in the failure categories using Testing Trends. Using the insights from long-term trends, you can analyze what kind of bugs are creeping in, and work with the right teams to improve development and testing approaches.

Configure parameters of automatic error analysis

You can configure settings for automatic error analysis and control how it works.

Settings for Automatic error analysis

How to create custom failure categories?

You can create custom failure categories for each project by navigating to Settings > Failure Categories.

Custom Categories - Settings

Here, you can edit existing categories if you have any, or add a new category:

  • Add a new category by clicking the + Create sub-category button.
  • Edit or Delete an existing sub-category by clicking the kebab menu for each category.


Configuring custom failure categories is easy:

  1. Select the failure category from the dropdown menu under which you want to create a custom failure category.
  2. Set a name for your custom category.
  3. Click Create or Save Changes to finish setting up your category.

Category - Creation and Editing

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy