In this section:
Introduction
The NDJSON extension enables SOAtest and Virtualize to support the NDJSON message format. The NDJSON (Newline-Delimited JSON) format is for storing or streaming structured data that may be processed one record at a time. Refer to the NDJSON specification website for additional information.
Installing the extension adds the NDJSON Client for SOAtest and the NDJSON Message Responder for Virtualize, as well as enables other messaging tools to leverage the NDJSON format.
Requirements
- SOAtest/Virtualize 9.10.0 and later
Installation
The tool can be installed from the UI or command line.
UI Installation
- Go to Parasoft > Preferences > System Properties
- Click Add JARs and select the com.parasoft.soavirt.messages.ndjson-<VERSION>.jar file.
- Click Apply.
- Restart SOAtest/Virtualize.
Command Line Installation
Add the com.parasoft.soavirt.messages.ndjson-<VERSION>.jar file to the system.properties.classpath
property in your settings properties file. For example:
system.properties.classpath=<path to jar>/com.parasoft.soavirt.messages.ndjson-1.2.0.jar
Once the classpath is modified, all of the required dependencies will be loaded.
Usage
Adding the NDJSON Clients
You can add standalone NDJSON Clients to your suite using the Add Test wizard or chain NDJSON tools as a payload output of an existing tool using the Add Output wizard.
Configuration and Usage
NDJSON Clients function in a similar manner to other messaging clients, but are configured to use the NDJSON format by default. Refer to the Specifying Client Options section in the SOAtest documentation for information on configuring the client.
Adding NDJSON Message Responders
You can add NDJSON Message Responders to your suite using the Add Responder wizard. See Creating Message Responders Manually for details.
Configuration and Usage
NDJSON Message Responders function in a similar manner to other responders. Refer to Message Responder Overview for information on configuring and using responders.