File a Failed API Test as a Bug

Send a failed test result to Jira, Azure DevOps, GitHub or GitLab without leaving the report.
Updated

What It Does

There are two ways to file from test results, and their tickets differ. Filing one failed result sends the full report, so a developer can see what was sent, what came back and which check failed. It always includes the response body. Filing a run-triage cause sends one summary for a group of failures: how many runs failed, up to 10 endpoints, the explanation from failure analysis, its basis, confidence and advice. Response lines are added to a cause ticket only if you tick the box for them, and it carries no severity and no full report. Any cause can be filed; a suspected product bug is titled as a defect and says the API should change, while other causes never claim the API is wrong. Credential masking goes by name. Headers, JSON body fields, XML elements and variables whose names look like credentials are hidden. The full request URL, the text of checks, error messages, form-encoded bodies and secrets stored under ordinary names are not masked by the ticket builder, so read the report before you file it. If Jira or Azure DevOps rejects the severity field, the ticket is filed again without it. Test tickets are one-way: Shift-Left API does not read their status back. A later run of the same test is a new result and can be filed again, so check your tracker for duplicates. An administrator connects trackers under Settings, then Integrations, then Issue Trackers, and filing needs permission to edit tests. Security findings can use the same connection, but filing them needs the API security testing add-on. On shared installations, tracker addresses on private networks are refused.

A failed Create order test, which expected status 201 and got 500, has a File this failure as a bug box; a person chooses a tracker and presses File as a bug, and a ticket is created with the checks, request and response, diagnostics, run log, severity and a link back to the run, with a header named like a credential shown only by its length

Overview

Reporting a bug usually means copying a request, a response and a log into a ticket by hand. In Shift-Left API, a failed result has a "File this failure as a bug" box under its header. Choose a tracker and file it in Jira (Cloud, Server or Data Center), Azure DevOps, GitHub Issues or GitLab Issues. The ticket carries the report: every check up to 100, the request and response with their headers and bodies, the error, diagnostics, extracted variables, the end of the run log and, when a public app address is known, a link back to the run. The severity of the test goes with it. A person presses the button each time, so nothing is filed by itself. Issue tracker connections are available on every licence, including the free Citizen Developer edition.

Key Capabilities

File any failed or errored test result from the report link, from a single run in Reporting or from the test editor's results pane
Works with Jira (Cloud, Server or Data Center), Azure DevOps, GitHub Issues and GitLab Issues
The ticket carries the whole report, response body included, with long parts cut and marked
Headers, JSON fields and variables named like credentials are shown only by their length
Test severity becomes the priority in Jira and Azure DevOps, or a severity label in GitHub and GitLab
Formatted for each tracker, with headings and code blocks
One ticket for each test result, with a link to it once filed
File a whole run-triage cause too: a suspected product bug is filed as a defect that says the test is right

How It Works

  1. 1

    An administrator opens Settings → Integrations → Issue Trackers, adds a tracker and tests the connection

  2. 2

    Open a failed result and find "File this failure as a bug" under its header

  3. 3

    Under "File in", choose a tracker and select "File as a bug"

  4. 4

    Follow the link to the new ticket; the result shows that it has been filed

  5. 5

    For many failures with one cause, open the cause in run triage and file a single ticket for the group

Available on

All Plans

Included in the free trial — no credit card required.

Included on every licence, Citizen Developer and the Trial included. Filing security findings needs the API security testing add-on.
See pricing →

Try File Failed Test as Bug Today

Start your 15-day free trial — no credit card required.