The power of mocking APIs

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.


More Related Sessions


Two-Day Tutorial (12-hour Workshop)

Sunday, June 05, 2022 9:00 a.m. – 5:00 p.m. Ballroom J

30-minute Talk

Tuesday, June 07, 2022 10:30 a.m. – 11:00 a.m. Mallard

60-minute Talk

Tuesday, June 07, 2022 11:30 a.m. – 12:30 p.m. Mallard

30-minute Vendor Talk

Tuesday, June 07, 2022 4:15 p.m. – 4:45 p.m.