Explore your app. Build your testing knowledge.Explore your app.Meet State Explorer

Verify what happens after the request.

A successful status code does not prove the order was saved correctly. Combine contract checks with the data and business rules that callers depend on.

Create your first test
POST /ordersAuthorization201{ id: 2048 }GET /orders/2048200 · id = 2048401
Illustrative workflow — adapt the data and expected results to your application.

A practical example

An integration creates and retrieves an order

Your order service has gained a new required field. Check the request contract, retrieve the created order and verify that invalid callers cannot create data.

The task

Create an order with valid sample data, retrieve it by its returned ID and verify the items and total.

What you get

Tests that connect response validation to persisted business data, with separate negative cases.

The approach

From exploration to evidence

  1. Bring the contract

    Use your OpenAPI/Swagger or WSDL definition to describe the available operations.

  2. Set the context

    Choose the test endpoint, authentication role and data needed by the request.

  3. Review the assertions

    Check status, response fields and the follow-up operation that proves the result.

  4. Run the boundaries

    Run missing-field, invalid-value and authorization cases as independent tests.

What to verify

Example test set

Use your service contract for the exact response codes and error format. The checks below describe behavior, not a universal API convention.

Example scenarioAction or inputExpected result
Create and readSend a valid order and retrieve the returned identifier.Stored items and totals match the request and business rules.
Required data missingOmit a required order field.A contract-compliant error is returned without creating an order.
Invalid quantitySend a quantity outside the accepted range.The service rejects the value instead of silently adjusting it.
Wrong permissionsCall the operation with a role that cannot create orders.Access is rejected and no protected data is changed.

The specification is a starting point

A schema can describe the shape of an order without explaining a discount rule or which user may edit it. Review generated cases against the behavior your clients need. Keep contract checks and business assertions visible in the test definition.

Give failures useful context

When a test fails, compare the request, authentication context and response before changing the assertion. A changed response contract, an expired credential and a product defect require different fixes. Save enough evidence to distinguish them.

What supports this workflow

Contract-led tests

Use the operation definitions as a starting point, then add business assertions.

Request and response details

Inspect the actual payload and response when a test fails.

Role-based cases

Cover the allowed operation and the same request with insufficient permissions.

Getting started

Before your first run

  • Use a test endpoint and credentials scoped to the scenario.
  • Define cleanup for records the tests create.
  • For SOAP, review namespaces, faults and service-specific authentication explicitly.

Make your API contract executable.

Start with one operation, its saved result and the error cases your clients need to handle.

Get Started Free