Hi, this question is in regards to robot framework and how it handles multiple instances of the same library for an external library. I did not write the library, so I’m wondering if someone can have a look and help me determine if it’s an issue with the external library implementation.
The robotframework-kafkalibrary can be found here: https://github.com/s4int/robotframework-KafkaLibrary . As you can see it has not been maintained, and the issue can very well be stemming from poor implementation of the library itself.
My use case is having multiple instances of Kafka, because I am attempting to automate the flow of data from one kafka queue, to another kafka queue further downstream in the pipeline. I am attempting to use the
WITH NAME syntax like
Library KafkaLibrary WITH NAME Kafka1
Library KafkaLibrary WITH NAME Kafka2
However, it looks like calling the connect_to_kafka keyword from second instance overrides the instance created from the first instance. If I start different connections for each name and then I attempt to list all the topics in each connection, the results are identical. Should I attempt to create my own custom lib for kafka or am I doing something obviously wrong. One thing to note is that the ROBOT_LIBRARY_SCOPE is global for this library, but I feel like multiple instances should still be possible