Chapter 1. An Introduction to Service Virtualization
In this chapter, we learn what service virtualization is and how it relates to stubbing and mocking, two other simulation techniques that are used often by development teams to help them write and execute tests effectively.
What Is Service Virtualization?
Service virtualization is a method to emulate the behavior of specific components in heterogeneous component-based applications such as API-driven applications, cloud-based applications and service-oriented architectures. It is used to provide software development and testing teams access to dependent system components that are needed to exercise an application under test, but are unavailable or difficult to access for development and testing purposes.1
A lot of modern software, such as Application Programming Interface (API)–driven or Service-Oriented Architecture (SOA)–based applications, consists of a number of interconnected components. Software development teams that want to access these dependent components (dependencies) during development and testing often find that these dependencies are unavailable or difficult to access.
There are several reasons for this:
- The dependency has not yet been developed or is under development. This is often seen when several development teams work in parallel on different components of a single system.
- The dependency does not contain appropriate test data. When test environments need to be configured with complex test data structures, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access