Schema-Based Contract Testing: Preventing API Drift in Practice
summary
Shows schema-based contract tests that compare an OpenAPI file to a live API, generating a Postman collection and runnable tests that validate status codes, content types and JSON schema, and flag mismatched examples and missing query params. Uses Portman to generate tests and collections, runs them with Newman, and demos against Swagger Petstore, revealing many spec/implementation mismatches, supporting variation tests and simple fuzzing, and working reliably in CI.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker background
- 2:49Why API testing matters
- 7:23Contract testing strategies
- 8:47Schema-based contract testing explained
- 10:34Demo setup and tools
- 14:06Running the contract tests
- 16:13Demo results and findings
- 16:35Best practices and pitfalls
- 19:26Advanced testing features
- 20:09Conclusion and call to action
