This talk will explore how, when and above all why to mock APIs.
Blocked because the API you depend on doesn’t exist yet or isn’t completely ready? Facing trouble to test various scenarios due to lack of control over third-party APIs? Struggling to test failure cases like receiving an invalid response , 5XX errors and so on? Having flaky tests due to slow API responses?
These are some very common problems we encounter. We cannot rely on slow APIs, which provide a very narrow range of responses. So how can we test effectively in such situations? Is there any feasible solution available? Fortunately, there is: mocking of APIs.
In this session, I will explain how to mock APIs using Wiremock. With a real life example application, we’ll explore how to handle complicated scenarios and form testing strategy. Join this session to gain insights on how, when, and most importantly why we should mock APIs. Let’s find together how development and testing can benefit from mocks.
Remember, “If API testing is the king, mocking APIs is the queen!”
Please note: At the end of this talk, all attendees will get access to the example application used during talk for trying out the mocking themselves.
Combo-Session: 30-minute Talk & 75-minute Workshop