Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2025.1

...

Data learning is possible in Virtualize for HTTP traffic using the “Learn responses” feature in a Message Proxy. With this feature, Virtualize will learn and emulate responses recorded from a live HTTP endpoint and update a virtual asset to the most current state. The virtualized endpoint can then be used as a reliable failover when the real endpoint is not available. This minimizes the set-up efforts associated with service virtualization and , reduces maintenance costs, and offers the easiest way to virtualize your service.

Overview

Generally speaking, setting up a data learning environment involves the following steps:

...

  1. Click the Virtual Asset Explorer tab (if it's not already open, go to Parasoft > Show View > Virtual Asset Explorer) and open the /VirtualAssets/generated_by_data_learning directory.
  2. Expand the my-virtual-asset.pva found there. You should see a Request / Response Files responder that was automatically generated.
  3. Click the Project Explorer tab (if it's not already open, go to Parasoft > Show View > Project Explorer) and open the /VirtualAssets/generated_by_data_learning/my-virtual-asset_files/data_learning directory. You should see some traffic files that have been generated. These will be used to match incoming messages.

...

Open a browser and go to http://localhost:9088/parabank/services/bank/customers/12212/accounts. That's enough to create the necessary directories necessary directories and start storing data, with a Request/Response Files responder in the Virtual Asset Explorer

...

and traffic files in the Project Explorer.

Point the Message Proxy to the Virtual Asset Endpoint

...

With this configuration, traffic will be routed to the Virtual Asset before the live service. If the asset fails to match an incoming request against the generated traffic files, the proxy will fall back to the live service and will generate new traffic files for the new learned data. For more information on the request items considered for correlation and data retention options, refer to Request/Response Files Options.