...
Table of Contents | ||
---|---|---|
|
Introduction
This extension provides support for COBOL copybook—enabling you to use Parasoft solutions to configure, send, validate, and virtualize copybook messages. The artifact you download from the Parasoft Marketplace is a builder executable. Run the executable to generate a JAR file that will be installed into SOAtest and/or Virtualize. The builder jar file that you downloaded is not the copybook jar that you will install into Virtualize/ SOAtest. The builder can be used to produce any number of copybook jar files. You can install multiple copybook jar files into Virtualize/SOAtest.
When the builder executes, it produces a consumable jar file that includes:Parasoft Copybook Builder provides a way for Parasoft SOAtest and Virtualize users to generate SOAtest messages and Virtualize responders based on COBOL copybooks. The output of the tool is a single jar file that can be imported into Parasoft products. The jar file contains:
- An XML schema of each copybook.
- Java classes to manipulate copybook data.
- XML files to integrate copybooks as message types in Parasoft SOAtest and Virtualize.
After generating and installing the copybook JAR, you will be able to create Copybook Responders (for Virtualize) and Copybook Clients (for SOAtest)—both of which allow you to work with copybook messages in Parasoft's standard graphical message trees, as well as in "literal" (plain text) mode.
This tool supports syntactically correct copybooks and includes:
...
The tool does not support OCCURS DEPENDING ON statements or COPY REPLACING statements.
Requirements
- Java 6 or 7 (not Java 8)
- An appropriate JDK
- Parasoft Virtualize or Parasoft SOAtest 9.9.4 or higher 1.5 or higher installed.Parasoft SOAtest and/or Virtualize installed.
Preparing Copybook Files
The Copybook tool searches for copybook files in a list of directories provided at runtime. Within each directory, the tool searches a list of filenames and wildcards for copybook files to process.
...
Table of Content Zone | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||
Executing Generating theCommandCopybook JARRun the com.parasoft.soavirt.messages.copybook-<version>.jar file using the following command to build read the copybook files and generate the JAR file that you will integrate into the UI:
The command uses the following arguments:
Example
The example searches the following folders:
Any file that matches the wildcards *.cbl or *.cpy wil be processed as a copybook.Copybook Builder doesn’t recurse sub-directories. Specify subdirectories as a separate entries in the copybookinput option. Also use quotation marks if the directories contain spaces or special characters. When the Copybook tool finishes, there will be two files created in the directory: copybook.jar and velocity.log. Assuming there are no errors, velocity.log can be deleted. Integrate the copybook.jar file as described in Integrating the Copybook Tool into the UIExtension. Integrating the CopybookTool into the UIExtensionThe Copybook tool is implemented in the SOAtest and Virtualize UI as a system JAR file, which is output by executing the JAR in Executing Generating the CommandCopybook JAR.
You can also install extensions from the command line by adding the copybook.jar file to the system.properties.classpath property in your localsettings properties file. For example:
You also add the copybook.jar file to the VirtualAssets/system_jars folder (if this does not already exist, create it now). Make the following API call to reload the jar:
Using a Copybook in a ResponderYou can generate Copybook Responders and Copybook Clients from traffic, or you can add them manually. If you are adding them manually, be sure to select the desired copybook from the Message Type drop-down. Once a copybook is selected, the tree will be populated based on that copybook. This example demonstrates how to create a Virtualize responder from a copybook.
|
...