Avro Plugin
The plugin provides the ability to work with Avro files.
Installation
-
Copy the below line to
dependencies
section of the projectbuild.gradle
filePlease make sure to use the same version for all VIVIDUS dependencies. Example 1. build.gradleimplementation(group: 'org.vividus', name: 'vividus-plugin-avro', version: '0.6.8')
-
If the project was imported to the IDE before adding new dependency, re-generate the configuration files for the used IDE and then refresh the project in the used IDE.
Steps
Convert Avro to JSON
Converts the provided resource or file in Avro format to JSON and saves it as a text to a variable
When I convert Avro data from `$resourceNameOrFilePath` to JSON and save result to $scopes variable `$variableName`
-
$resourceNameOrFilePath
- The resource name or the file path. -
$variableName
- The variable name to save resulting JSON.
Example 2. Convert the resource in Avro format to JSON
When I convert Avro data from `/data/event-message.avro` to JSON and save result to scenario variable `avro-data`