def genie_testbed(self, testbed): '''Create the genie testbed''' try: # If pyATS, then call their use_testbed api, then convert self.builtin.get_library_instance('ats.robot.pyATSRobot').\ use_testbed(testbed) testbed = self.builtin.get_library_instance('ats.robot.'\ 'pyATSRobot').testbed except RuntimeError: # No pyATS self.testbed = loader.load(testbed) else: # Has pyATS, so converted and then save locally and also for pyATS self.testbed = Genie.init(testbed) self.builtin.get_library_instance('ats.robot.'\ 'pyATSRobot').testbed =\ self.testbed self.testscript.parameters['testbed'] = self.testbed # Load Genie Datafiles (Trigger, Verification and PTS) # This make UUT mandatory. When learning, aka no trigger # the UUT are not mandatory self.loaded_yamls = True self._load_genie_datafile() if not self.trigger_datafile: self.loaded_yamls = False log.warning("Could not load the Datafile correctly")
def genie_testbed(self, testbed): '''Create the genie testbed''' try: # If pyATS, then call their use_testbed api, then convert self.builtin.get_library_instance('ats.robot.pyATSRobot').\ use_testbed(testbed) testbed = self.builtin.get_library_instance('ats.robot.'\ 'pyATSRobot').testbed except RuntimeError: # No pyATS self.testbed = loader.load(testbed) else: # Has pyATS, so converted and then save locally and also for pyATS self.testbed = Genie.init(testbed) self.builtin.get_library_instance('ats.robot.'\ 'pyATSRobot').testbed =\ self.testbed self.testscript.parameters['testbed'] = self.testbed # Load Genie Datafiles (Trigger, Verification and PTS) self._load_genie_datafile()