No-frills REST api testing with REST-Assured
summary
Claims that REST-Assured replaces clumsy tools like SoapUI/PostMan/Cucumber by using a concise Java DSL (with Groovy) and speeds test writing; demos exercise a Spring Boot conference service, show request and response specification re-use, check bodies and JSON paths, assert performance like response time <1s, handle form and basic auth, multipart uploads and cookies, and mock third-party APIs by spinning a fake server so integration tests either hit a deployed instance or run as spin-up Spring Boot in-memory tests. Works in several projects (Rabobank, etc.).
AI-written summary · about
chapters (21)
- 0:00Introduction to REST API testing
- 1:45Why test REST APIs
- 2:49Setting up REST-Assured
- 7:04Basic GET request demo
- 10:06Validating responses
- 13:39Query parameters
- 15:00Basic authentication
- 16:42Response time validation
- 18:09POST requests
- 21:47JSON object handling
- 23:24Custom authentication
- 25:58Request builder
- 28:11Integration testing with Spring Boot
- 31:35In-memory service demo
- 33:03Spring Boot integration details
- 37:20Mocking third-party services
- 39:09Testing in-memory containers
- 40:13Secure endpoints
- 42:22Performance considerations
- 43:52Real-world usage examples
- 44:55Q&A and summary
