# Learn API testing

API testing checks that an API works as described: each response matches the API contract, multi-step workflows succeed, and the API holds up under load.
Start with contract testing, which compares an API with its OpenAPI description or with its consumers' expectations.
Then add workflow tests for real user journeys.
These guides explain each approach and compare the tools, including Redocly Respect.

## Common API testing questions

### What is API contract testing?

API contract testing verifies that an API keeps the agreement its consumers rely on: endpoints, request and response shapes, status codes, and headers.
Read [API contract testing 101](/learn/testing/contract-testing-101) for a beginner-friendly guide to what it is, its benefits and challenges, and when you need it.

### What are the best API contract testing tools?

Pact, Schemathesis, Specmatic, Dredd, Prism, Microcks, Step CI, and Redocly Respect each take a different approach.
Compare them in [API testing tools](/learn/testing/api-testing-tools#contract-testing-tools-compared).

### How do I test an API against its OpenAPI spec?

Send real requests to a running API and check each response against the OpenAPI description.
Follow the steps in [How to test an API against its OpenAPI spec](/learn/testing/contract-testing-101#how-to-test-an-api-against-its-openapi-spec).

### What is an OpenAPI mock server?

A mock server returns example responses from your OpenAPI description, so consumers can build before the backend exists.
See [OpenAPI mock server tools](/learn/testing/api-testing-tools#openapi-mock-server-tools).

### How do I test multi-step API workflows?

Describe the workflow in an [Arazzo](/learn/arazzo/what-is-arazzo) file and run it with a workflow testing tool such as Redocly Respect.
Read [How to test API workflows with Arazzo](/learn/arazzo/testing-arazzo-workflows) for step-by-step instructions, and [Arazzo specification tools](/learn/arazzo/arazzo-tools) for the other tools that support the format.

---

Not sure where to start?

- Try [API contract testing 101](/learn/testing/contract-testing-101) for the basics.
- Want hands-on workflow testing?
  See [How to test API workflows with Arazzo](/learn/arazzo/testing-arazzo-workflows).
- Evaluating tooling?
  Read [API testing tools](/learn/testing/api-testing-tools).
- Ready to run tests?
  [Get started with Respect](/docs/respect/get-started).
