def get_suite_data(): file_list = SharedDataActions.get_test_suite_directory_files() complete_suite_list = [] for url_path in file_list: string_data = FileService.get_object_from_path(url_path) suite_shell = FileService.convert_string_to_suite_file_content(string_data) suite_data_array = FileService.get_suite_data_array_from_shell(suite_shell) for suite_object in suite_data_array: complete_suite_list.append(suite_object) return complete_suite_list
def TEST_suite_data(self): url_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Google_Test_Search.json" string_data = FileService.get_object_from_path(url_path) #Log.log(string_data) suite_shell = FileService.convert_string_to_suite_file_content(string_data) #Log.log(suite_shell.to_json()) #file_name = suite_shell.fileName #Log.log(file_name) suite_data_array = FileService.get_suite_data_array_from_shell(suite_shell) my_test_data = suite_data_array[0] my_suite_name = my_test_data.get_suite_name() print(my_suite_name)
def TEST_suite_data(self): url_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Google_Test_Search.json" string_data = FileService.get_object_from_path(url_path) #Log.log(string_data) suite_shell = FileService.convert_string_to_suite_file_content( string_data) #Log.log(suite_shell.to_json()) #file_name = suite_shell.fileName #Log.log(file_name) suite_data_array = FileService.get_suite_data_array_from_shell( suite_shell) my_test_data = suite_data_array[0] my_suite_name = my_test_data.get_suite_name() print(my_suite_name)
def get_suite_shell_from_group_and_file(group_name, file_name): complete_path = FileService.build_path_for_single_suite(group_name, file_name) string_data = FileService.get_object_from_path(complete_path) return FileService.convert_string_to_suite_file_content(string_data)