The first time that most software testers hear the term “Service Virtualization,” they immediately think of server virtualization (e.g., VMware). Server virtualization is undeniably a valuable tool for creating and maintaining test environments, but Service Virtualization is something altogether different.
Service virtualization is the simulation of interfaces – not the virtualization of systems. Service virtualization lets you automatically execute tests even when the application under test’s dependent system components (APIs, third-party applications, etc.) cannot be properly accessed or configured for testing. By simulating these dependencies, you can ensure that your tests will encounter the appropriate dependency behavior and data each and every time that they execute. It’s commonly used when integration tests or end-to-end tests need to interact with dependent system components that are:
- Unreliable, evolving, or not yet completed
- Beyond your scope of control (e.g., operated by another company or division
- Available for testing only in limited capacity or at inconvenient time
- Challenging to provision or configure in a test environment
- Simultaneously needed by different teams with varied test data setup and other requirement
- Too restricted or costly to use for automated regression testing
Service Virtualization has become recognized as one of the best ways to speed up testing and accelerate your time to market. In a recent Gartner research note, A Guidance Framework for Testing Web APIs, Gartner Analyst Sean Kenefick talked about the importance of finding performance issues and bugs earlier in the software development process by using Service Virtualization. Kenefick emphasized that simulating an entire application environment where missing applications or third party applications have been virtualized ensures fast feedback loops, and ensures that you have the right tools for Continuous Testing.
In short, Service Virtualization holds tremendous potential to help testers boost test automation and keep pace with Agile and DevOps demands. If you’re being pressured to test faster and/or earlier in each release cycle (e.g., “shift left”), I encourage you to learn more about Service Virtualization and decide if it could help you advance your team’s Continuous Testing efforts.
Interestingly, although Service Virtualization has been around for years now, it’s more “virtual reality” than “real reality” for many software testers—even those whose organizations have already deployed Service Virtualization tools. In theory, Service Virtualization is all about removing constraints for software testing. In reality, many testers have found that Service Virtualization falls short of its promise to end delays and provide them direct, easy control over the test environment—especially for stateful tests interacting with multiple dependencies.
One promising solution for making Service Virtualization more than a virtual reality for testers is a new approach called “Test-Driven Service Virtualization”: Service Virtualization performed in the context of a test and architected for the needs of a tester.
If you want to find out more about Test-Driven Service Virtualization and how it compares to other common approaches to Service Virtualization, watch Alexander Mohr’s on-demand Test-Driven Service Virtualization webinar. He covers topics like the importance of Service Virtualization and the pros and cons of each Service Virtualization approach from a tester’s perspective.