...
Add
[
install dir]/plugins/com.parasoft.xtest.libs.web_[version]/root/com.parasoft.api.jar
to your Java project classpath. You can also create a new project by going toConditional Content Product: (SOAVirt, SOAtest) Product: (SOAVirt, SOAtest) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01 File> New> SOAtest>Custom Development> SOAtest Java Project
Conditional Content Product: (SOAVirt) Product: (SOAVirt) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 or
Conditional Content Product: (SOAVirt, Virtualize) Product: (SOAVirt, Virtualize) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF File> New>Virtualize> Custom Development> Virtualize Java Project
; this will create a new Java project that already has that .jar file added to the classpath.
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:
Conditional Content Product: (SOAVirt, SOAtest) Product: (SOAVirt, SOAtest) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01 Interfaces to Implement for Custom Transports in SOAtest
Interfaces to Implement for Custom Message Formats in SOAtest
Interfaces to Implement for Custom Tools in SOAtest
Product: (SOAVirt, Virtualize)Conditional Content Product: (SOAVirt, Virtualize) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF Interfaces to Implement for Custom Listeners in Virtualize
Interfaces to Implement for Custom Message Formats in Virtualize
Interfaces to Implement for Custom Tools 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.Conditional Content Product: (SOAVirt, Virtualize) Product: (SOAVirt, Virtualize)sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF 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 Format
Defining parasoft-extension.xml for a Custom Listener
Defining parasoft-extension.xml for a Custom Tool
Conditional Content Product: (SOAVirt, SOAtest) Product: (SOAVirt, SOAtest) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01For details on how to configure this file for a specific type of extension in Virtualize, see:
Defining parasoft-extension.xml for a Custom Transport
- 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.
Product: (SOAVirt, Virtualize)Conditional Content Product: (SOAVirt, Virtualize) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF For details, see the following Virtualize sections for details:
Verifying the New Message Format
Product: (SOAVirt, SOAtest)Conditional Content Product: (SOAVirt, SOAtest) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01 For details, see the following Virtualize sections for details:
Verifying the New Message Format
Anchor | ||||
---|---|---|---|---|
|
...
Custom extensions can depend on Java libraries other than com.parasoft.api.jar.
Conditional Content Product: (SOAVirt, SOAtest) Product: (SOAVirt, SOAtest) Forsv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01 For details in SOAtest, see Configuring External Dependencies.
Conditional Content Product: (SOAVirt, Virtualize) Product: (SOAVirt, Virtualize) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF For details in Virtualize, see Configuring External Dependencies
.
You can externalize any string displayed in the GUI to support different languages.
Conditional Content Product: (SOAVirt, SOAtest) Product: (SOAVirt, SOAtest) Forsv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01 For details in SOAtest, see Localizing GUI Text.
Conditional Content Product: (SOAVirt, Virtualize) Product: (SOAVirt, Virtualize) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF For details in Virtualize, 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 .pva, .pvn (Virtualize) files to adapt them to the new set of options.Conditional Content Product: (SOAVirt, SOAtest) Product: (SOAVirt, SOAtest) Forsv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C886C0AC137B8C01 Product: (SOAVirt, Virtualize) sv-attr:0A010204015A9054C88481D043445E2F 0A010204015CF6008A11EEF43AC91334 0A010204015A9054C88802B9600247DF For details on updating SOAtest artifacts, see Updating GUI Fields for a New Version
Conditional Content Product: (SOAVirt, Virtualize) For details on updating Virtualize artifacts, see Updating GUI Fields for a New Version
.