You can create virtual assets (.pva files) and responder suites from the Virtual Assets screen. Click Virtual Assets under the Navigation tab in the Service Virtualization module to access this screen. 

CTP supports creating virtual assets from OpenAPI, RAML, and WSDL API descriptions. See Creating Virtual Assets from Traffic for instructions on creating virtual assets from traffic capture with a Parasoft proxy.

Creating Virtual Assets

  1. In the left pane, select the server or folder where you want the new virtual asset added.
  2. Choose Create Virtual Asset from the page-level action menu.
     
  3. (Optional) Modify the name of the newly-created virtual asset.
  4. Choose one of the following description options from the Create drop-down menu:
    • From RAML: 0.8 and 1.0 are supported.
    • From OpenAPI (Swagger): 1.0 - 2.0 are supported.
    • From WSDL 
  5. Specify the absolute URI of the description file in the URL field and click Create Asset.

The .pva (included any generated responders) will be added to the specified Virtualize server. You can review the added responders by selecting the associated tree node. 

If the .pva was created from a RAML or OpenAPI definition, the following items will be created and configured:

  • A .pva file will be created on the designated Virtualize server.
  • One Message Responder configured for each resource/method/status code in the definition. The responder's correlation, status code, and response are configured accordingly. A sample message (if available) is included in the response. If the service definition includes a JSON schema, a sample response is constructed from that JSON schema.

If the .pva was created from a WSDL, the following items will be created and configured:

  • A .pva file will be created on the designated Virtualize server.
  • Message Responders for the operations and fault messages defined in the WSDL.

Video Tutorial

Adding Empty Virtual Assets

To add a new empty virtual asset (.pva) from CTP:

  1. In the left pane, select the server or folder where you want the new virtual asset added.
  2. Choose Create Virtual Asset from the page-level action menu. 
  3. (Optional) Modify the name of the newly-created virtual asset.
  4. Choose Empty from the Create drop-down menu and click Create Asset. You can manually add and configure responders.

Adding Responder Suites

To add an empty responder suite within an existing virtual asset (.pva file):

  1. In the left pane, select the .pva or responder suite where you want the new responder suite added.
  2. Choose Add Responder Suite from the page-level action menu.
     
  3. (Optional) Modify the name of the newly-created responder suite.

The responder suite will be added to the specified Virtualize server within the designated .pva file.

Adding Message Responders

You can add Message Responder tools from the CTP interface. Additional responders can be added from Virtualize desktop.
For details, see Adding and Editing Message Responders.

  • No labels