Get examples of how and why you would want to use mocks, stubs, and fakes in API testing.
- [Instructor] You might have heard about terms like mocks,…stubs or fakes in relation to unit testing before.…If those are scary terms for you, don't worry.…In this video, we'll dig into them,…and I'll help you understand what they mean…and also how you can effectively use them…in your API testing.…So first, let's start with some definitions.…What do we mean by these things?…Well, just like how in a movie,…an actor might have a stunt double,…so in testing we can have something we call test doubles.…These are things that we use to stand in…for some real part of the system.…So when we talk about mocks, stubs,…fakes or even things like spies,…we're talking about test doubles.…
There's some disagreement on what each…of these terms precisely means, so if you hear people…on your team talking about these, you should really…pay close attention to how they talk and think about them.…Understanding those terms in the context…of your team is an important thing.…So what we need to understand here is that at the end…of the day, these are things that we create…
- Reviewing API terminology
- Mitigating risks related to testing APIs
- Mapping out the layout of an API
- API authorization and authentication
- Finding and using bearer tokens
- Testing GET, POST, PUT, and DELETE calls
- Using mocks, stubs, and fakes in API testing
- Testing microservices and the Internet of Things
Skill Level Intermediate
1. Understanding Web Services and APIs
2. Getting Started with API Testing
3. API Authorization
Using OAuth tokens3m 28s
4. Hands-on API Testing
5. Additional API Testing Considerations
Next steps3m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.