Hello all,
I’m completely new to Robot Framework but I’m trying to implement it inside an application that I’m developing.
Basically, I have a GUI application written in Python that communicates via CAN protocol with a system. The user can perform various operations by clicking on the buttons.
Now I would like to allow the user to automatize the operations by writing some code. As for now, the user writes a Python file respecting a basic structure and imports it into the App, which invokes the functions written by the user passing them an object on which the function can operate.
My colleagues told me about the existence of Robot Frameworks and I’m interested in replacing the Python code with RF Tasks. I was able to open a .robot example file and run it via a Python script but the imported Library doesn’t refer to an existing object previously created: any time I run RF, a new instance is created, and at best I can pass strings to them as parameters.
I could implement a CustomLibrary that can communicate via some external protocol with my App to convert Keywords into actual methods invocations. I’ve also read something about Remote Libraries but both solutions don’t feel like the right and fastest approach that in theory should be possible.
How can I run a RF Task from a Python script where all unknown Keywords are searched within an Instance that I’ve provided?
Thanks in advance for your help!