In our 3-part series on “Service Virtualization”, our test experts have examined all the advantages and possible uses of this procedure. Why do our experts know this so well? Because they work with it every day on different projects in different companies. This also means that no solution is new to us. No matter which tool a company uses to manage and implement virtual stubs, we know them all – and can also depict them all in aqua, our agile test management tool.
Keeping the overview
As the demand for this type of testing grows, so does the number of suppliers. Besides Micro Focus, HP Inc. (Hewlett Packard) and IBM. IBM’s solution is widespread. That’s why we visualize the “Rational Test Virtualization Server” (short: RTVS), formerly known as “Green Hat Virtualization”, from IBM with aqua in this article.
Structure of the RTVS
The RTVS is based on an orchestrated interaction.
The components are:
The IBM tool always works in one of the following 3 operating modes:
Procedure of the RTVS with aqua-API
The RTVS environment acts as a pure proxy that does not “interfere”. Thus a communication between client and service takes place.
The data traffic between client and service is forwarded. A virtualization stub is defined (contains the defined response behavior (program logic).
If the real service is not available, the corresponding stub can be activated. The client can be further tested, the defined stubs are customizable.
The RTVS is easy to use and guarantees quick success. In the application to be developed no changes are necessary, stubs can be set up, defined and managed. In the IBM solution there are no design dependencies between supported protocols (HTTP/S, MQ, J2IMS) and data structures (Copybook, XML, XSD, JSON and WSDL).
In addition, interfaces can be tested and simulated using the “http/s” communication protocol. The application allows test data to be recorded for future test activities and exported as Excel files.
The REST (Representational State Transfer) technology is also supported by the IBM solution. This allows API apps to be simulated, as well as an API sandbox. An alternative to other interfaces like SOAP or WSDL is also given.
A look behind the scenes
Experienced test professionals and new team members also benefit from the virtualization service in our everyday life, as the aqua API may not be available at test time or during the onboarding process. However, thanks to the virtualized images, this can still be used, since the behavior of the system is not affected and the functionalities are available until the time of failure.
In addition, several virtual services of varying complexity can be made available for further training and/or induction.
RTVS can also be integrated with aqua. This is done via the aqua agents “Powershell. Test cases from aqua can be started via this agent in order to control the defined stubs from the RTVS. A condition for this is that the provided stubs are located in the same directory as the agents. The stubs must also be referenced within the agents.
In concrete terms, it would be as follows:
In advance, the system checks whether the real aqua server is available. If this is not the case, the created stubs are started from the RTVS. Accordingly, aqua would have to be informed that the virtualisation has been initiated.
Once this is done, the test case is started and executed. When the test case is completed, the stub is stopped in the RTVS. Examples would be the simulation of false answers, server failure, requests and responses at different intervals.
In addition to the technologies already described, the IBM solution supports more than 40 communication technologies:
|SOA, ESB, Others||Message |
|HTTP/S||WebSphere Application Server||XML (XSD, WSDL, WADL)|
|IBM Integration Bus |
|REST||WebSphere SI Bus||COBOL Copybook|
|Java RMI |
|JVM (Virtualization |
|SAP IDoc, BAPI, RFC||System z (CICS and |
|Software AG‘ s |
IB & IS
|Software AG IS, |
|ISO 8583 / 20022|
|TCP/(S), IP, UDP||Oracle Fusion||Fixed Width|
|CICS TG||TIBCO ActiveMatrix||Java Objects|
|CICS DPL||Databases||Software AG |
|IMS Connect||Log Files||.Net Objects|
|TIBCO Rendezvous, |
Smart Socket & EMS
|Email (SMTP, |
|FTP/S||IBM API |
Table: Communication technologies (excerpt)
Our andagon experts meet the tool “HP ALM” in many of our customer projects. Again, the “RTVS” tool can be useful for managing the central application lifecycle from requirement to deployment. The Rational Test Virtualization Server enables integration with HP ALM. Defined test cases that run via the virtual interface can be executed. Reports for the documentation of bugs and defects are also created and saved.
The RTVS is also compatible with other products of the IBM family (e.g. “Rational Test Workbench”, “Rational Quality Manager”).