...
- Add the com.parasoft.api.jar file located in the
<INSTALL-DIR>/plugins/com.parasoft.ptest.libs.web_<VERSION>/root/
directory to your Java project classpath. You can also create a new Java project that already has the .jar file added to its classpath:- Go to File > New > Project.
Choose SOAtest or Virtualize > Custom Development > SOAtest or Virtualize Java Project
Info icon false title Building with Maven? If you’re building your Java project with Apache Maven, you can add the following to your project's pom.xml:
Code Block <project> ... <dependencies> <dependency> <groupId>com.parasoft.soavirt</groupId> <artifactId>com.parasoft.api</artifactId> <version>9.9.0</version> <!-- should match product version --> <scope>provided</scope> </dependency> </dependencies> ... <repositories> <repository> <id>ParasoftMavenPublic</id> <name>Parasoft Public Repository</name> <url>http://build.parasoft.com/maven/</url> </repository> </repositories> ... </project>
- Implement the appropriate interfaces. See the following sections for details on implementing the appropriate interfaces:
- Tools in SOAtestInterfaces to Implement for Custom
- in Virtualize
- in Virtualize
- in Virtualize
Create a
parasoft-extension.xml
file in the default package of your Java project and configure it as appropriate for the item (or items) you’re adding.
- One parasoft-extension.xml file is expected for each Java project.
If you want to add multiple extensions at once, you create one parasoft-extension.xml file that covers all of the extensions you’re adding and you use the top-level
<extensions>
element; see Adding Multiple Extensions at Once for details. Parasoft looks for parasoft-extension.xml files in its classpath under the default package, so each of your parasoft-extension.xml files need to be included on the classpath by putting the directories each live in (or the jar files each are contained in) on the classpath in the System Properties preferences.For details on how to configure this file for a specific type of extension in Virtualize, see:
Defining parasoft-extension.xml for a Custom Message FormatTransport
Defining parasoft-extension.xml for a Custom ListenerMessage Format
Defining parasoft-extension.xml for a Custom Tool
For details on how to configure this file for a specific type of extension in Virtualize, see:
Defining parasoft-extension.xml for a Custom Transport
Defining parasoft-extension.xml for a Custom Message FormatDefining parasoft-extension.xml for a Custom Tool
- Build your Java project and add it to your system properties classpath area, either as a jar file, a Java project within your SOAtest or Virtualize workspace, or a class folder.
Restart SOAtest/Virtualize and verify that the extension appears in the appropriate area.
For details, see the following Virtualize sections for details:
Verifying the New ListenerTransport
Verifying the New Message Format
For details, see the following Virtualize sections for details:
...
Custom extensions can depend on Java libraries other than com.parasoft.api.jar. For details in SOAtest, see Configuring External Dependencies_soa. For details in Virtualize, see more information, see Configuring External Dependencies.
You can externalize any string displayed in the GUI to support different languages. For details in SOAtest, see Localizing GUI Text soa. For details in Virtualize, see more information, see Localizing GUI Text.
If you are using an existing extension and later create a new version of that extension that has a different set of GUI options, you can use a version updater to update your saved .tst (SOAtest) or or .pva, .pvn (Virtualize) files to to adapt them to the new set of options. For details on updating SOAtest artifacts, see Updating GUI Fields for a New Version.For details on updating Virtualize artifacts. For more information, see Updating GUI Fields for a New Version virt.