Skip to the content.

IBM Rational Test Virtualization Server (RTVS) - Usage

Use the Service Virtualization plug-in to automate the virtualization of services from IBM UrbanCode Deploy.

Before you begin

  1. Install the UrbanCode Deploy server. For assistance, see UrbanCode Deploy documentation.
  2. Install the Service Virtualization plug-in on the UrbanCode Deploy server. For assistance, see Installing plug-ins.
  3. Install the UrbanCode Deploy agent and connect it to the UrbanCode Deploy server. For assistance, see UrbanCode Deploy documentation.
  4. Install Rational Test Virtualization Server on the UrbanCode Deploy agent computer and apply a valid license. For assistance, see Installing Rational Test Virtualization Server.

About the task

As a tester, you might have a large number of services to be virtualized against the latest builds of a software system. Instead of manually virtualizing services against every new build, you can install the latest build on an IBM UrbanCode Deploy Agent computer and use it to automatically virtualize the services for you. After deploying the Service Virtualization plug-in on the UrbanCode Deploy server, create a component and its processes, applications and its processes, environments, and resources. For information about how to create and configure these pieces, see UrbanCode Deploydocumentation.

Examples

Example: Virtualizing services in a component process

This component process creates and updates an environment in IBM Rational Test Control Panel. You can use a similar process as part of an overall scenario that includes virtualized services. This process assumes that the application binary files are in the component. It also assumes that the environment contains an installation of Rational Integration Tester. The process runs the following steps in order:

  1. The Create Transient Environment step uses a base environment stored in Rational Test Control Panel to create a transient environment.
  2. The Update Transient Environment step updates the host name tag in the transient environment to correspond to the host where the environment is deployed, which could be in the cloud.
  3. The Start Stub step initiates the virtualized service.
  4. The Stop Stub step shuts down the virtualized service.
  5. The Delete Transient Environment step deletes the transient environment.

Example: Virtualizing services with Rational Test Workbench

The following example describes a scenario that includes a component process that uses virtualized services. In this example, an application in IBM UrbanCode Deploy comprises two components. One component is the user interface for a web application running on an application server. The second component is a virtual representation of a web service.

Before you begin

You must install IBM Rational Test Workbench, including IBM Rational Test Control Panel and IBM Rational Integration Tester. To learn more about Rational Test Workbench, see the Rational Test Workbench Knowledge Center.

About this task

To virtualize the web service, you can use the Green Hat plug-in to create a transient environment that mimics the behavior of the actual web service. The user interface component is deployed as any other component to a node where the IBM UrbanCode Deploy agent is installed, either on a specific host or on the cloud. When the application server is configured on the user interface component, the proxy is installed so that HTTP calls are routed to the IBM Rational Test Control Panel server, which then returns the data from the stub.

Procedure

  1. Use IBM Rational Test Control Panel to record and publish the virtual services that you want to emulate. These virtual services are also known as stubs. When you create the stubs, add environment tags to replace the recorded data with dynamic data, such as the host name. To learn more about stubs, see Stubs in the Rational Integration Tester documentation.
  2. In IBM UrbanCode Deploy, create an application with two components, one for the user interface component and one for the virtualized service. To learn more about creating applications, see UrbanCode Deploy documentation.
  3. Create a component process to install the user interface component. The following steps show an example set of process steps for an application running on Tomcat.
  4. Use the Install Tomcat step in the Tomcat plug-in to install the application server.
  5. Use the Download Artifacts step from a source control plug-in such as the UrbanCode Versioned File Storage plug-in to download the user interface application.
  6. Use the Unzip step in the File Utils plug-in to extract the user interface application.
  7. Use the Modify Tomcat Artifacts step in the Tomcat plug-in to update the WSDL host name that the user interface application uses for calls to web services.
  8. Use the Update Config File step in the Tomcat plug-in to add the proxy information for IBM Rational Test Control Panel to the tomcat6 configuration file. For Tomcat, you change the JAVA_OPTS properties for http.proxyHost and http.proxyPort to point to the host name and port number of the IBM Rational Test Control Panel proxy.
  9. Use the Start Tomcat step in the Tomcat plug-in to start the application server.
  10. Create Transient Environment Use a base environment that you have created in IBM Rational Test Control Panel to create a transient environment. The transient environment is used to start the stub with dynamic property values.
  11. Update Transient Environment Update the environment with properties specific to the deployment environment.
  12. Start Stub Start the virtualized service in the transient environment.
  13. Stop Stub Shut down the virtualized service.
  14. Delete Transient Environment Delete the transient environment.

Results

When you run the application process, the user interface component is deployed and then the virtual services component is deployed.

Back to …   Latest Version IBM Rational Test Virtualization Server (RTVS)      
All Plugins Deploy Plugins 4.0 Readme Overview Steps Downloads