STAREAST 2024 Concurrent Session : The Power of Mocking APIs

SEE PRICING & PACKAGES

Wednesday, April 28, 2021 - 1:00pm to 2:00pm

The Power of Mocking 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 stub 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  stub APIs. Let’s find together how development and testing can benefit from mocks. Weather application source code Wiremock project code
 
Key takeaways:
  • How to test systems in isolation
  • How to setup mock servers
  • Why and how to stub APIs 

 

New Work SE

Shivani Gaba is currently the Team Lead of Engineering at New Work SE in Germany. She’s an experienced speaker who has delivered sessions at various international conferences. She believes that knowledge sharing boosts up all engaged parties and increases their confidence. It was the summer of 2013 when Shivani and “testing” met each other first time, and have been best friends since then. Shivani has rich experience in the testing domain, with hands-on in all layers of software testing ranging from UI (frontend), API and backend, functional, non-functional, and machine learning (ML) mobile testing. ML remains her all-time favorite. As a certified scrum master, working in an agile manner is always her approach. She believes in the idea of spreading her findings about any “new fancy stuff” she learns. She has worked with multiple international teams and brings forward ideas for the whole team, contributing to quality. She’s always up for conversation over email, LinkedIn, Xing, Twitter, or a beer table :)