When configuring a component instance with a virtual asset, you can either select an existing virtual asset or create a new one.
To configure a component instance with an existing virtual asset:
If there are multiple deployments of that virtual asset, select which one you want to configure here.
A single virtual asset (.pva) file might be simultaneously deployed at multiple endpoints—each with a different data source / performance profile configuration. Virtual asset file specifies which .pva to use. Deployment refers to a specific virtual asset deployed at a unique endpoint. |
There are several ways to create virtual assets. You can create:
In order to create a new virtual asset from traffic, you need the following:
|
This functionality is designed for rapid generation of virtual assets. For additional control over the generation process, follow the procedure in Creating Virtual Assets from Traffic or use the Virtualize desktop.
To create and add a new virtual asset for behavior recorded in a traffic file:
Leave Create set to From Traffic.
Select the traffic file you want to use for virtual asset creation. If CTP detects a traffic file that was recorded from this component, that file will be selected automatically. To repopulate the list of traffic files, click Refresh.
If you’re starting and stopping traffic recording via CTP, and click Now in the following dialog, you’ll automatically be taken to this point in the process. Before you proceed, you might want to rename the component instance. |
(Optional) If you want to create virtual assets using "create from traffic" configurations that were saved in a template, specify which template you want to use (you can select from any templates available within the traffic_templates folder on the given Virtualize server). Once a template is specified, the related fields will be automatically set and become uneditable.
Specify connection settings for the data repository that will be used to parameterize the virtual asset.
Under Repository server, select an existing data repository server (connected through TDA).
Under Repository name, enter a name that will be used to label the created repository. Autocomplete will suggest the names of existing repositories. If you use the name of an existing repository, that data could be overwritten. You cannot use a repository that is locked to another user (locks are indicated with lock icons).
If you want to modify the endpoint at which the created virtual asset will be deployed (e.g., where virtual asset will listen for incoming messages), make the desired modifications in the Virtual endpoints fields. Note that if a proxy is associated with the current component instance, the proxy target will be updated automatically.
After you submit the request (upon clicking Finish in the wizard or saving changes to the Manage Instance page), the following items will be created and configured:
To create and add a new virtual asset for the behavior specified in a Swagger, RAML, or WSDL definition:
Change Create to From RAML, From Swagger, or From WSDL.
Specify the location of the API/service definition.
After you submit the request (upon clicking Finish in the wizard or saving changes to the Manage Instance page), the following items will be created and configured:
To create a new empty virtual asset:
Change Create to Empty.
After you submit the request (upon clicking Finish in the wizard or saving changes to the Manage Instance page), an empty .pva file will be created on the designated Virtualize server. You can add Message Responders to it when you are ready.