Schemathesis
Schemathesis is an open-source tool that generates and executes property-based tests for web APIs from API schemas such as OpenAPI definitions.
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.
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.
What to know first
- OpenAPI specificationThe OpenAPI Specification is a machine-readable standard for describing HTTP APIs, including their operations, inputs, outputs, data structures, and security requirements.
- contractA contract is an agreed specification of the conditions, expectations, rights, or obligations that govern behavior or interactions between parties or software components.
Related concepts
- fuzzingkind of · Fuzzing is an automated testing technique that supplies varied, malformed, unexpected, or mutated inputs to software to reveal failures, vulnerabilities, or other defects.
- OpenAPI specificationuses · The OpenAPI Specification is a machine-readable standard for describing HTTP APIs, including their operations, inputs, outputs, data structures, and security requirements.
- property-based testingkind of · Property-based testing is a software-testing technique that checks whether specified general properties hold across varied, often automatically generated, inputs.
- contract testingimplements · Contract testing is a software testing technique that checks whether interacting components conform to an agreed interface or behavioral contract.
- implementationuses · Implementation is the process or concrete realization of a design, specification, or requirement as executable code or operational behavior.
Questions about Schemathesis
What is Schemathesis?
Schemathesis is an open-source tool that generates and executes property-based tests for web APIs from API schemas such as OpenAPI definitions.
Which Manning books explain Schemathesis?
Secure APIs and Automating API Delivery.
What should I know before learning Schemathesis?
Manning books that teach Schemathesis usually introduce OpenAPI specification and contract first.
What is Schemathesis a kind of?
Schemathesis is a kind of fuzzing. Fuzzing is an automated testing technique that supplies varied, malformed, unexpected, or mutated inputs to software to reveal failures, vulnerabilities, or other defects.
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.

