Adding a Kafka API to the Project

To start testing Kafka in ReadyAPI, you should first add a Kafka API to the project. You can import an AsyncAPI definition or create an API manually.

Import API definition

  1. Click flyout-ellipsis.pngnext to the APIs node and select Import API Definition:

    API testing: Add APIs flyout menu

    — or —

    Right-click the APIs section in the Navigator and select Import API Definition.

    API testing: Add APIs menu item
  2. Enter the path to the definition in the My Computer tab if the definition is stored on your computer or enter its URL in the URL tab if it is stored online. ReadyAPI will determine the type of the definition automatically, so just click Import API.

    Kafka testing in ReadyAPI: Importing definition
  3. Add the API Connection test step to a test case:

    Kafka testing in ReadyAPI: Adding the API Connection test step

    To learn more, see API Connection Test Step.

Create API definition

  1. Add a Kafka API to the project:

    Kafka testing in ReadyAPI: Creating Kafka API

    To learn more, see Adding More APIs to Existing Projects.

  2. Specify the service’s endpoints and authorization, if needed:

    Kafka testing in ReadyAPI: Specifying endpoint

    To learn more, see Managing Kafka APIs.

  3. Populate the API with the needed topics:

    Kafka testing in ReadyAPI: Adding Kafka topics
  4. Add the API Connection test step to a test case:

    Kafka testing in ReadyAPI: Adding the API Connection test step

    To learn more, see API Connection Test Step.

Next Steps

go.gifSimulating Producers

go.gifSimulating Consumer

go.gifAPI Connection Test Step

See Also

Publication date: