Track 5 of 9Learning Center
OpenAPI, Contract and Schema Testing
Test an OpenAPI spec step by step: generate tests from Swagger, validate JSON schemas, run contract tests and catch breaking changes before they merge.
- For Developers
- For Automation engineers
- lessons
- 9 lessons
- in total
- 1h 24m in total
9 lessons in this track
- 1
beginner · 8 min · runnable request
What Is Swagger Testing? Reading an OpenAPI Spec Like a Tester
Swagger testing means checking an API against its OpenAPI (Swagger) document. Learn which parts of a spec a tester reads, why examples aren't the contract, and explore one in Shift-Left API.
Open lesson → - 2
intermediate · 9 min · runnable request
How to Test an OpenAPI Spec: Check the Document, Then the API
To test an OpenAPI spec you test two things: the document, and the API against the document. Work through both on the sandbox store, then generate tests and run them in Shift-Left API.
Open lesson → - 3
intermediate · 9 min
Swagger Test Case Generation: From Schema Keywords to Test Cases
Every keyword in a schema is a rule, and every rule gives test cases. See the mapping keyword by keyword, what no generator can derive from a spec, and how to judge one, then generate tests in Shift-Left API.
Open lesson → - 4
intermediate · 10 min · runnable request
JSON Schema Validation Example: One Schema, Three Payloads
Write one JSON Schema for a real product list, run three payloads through it, and read the errors. Then see exactly which shape checks Shift-Left API runs, and which it doesn't.
Open lesson → - 5
intermediate · 9 min · runnable request
What Is Schema Validation in API Testing? Requests, Responses and Drift
Schema validation in API testing happens in three places: requests, responses, and the spec itself as it changes. Find real drift between the sandbox store and its spec, then see how Shift-Left API catches both kinds.
Open lesson → - 6
intermediate · 10 min
How to Do API Contract Testing: A Step-by-Step Method
A six-step method for API contract testing, from choosing where the contract lives to gating every release on it, with a contract suite built as a Test Run Pack in Shift-Left API.
Open lesson → - 7
intermediate · 10 min · runnable request
What Is Pact Contract Testing? Consumer-Driven Contracts, Fairly Compared
Pact turns each consumer's expectations into a contract the provider must verify. See how it works on one interaction, where it beats spec-driven contracts, where it doesn't, and where Shift-Left API fits.
Open lesson → - 8
advanced · 10 min
API Versioning Tools: Testing Two Versions of One Contract
One field becomes required, and every old client breaks. Work through that change with each versioning strategy, see which tests a compatible release needs, then test both spec versions in Shift-Left API.
Open lesson → - 9
intermediate · 9 min
What Should an API Test Coverage Tool Measure?
Endpoint coverage alone can read 100% on a suite that checks nothing. See the dimensions an API test coverage tool should measure, work one example by hand, then read the coverage panel in Shift-Left API.
Open lesson →
Want the full guides first? Browse the API testing hub or go back to all 9 tracks.
Practice these lessons on your own APIs
The Free Developer License of Shift-Left API is a single-user license that renews free every 6 months: import your OpenAPI spec, generate tests, mock APIs and run workflows on your own machine.