Integrate virtualized services overview

Note: The integration with Service Virtualization is supported in LoadRunner Enterprise 2020 only.

This section provides an overview of how Micro Focus Service Virtualization (SV) integrates with Performance Center to use simulated services during your test run instead of loading actual services.

Service Virtualization overview

As part of your performance test, you may want to test applications that depend on other services which are a part of your business scenario. Instead of loading actual services, you can use simulated services in your test run. The virtualized services are a simulation of actual services.

To facilitate performance testing business processes that contain services that are not available, LoadRunner Enterprise integrates with Service Virtualization.

Using simulated services in your test is helpful if using actual services involves an additional cost or requires the service of an application that is under development or inaccessible at the time when you run your performance test.

Example:  

Your business process might include a service that is in development or incurs a cost, such as processing a credit card through a third-party vendor. By using a virtual service, you can replace actual services with simulated services that mirror both the data model and the performance model.

For details on creating projects that contain virtualized services, see the Service Virtualization Help Center.

The workflow below explains how Service Virtualization integrates with LoadRunner Enterprise processes:

For task details, see Add virtualized services to performance tests.

Back to top

Service Virtualization monitoring

The Micro Focus Service Virtualization monitors enable you to analyze the status and performance of the simulated services during the performance test run. For example, you may integrate a payment process service containing the following operations into your script:

Type Example Name Example Description
Service CreditServ Process online credit card payments
Operation CreditServ.PurchaseRequest Cardholder requests product/service
Operation CreditServ.AuthorizationRequest Merchant request authorization for payment
Operation CreditServ.AuthorizationApproval

Credit card company authorizes or denies payment

The online monitors measure the overall behavior of the service and each operation. The flowchart illustrates using a service and operations for credit card payment.

In addition to the Run-Time monitor graphs available in LoadRunner Enterprise, the following graphs are useful for working with and analyzing service virtualization integration.

You can view the following Run-Time monitor graphs during a test run:

Note: To get graph data from the Service Virtualization server, make sure it has the Performance Center system user (IUSR_METRO, unless changed by the System Identity Utility) added to the Service Virtualization server machine users, and add the user to the Performance Monitor Users group. For details, see Update communication security and system user.

Back to top

Service Virtualization locking

When your performance test contains virtualized services, those services are automatically locked and cannot be used by other users while the test is running. Virtualized services may be locked by you or other users for editing, simulation, deployment.

  • If your test includes a service that has been locked by another user, start run will fail and an error message will appear in the ALM Test Runs module's event log for the specific run.
  • If your test is running and you update the test to include a service that has been locked by another user, the test will continuing running, however an error message will appear in the Online Screen's Messages tab as an error. There will also be an error notification in the Summary.

Back to top