This topic provides a general guide on how to add projects, .pva (Parasoft Virtual Asset) files and Responder suites using Virtualize’s various wizards. This section includes:


Creating Action Suites and .pvn files

The process for creating action suites and .pvn files for provisioning actions is very similar to the process for creating Responder suites and .pvas. For details on functionality specific to action suites, see Defining Provisioning Actions.

Wizard Descriptions

For a description of the various wizards available for adding projects, .pva files, and Responder suites, see Overview of Wizards in Virtualize.

Projects, .pva files, and Responder Suites

A project (an entity created by Eclipse) can contain any number of Virtualize-specific .pva files. Projects can also contain source files you want to use with Virtualize, and any other resources that make sense for your environment. 

Each .pva (virtual asset) file can include any number of Responder suites.

A Responder suite is a collection of virtual assets and related items (such as data source files).

Any .pvas and responder suites that are created in the VirtualAssets project will be automatically deployed to the local server. 

Creating an Empty Project

You can create an empty project as follows:

  1. On the tool bar, go to New > Project.
  2. Choose Virtualize > Empty Project, then click Next.
  3. Enter a name for the project, change the destination if needed, then click Finish.

Adding a New .pva File to an Existing Project

To add a new .pva file to an existing project:

  1. Do one of the following:
    • Right click the project node and choose Add New > .pva File.
    • Go to File > New > .pva File.
  2. In the New .pva File wizard that opens, select the project that you want to contain the .pva file, enter a name for the .pva file, then click Next.

You can then complete the wizard to specify how you want to create virtual assets. For help selecting and completing the available wizards, see Overview of Wizards in Virtualize.

Migrating a SOAtest .tst file to a Virtualize .pva File

If you have an existing SOAtest .tst files with emulated services, you can convert it to a .pva file by changing the extension from .tst to .pva, then importing it into Virtualize (for example, you could create a project using the Virtualize > Migration for Existing Users > Create Project From Existing Responder Suites wizard).

Adding a Responder Suite

To create a new Responder suite:

  1. Do one of the following:
    • Click the Virtual Asset Explorer node where you want to add the new Responder suite and click Add Responder suite on the tool bar:
    • Right-click the Virtual Asset Explorer node where you want to add the new Responder suite and choose Add New > Responder suite.

For help selecting and completing the available wizards, see Overview of Wizards in Virtualize.

Organizing Project Files

You can create folder structures in your projects to keep your work organized.

  1. If the Navigator view is not already open, go to Window > Show View > Navigator to open it.
  2. Right-click on any node in the view and choose Add > New > Folder.
  3. When prompted, verify that the location for the new folder is correct and specify a name in the Folder name field. You can change the location by clicking on a different project or subfolder. You can also manually add subfolders to the project by specifying a path in the parent folder field.
  4. Drag files and folders into the new folder.

Add additional folders as necessary to organize your files. 

Using Eclipse Java Projects in Virtualize

Creating a New Virtualize Java Project

Virtualize allows you to create a new Eclipse Java project that has access to Virtualize 's Extensibility API, then configure Virtualize scripts and Extension tools to invoke classes from the new Java project.

To create a new Virtualize Java project:

  1. Go to File > New > Project.
  2. Choose Virtualize > Custom Development > Virtualize Java Project, then click Next.
  3. Complete this wizard, which has the same options as Eclipse’s Java Project wizard.
  4. Click Finish.

Your new Java project will be shown in the Package Explorer view in the Eclipse Java development perspective. The project's build path will automatically have the jar files needed in order to use Virtualize 's Extensibility API. Any Java classes added to your project can be accessed by Extension tools in your Virtualize Responder suite.

Using an Existing Java Project

To use an existing Java project from your workspace, you must first add that Java project to Virtualize 's classpath as follows:

  1. Go to Parasoft > Preferences.
  2. Choose Parasoft > System Properties.
  3. Click Add Java Project and choose the appropriate project.

The selected Java Project's build output folder and build path entries will be added to the classpath table.

If the Automatically reload classes option is enabled, then Virtualize will attempt to reload classes from your Eclipse project after being modified or recompiled. The Reload button can also be used to force Virtualize to reload classes from the classpath entries. 

  • No labels