from robottelo.ui.session import Session session = Session('localhost', 8270) session.open()
session.close()
bot_file = '/path/to/mybot.robot' result = session.run_tests([bot_file]) print(result['status'])
session.set_variable('${MY_VAR}', 'my value')This will set a variable named `MY_VAR` in the Robot Framework instance connected to the session with the value `my value`. The variable can then be accessed in test cases or other parts of the framework. Overall, the `robottelo.ui.session` Session module provides a convenient way for managing multiple connections to Robot Framework instances and performing various actions (such as running tests or setting variables) across those instances.