Tips and tricks for writing API Tests
summary
Shows how to validate APIs with concrete steps: import an OpenAPI spec, generate requests, and use RapidAPI Testing to assert status codes, headers and run JSON schema validation. Demonstrates a real scenario that creates a product, reads it via its returned id, then deletes it to avoid test pollution. Shows running the same encapsulated tests against multiple environments via variables, wiring tests into GitHub Actions for CI/CD, and scheduling production checks with alerting for 401/404/500 regressions.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:57RapidAPI
- 2:39Agenda
- 3:47Why API testing
- 7:06API Survey 2020
- 7:43Best Practices
- 8:24Understanding the API
- 9:13Downloading the API
- 10:18Creating the API
- 10:50Testing the API
- 12:29Testing beyond the schema
- 13:18Basic logic
- 15:47Summary
- 16:08Test Encapsulation
- 17:30Failure Scenarios
- 18:54Best Practice
- 19:11CICD Integration
- 19:31Github Actions
- 20:02Monitoring
- 21:08Cleaning test data
related talks
23mSolving Challenges in API Testing to Achieve More Agile Development
36mTesting via OpenAPI, or How to Validate Your Documentation
30mAPI Evolution With CRDs: Best Practices For Authoring & Fuzz Testing APIs
19mReady to Bet on Your API Health?
23mThe Why & How of Testing APIs
43mImprove your API and OpenAPI
44mHow to fast generate your API Test with OpenAPI Tools and Rest-Assured
25mRethinking Software Quality: Why API Testing Needs to Change
