API Testing and Validation (2017)
1h 14mAdvanced2017-06-01
Authors

Keith Casey
Software development and project management
Course details
Most API testing doesn't actually test the API. This course shows how to validate your API from the consumer's point of view, testing to confirm that problems experienced by your end users are being solved. Join Keith Casey as he focuses on how to approach API testing by implementing a behavior-driven development model. Keith uses Gherkin to set up a Behat environment so you can see how to write and run your first test. Then, he shows how to build API test requests, including how to introduce variables, authenticate requests, and validate responses. He also covers refactoring tests, establishing system states, using extensions for batch operations, and more.
Learning objectives
The benefits of behavior testing
Setting up a test environment
Building your first API test
Sending requests
Validating response codes and payload
Making authenticated requests
Refactoring tests
Writing to the API
Establishing a system state for tests
Using extensions
Performing batch operations
Learning objectives
The benefits of behavior testing
Setting up a test environment
Building your first API test
Sending requests
Validating response codes and payload
Making authenticated requests
Refactoring tests
Writing to the API
Establishing a system state for tests
Using extensions
Performing batch operations
Skills covered
BehatComposerFileMakerRESTPHPAPIsOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - API overview
- 04 - Required tools for this course
- 05 - Useful tools for this course
- 06 - Exercise files
1. Understand Behavior Testing with Gherkin
- 07 - Testing overview - Goals and behavior
- 08 - Explanation of Gherkin
- 09 - Set up the Behat environment
- 10 - Running your first test - Write, generate, fill in, and refactor cycle
2. Build Your First API Test
- 11 - Make your first request - Read only
- 12 - Introduce variables in requests
- 13 - Validate responses - Response codes and payload
3. Handling Authentication in API Testing
- 14 - Make authenticated requests
- 15 - Make your first authenticated request
- 16 - Validate responses
- 17 - Refactor the tests
4. Advanced API Testing in Practice
- 18 - Writing to the API
- 19 - Establishing system state for tests
- 20 - Challenge solution
- 21 - Handling response codes
- 22 - Use extensions - Batch operations
Expand Your API Tests
- 23 - Next steps
Related courses
- API Testing and Validation
- Accelerating Laravel API Development with AI: From Specification to Testing
- Java: Automated API Testing with REST Assured
- Capstone: Building Production Features with Copilot
- Nest.js Developer Lab 2026: Build a Robust API with Authentication, Articles, and User Profiles
- Java EE 8: Web Services
- Building Intelligent Chatbots on AWS (2019)
- Learning the OWASP Top 10 (2025 Version)