liveBook · Manning

Schemathesis

Schemathesis is an open-source tool that generates and executes property-based tests for web APIs from API schemas such as OpenAPI definitions.

How 2 Manning books explain it

Secure APIs

Schemathesis is an open-source API testing tool that generates property-based tests from API schemas.

How it is used
Tests live API implementations against schemas through automated contract testing and fuzzing.
How deep it goes
Generates malformed cases and checks responses, but stops short of testing business-layer behavior.
Examples
Exercises course endpoints and student registration, including malformed NUL-byte input that triggers a database error.
What you can do after
Apply it via Schemathesis to discover API drift, malformed-input failures, schema violations, and authentication weaknesses.

Read how Secure APIs explains Schemathesis →

Automating API Delivery

Schemathesis is an open-source tool that generates and executes property-based tests for web APIs from API schemas such as OpenAPI definitions.

How it is used
Generates and runs schema-conformance tests against external or public APIs from their published definitions.
How deep it goes
Walks through CLI execution, data generation, request recording, documented examples, and interpretation of failures and summaries.
Examples
Uses a Product Catalog API, an OpenAPI YAML definition, a CLI command, a cassette, and response-schema failure output.
What you can do after
Diagnose API schema defects and automate happy- and sad-path conformance checks with the Schemathesis CLI.

Read how Automating API Delivery explains Schemathesis →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.