search cancel

DevTest Kafka step configuration for a kafka serializer.

book

Article ID: 229334

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

How to configure a Kafka serializer in the DevTest Kafka send and receive step. 
For example an Avro serializer.

Environment

Release : 10.6

Component : DevTest Workstation

Resolution

To configure a Serializer in the Kafka step and in the associated assets, the following has to be configured in the local.properties file:
lisa.experimental=true

Follow the instructions in the documentation for setting up the following Kafka Assets:
Kafka Connection
Kafka Topic
Kafka Consumer and Producer
See:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/reference/test-step-descriptions/apache-kafka-steps/kafka-advanced-use-cases.html

Follow the instructions in the documentation for serializers:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/reference/test-step-descriptions/apache-kafka-steps/kafka-advanced-use-cases.html#concept.dita_a1bfdcf366a8197e41d8182289a588aea91cca6d_Serializer

After that you can use a property to store the message payload as per this screenshot:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=Qf+6pFIXvQlWizaPBd1w2g==

To configure the producer (and consumer) with an Avro serializer use the custom setting:

And configure any properties required by the serializer by selecting "Configuration: Open Editor..." : 

Attachments