API Testing and Validation
1h 35mAdvanced2023-07-10
Authors

Keith Casey
Software development and project management
Course details
How do you test your API to ensure it's working as intended and solving business problems? Most API testing doesn't actually test the API. In this course, Keith Casey teaches you how to test and validate your API by using behavior-driven development, or BDD, to test APIs via their external endpoints. Keith looks at the API from the consumer’s point of view, confirming that problems experienced by your end users are being solved. Join Keith in this course to learn how to prove that your APIs are working exactly as we expect today, tomorrow, and continuously.
Skills covered
BehatCucumberFileMakerRESTPHPAPIsOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
Introduction
- Be an API testing and validation MVP
- What you should know
- API overview
- Exercise files
Behavior Testing with Cucumber and Gherkin
- Acceptance testing
- Explanation of Gherkin
- Set up your test environment
- Create your first feature description
- Write your first test
Build Your First API Test
- Make your first request
- Introduce variables in requests
- Validate responses
Handling Authentication in API Testing
- Expand your testing environment
- Making an authenticated request
- Changing your API and target via your requests
- Validate responses
- Refactor the tests
Advanced API Testing in Practice
- Writing to the API
- Establishing a system state for tests
- Solution - Validating system state
- Handling response codes
- Using extensions
Planning Your API Testing Strategy
- Mapping your API
- Documenting your API
- Prioritizing your endpoints
- Structuring your tests
Conclusion
- Next steps