Saving class objects in robot framework
问题 I am new to Robot Framework. I am writing my own library to work with Robot and I want to save the class object. I want the object to be created and saved once at the suite setup and keep using that same object for the entire test suite. Is there a way to do that? Aristalibrary.py import pyeapi active_conn = None class AristaLibrary: def __init__(self, proto="https", hostname='localhost', username="admin", passwd="admin", port="443"): self.hostname = hostname self.proto = proto self.port =