Dynamic API templating with the WireMock State Extension, by Dirk Bolte
Vložit
- čas přidán 22. 08. 2024
- When having a complex system, you sometimes need more than stubs to test or demonstrate all the functionalities of your product. Sometimes, you want to have a system that can dynamically react on user input to show its full capabilities. But this can be especially challenging when interacting with other internal or external systems that are not under your control. Some services might offer sandbox environments, allowing your application to connect to them to test your APIs. These integrations can be limited in functionality or load - and not all services offer them.
WireMock provides several ways to stub web service requests and already has some built-in functionality to provide a certain set of dynamics and support for scenarios. With the WireMock State Extension, which makes use of the improved extension capabilities of WireMock 3.0.0, this is significantly increased: you can create a fully dynamic sandbox that incorporates user input across multiple requests, building dynamic CRUD APIs, queueing systems and much more.
Speaker bio: Dirk Bolte is a freelance software developer. For 20 years, he’s been working on low level microcontrollers in C/C++, Cloud Backends + Frontends, Mobile Applications, infrastructure, DevOps + as Product Owner. Over the last years, he was focusing on Cloud Backend & Frontend as well as DevOps & Infrastructure, which always involved a decent test coverage of Unit Tests up to End-to-End Tests involving WireMock.
Originally published on the WireMockTV CZcams channel, republished with permission.