
API Testing is asked in EVERY SDET interview — and most candidates are underprepared! 🔌
This guide covers 200+ real API testing interview Q&As from both Postman and RestAssured perspectives — compiled from actual MNC and product company interviews! ✅
✅ What's Inside:
📌 Section 1 — REST API Fundamentals (50 Q&As) • HTTP methods — GET, POST, PUT, DELETE, PATCH • Status codes — 200, 201, 400, 401, 403, 404, 500 • Request & response structure • Headers, body, params — differences & usage • Authentication — Basic Auth, Bearer Token, OAuth 2.0 • REST vs SOAP — key differences
📌 Section 2 — Postman (60 Q&As) • Collections, environments, variables • Pre-request scripts & test scripts • Postman assertions — pm.test, pm.expect • Chaining API calls — passing response values • Newman — running Postman in CI/CD • Mock servers in Postman
📌 Section 3 — RestAssured (60 Q&As) • Given/When/Then structure • Response validation — statusCode, body, headers • JSON path & XML path extraction • RequestSpecification & ResponseSpecification • RestAssured with TestNG integration • Handling authentication in RestAssured
📌 Section 4 — Scenario Based (30 Q&As) • Real scenario questions from MNC interviews • API testing strategy questions • How to test an API without documentation
🎁 Bonus: Top 20 API testing interview Q&As asked only in product companies! 📥 Instant download — PDF format