Ejemplo n.º 1
0
    def join_dm_data(self, file_path):
        from main.automation.model.utils.FileUtils import FileUtils

        if file_path is not None and not os.path.isabs(file_path):
            file_path = AutomationConstants.RESOURCES_FOLDER + file_path
        __data_object: DataObject = DataObject(FileUtils.file_to_dm_data(file_path))

        return __data_object
Ejemplo n.º 2
0
    def add_suite_data_file(self, file_path: str, data_key: str):
        if file_path is not None and not os.path.isabs(file_path):
            file_path = AutomationConstants.RESOURCES_FOLDER + file_path

        data_object: DataObject = DataObject(FileUtils.file_to_dm_data(file_path))
        self.add_suite_data(data_object, data_key)