@staticmethod<EOL><INDENT>def load_files(path):<DEDENT>
if isinstance(path, (list, set)):<EOL><INDENT>testsets = []<EOL>for file_path in set(path):<EOL><INDENT>if "<STR_LIT>" in file_path:<EOL><INDENT>continue<EOL><DEDENT>testset = YamlCaseLoader.load_files(file_path)<EOL>if not testset:<EOL><INDENT>continue<EOL><DEDENT>testsets.extend(testset)<EOL><DEDENT>return testsets<EOL><DEDENT>if not os.path.isabs(path):<EOL><INDENT>path = os.path.join(os.getcwd(), path)<EOL><DEDENT>if path in YamlCaseLoader.testcases_cache_mapping:<EOL><INDENT>return YamlCaseLoader.testcases_cache_mapping[path]<EOL><DEDENT>if os.path.isdir(path):<EOL><INDENT>files_list = FileUtils.load_folder_files(path)<EOL>testcases_list = YamlCaseLoader.load_files(files_list)<EOL><DEDENT>elif os.path.isfile(path):<EOL><INDENT>try:<EOL><INDENT>testset = YamlCaseLoader.load_file(path)<EOL>if testset["<STR_LIT>"]:<EOL><INDENT>testcases_list = [testset]<EOL><DEDENT>else:<EOL><INDENT>testcases_list = []<EOL><DEDENT><DEDENT>except p_exception.FileFormatError:<EOL><INDENT>testcases_list = []<EOL><DEDENT><DEDENT>else:<EOL><INDENT>logger.log_error(u"<STR_LIT>".format(path))<EOL>testcases_list = []<EOL><DEDENT>YamlCaseLoader.testcases_cache_mapping[path] = testcases_list<EOL>return testcases_list<EOL>
load yaml testcases from file path
        @param path: path could be in several type
            - absolute/relative file path
            - absolute/relative folder path
            - list/set container with file(s) and/or folder(s)
        @return testcase sets list, each testset is corresponding to a file
            [
                testset_dict_1,
                testset_dict_2
            ]