Deploying virtual services using Rational Test Virtualization Server

When Rational® Quality Manager is integrated with Rational Test Virtualization Server, you can deploy virtual services by using Rational Test Control Panel while running tests. This topic describes how to run stubs or scenarios as a virtual service in Rational Quality Manager.

Before you begin

Integrate Rational Test Virtualization Server with Rational Quality Manager as described in Integrating Rational Test Virtualization Server with Rational Quality Manager.
Important: When you integrate Rational Test Virtualization Server with Rational Quality Manager (that uses HTTPS communication) for deploying virtual services, ensure that Rational Test Control Panel also uses HTTPS. For more information, see the procedures described in Configuring Rational Test Control Panel to use HTTPS.

About this task

Run stubs or scenarios as a virtual service:

Procedure

  1. In Rational Quality Manager, on the artifact list, find the test case execution records or test suite execution records that you want to run.
  2. Select the execution record.
  3. Open Run Test menu and click Run with Options.
  4. Click the edit icon next to the Deployment Plan field. The deployment plan selection dialog box shows the stubs and scenarios that are available from Rational Test Control Panel.
  5. Click Environment to select an environment in which to run the virtual service. There is also an option to choose whether to run a scenario or a stub as a virtual service. Create a scenario containing the configuration to use for the test in advance. Click OK.
  6. Optional: In the Run with Options dialog, select Remember selected deployment plan for future run. Doing so helps you repeat the tests any number of times based on the same deployment configuration.
  7. Click OK. This Deployment dialog box is displayed.
  8. Select whether to use an existing deployment or a new deployment.
  9. Click OK, Start scenario, or Start stub based on your action in the previous step. The execution view for executing the Rational Quality Manager test or suite that you selected is displayed. In this view, you will see a link to the virtual service that you are using.
    1. Move the cursor over the link to view the status of the stub or scenario.
    2. Wait for the status to change to "Running" before you start using the service.
  10. After the test is completed, stop the virtual service by clicking Stop in the hover window. If a stub has multiple instances, you must stop each one of them individually; stopping all the instances at once is only possible on Rational Test Control Panel.

Results

Virtual services from Rational Test Control Panel are available for use by the automated or manual tests that are run from Rational Quality Manager and that can benefit from service virtualization. For more information on service virtualization and how to configure the system under test to use virtual services, see Virtualizing HTTP.

Feedback