# API test reports in HTML, TXT and JUnit XML

Source: https://checkcraft.ru/en/guides/api-test-reports.html · updated 2026-11-24

Save Checkcraft reports, inspect expected and actual values and export JUnit XML from CI runs.

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

A teammate sees a failed test but cannot tell which value differs. Preserve the assertion and enough context to reproduce the result.

Checkcraft · 11 October 2026

Get help with your first test →

## Read the failed assertion

The sample expects status OK while the failing response contains ERROR. Compare the captured text reports below. Inspect expected and actual values rather than relying only on the overall result color.

## Save an application report

After an HTTP run, open the results and use the HTML or TXT export action. Pro history comparison has a separate HTML export. Review the file for personal data and secrets before sharing, including response bodies.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

## Export JUnit XML from the CLI

The runner supports --report-junit, --report-json and --report-html. The example requires an installed checkcraft-cli, valid runner access and a bundle exported from the CI/CD panel. It does not create test cases.

```
checkcraft-cli --bundle checks.ccbundle.json --report-junit report-junit.xml --report-json report.json --report-html report.html
```

## Retain failed-run artifacts

Configure CI to keep reports when a job fails. JUnit XML feeds test result views, HTML supports human review and JSON enables downstream processing. Preserve a failure exit code. The Jenkins and GitLab guide includes integration examples.

## Repeat the sample

The quick experiment below runs in the test case editor. The screenshots show the detailed report available in HTTP run or Log run. For HTTP run, return the sample JSON or XML from a local mock and run the imported case against it, then open Results, Details and With structures. For Log run, load the sample into a log source, enable No request, run the case, then open Details and Detailed.

These are existing synthetic fixtures and captured text reports, not a customer deployment.

[Test case](https://checkcraft.ru/examples/en/first-check.testcase.json) · [Passing JSON](https://checkcraft.ru/examples/en/first-check-valid.json) · [Failing JSON](https://checkcraft.ru/examples/en/first-check-broken.json) · [Passing report](https://checkcraft.ru/examples/en/first-check-valid-report.txt) · [Failing report](https://checkcraft.ru/examples/en/first-check-broken-report.txt)

Actual detailed HTTP run report with rules next to the checked values. Open the screenshot to see the full run screen.

## What an API test report should contain

| Section | What to write | Who needs it |
|---|---|---|
| Scope | Methods and scenarios covered, what is out of scope | Lead, client |
| Environment | Stand, service version, run date | Everyone |
| Summary | Passed, failed, skipped | Lead |
| Defects | List with severity and links to bug reports | Team |
| Failure details | Request, expected and actual, traceId | Developers |
| Risks | What was not tested and why | Lead, client |

Split a short report for the lead from a detailed one for developers. The first needs "can we release", the second needs "where to look".

## Report formats

| Format | Who reads it | How to get it |
|---|---|---|
| JUnit XML | CI: Jenkins, GitLab, TeamCity | newman --reporters junit, pytest --junitxml |
| HTML | People | newman-reporter-htmlextra, pytest-html |
| Allure | Team, run history | allure-pytest, Allure Report |
| JSON | Scripts and dashboards | newman --reporters json, custom exports |
```
<testsuite name="orders" tests="3" failures="1">
  <testcase name="create order" time="0.21"/>
  <testcase name="total adds up" time="0.03">
    <failure message="expected 300, got 301"/>
  </testcase>
  <testcase name="order is NEW" time="0.05"/>
</testsuite>
```

CI shows failed test cases right in the merge request. For a useful message put the expected and actual value into failure.

## Summary report template

```
API test report, orders, release 1.14

Environment: test-2, orders 1.14.3, 24 Nov 2026
Scope: create, read, pay, refund an order; reports out of scope

Summary: 142 checks, 138 passed, 3 failed, 1 skipped
Decision: release after ORD-212 is fixed

Defects:
  ORD-212 high    total ignores the promo discount
  ORD-215 medium  404 returns an HTML page
  ORD-216 low     typo in an error message

Risks: payment via the bank stand not tested, stand unavailable
```

## Metrics worth watching

- Pass rate says little on its own if tests only check status codes.
- Flaky tests pass and fail without code changes and undermine trust in the whole report.
- Run time growth signals service degradation or a bloated suite.
- New failures compared with the previous run matter more than the absolute number.

How to write up each defect is covered in [API bug report](https://checkcraft.ru/en/guides/api-bug-report.html).

Next step

## Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

[Download Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## Continue with a related task

[How to write an API bug report a developer can reproduce](https://checkcraft.ru/en/guides/api-bug-report.html) · [Run API tests in Jenkins and CI pipelines](https://checkcraft.ru/en/guides/api-tests-in-jenkins.html) · [API regression testing and response comparison](https://checkcraft.ru/en/guides/api-regression-testing.html)

Start with the linked example and compare its result with your own test requirement.

Ask a person

## Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

Page card: /ai/pages/en/guides/api-test-reports.md
