# API testing for systems analysts from requirements

Source: https://checkcraft.ru/en/guides/api-testing-for-analysts.html · updated 2026-11-24

Validate an API calculation against a requirement. Convert an order example into repeatable checks and share discrepancies with a developer.

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 document defines a total, but one response does not show whether the calculation is correct. Make the requirement testable with an agreed example.

Checkcraft · 10 October 2026

Get help with your first test →

## Make the calculation testable

For this exercise, total equals the sum of every item amount. Values 100 and 200 should produce 300. Agree currency, discounts and rounding separately. Field names and an OpenAPI document do not automatically establish business rules.

```
{"items":[{"amount":100},{"amount":200}],"total":300}
```

## Repeat the supplied check

Import calculation.testcase.json in the test-case editor. Run the passing JSON, then the failing sample without changing the rule. The files below include captured text reports for comparison.

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)

## Check structure and contract

Validate the type of total, whether items is required and what an empty array means separately from arithmetic. OpenAPI import prepares requests; it does not prove full contract compliance. Review AI-generated drafts and boundary cases against actual requirements.

## Share an actionable discrepancy

Include the input, expected 300, actual total and requirement version. Attach the operation trace ID if logs are available. Database reconciliation is a separate Pro workflow. Response field assertions are not a complete consumer-driven contract testing process.

## 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/calculation.testcase.json) · [Passing JSON](https://checkcraft.ru/examples/en/calculation-valid.json) · [Failing JSON](https://checkcraft.ru/examples/en/calculation-broken.json) · [Passing report](https://checkcraft.ru/examples/en/calculation-valid-report.txt) · [Failing report](https://checkcraft.ru/examples/en/calculation-broken-report.txt)

The items add up to 300, but total is 301. The formula appears next to the mismatch. Actual detailed HTTP run report with rules next to the checked values. Open the screenshot to see the full run screen.

## What an analyst checks in an API

| Question | Where the answer is | How to check |
|---|---|---|
| The method does what requirements say | Response and final state | A request from Swagger UI or curl |
| Fields and types match the contract | OpenAPI spec | Swagger Editor, JSON Schema |
| Errors are described and clear | 4xx responses | Requests with bad data |
| Calculations add up | Calculated fields | Recompute from input |
| Dictionaries and statuses | enum values | Compare with the dictionary in requirements |

## Sending a request without coding

1. Open the service Swagger UI, find the method and click Try it out.
2. Fill parameters and body from the example, click Execute.
3. Compare status, body and headers with requirements.
4. Copy the curl command from the same panel to pass the request to a developer or repeat it later.

Reviewing and fixing the spec itself is covered in [Swagger Editor online](https://checkcraft.ru/en/guides/swagger-editor-online.html).

## Writing testable requirements

| Not testable | Testable |
|---|---|
| The total is calculated correctly | total = sum of price × qty minus discount, rounded up to the cent |
| An error is returned on error | For qty below 1 the response is 400 with error.code = QTY_INVALID |
| The status is updated | After payment status = PAID within 10 seconds |
| The field is optional | comment may be missing or null; an empty string is not allowed |

Every row on the right turns into a check at once. That saves weeks of back and forth between analyst, tester and developers.

## What to pass to a developer

- Method and request body, ideally as curl.
- What was expected per requirement, with a link to the item.
- What actually came back.
- traceId from the response, if present.

Full template 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

[API checks from analyst requirements: how to write them and see the coverage](https://checkcraft.ru/en/guides/api-checks-from-requirements.html) · [Test API totals, discounts and calculations](https://checkcraft.ru/en/guides/api-calculation-checks.html) · [API test reports in HTML, TXT and JUnit XML](https://checkcraft.ru/en/guides/api-test-reports.html) · [Verify database persistence after an API request](https://checkcraft.ru/en/guides/api-database-verification.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-testing-for-analysts.md
