Skip to content
CheckcraftDownload
Practical workflow

Integration testing across API, logs and database

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. Download, no sign-up →

A request was accepted but the order never appeared downstream. Follow one operation across the integration boundary.

Checkcraft ·

Get help with your first test →

Define the boundary

The illustrative orders service accepts an orderId and a downstream service stores READY. Agree a correlation key and an acceptable propagation delay. This is a testing pattern, not a ready-made connector to a particular CRM or payment service.

Correlate the request and logs

Save the test request and assert its status and fields. Select logs for the same operation. Filtering only for ERROR may hide earlier evidence. Define expected events instead of accepting any matching log.

API call diagram: method and URL, headers, body, status and response body, logs and database

Verify the downstream state

With authorized database access, Pro can perform a SELECT verification after the API request. Allow an agreed persistence timeout for asynchronous work. A record that has not arrived yet differs from one that never arrives.

Adapt the assertion

An e-commerce check may target an order total, a logistics check a shipment status and an EdTech check access to a lesson. Each needs its own contract. Checking an API gateway endpoint does not audit the gateway. Checking an event-driven outcome does not imply a native message broker client.

Layers of an API call check: status, headers, body, calculations, logs, database

Hand the workflow to support

Save the request, expected events, environment and report. Support can repeat that operation after a configuration change. One passing workflow does not certify the whole distributed system.

Integration types and what breaks

Integration typeExampleWhat breaks most
Synchronous REST or gRPCOrders call the warehouseTimeouts, partner error codes, date formats
SOAPExchange with a bank or ERPNamespaces, encoding, SOAP Fault
Queues and eventsKafka, RabbitMQLost and duplicated messages, ordering
FilesCSV upload to SFTPEncoding, delimiters, partial upload
Shared databaseTwo services write one tableRaces, locks, different formats

Integration checklist

  1. Contract: request and response formats match the spec on both sides.
  2. Authorization: partner token or certificate, expiry, refresh.
  3. Timeouts and retries: what happens if the partner answers in 30 seconds or not at all.
  4. Idempotency: resending the same request does not create a duplicate.
  5. Partner errors: 4xx, 5xx and an unexpected format are handled, not crashing the service.
  6. Data mapping: fields, dictionaries, dates, time zones and currencies map correctly.
  7. Final state: our database and logs hold what they should.

Checking an asynchronous chain

The hardest part of integrations is operations that go through a queue. The first response comes at once, the result appears later in another service.

  1. Send the request and keep the operation id or traceId.
  2. Find records with that id in the logs of every participant.
  3. Wait for the final status with retries and a timeout, not one immediate check.
  4. Check the final state in the database or with a follow-up GET.

If the id is lost on the queue, the chain cannot be assembled, see what a traceId is.

Stubs and contract tests

ApproachWhenRisk
Real partner standFinal check before releaseStand down or holding other people's data
Partner mock or stubPartner not ready or cannot return the needed errorMock drifts from reality
Contract tests (Pact and similar)Many teams change APIs independentlyBoth sides must agree

A quick stub is covered in local API mock.

Frequently asked questions

What should an integration test check?

Contract, authorization, timeouts and retries, idempotency, partner error handling, data mapping and the final state in the database and logs.

How do I test an integration through a queue?

Keep the operation id, find records with it in every participant's logs, wait for the final status with retries and check the end state.

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 FreeDownload and first run

No sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.

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.

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

No account required. We will reply by email. This is a support request, not a newsletter subscription.