def TEST_write_to_new_file(self):
     my_file = FileService.create_file_at_location("Resources", "tomato")
     url_path = "Resources/test.json"
     string_data = FileService.get_object_from_path(url_path)
     new_data = FileService.convert_string_to_data_class_action(string_data)
     new_shell = DataClassShell(new_data)
     FileService.write_to_file(my_file, new_shell.to_json())
 def TEST_write_to_new_file(self):
     my_file = FileService.create_file_at_location("Resources", "tomato")
     url_path = "Resources/test.json"
     string_data = FileService.get_object_from_path(url_path)
     new_data = FileService.convert_string_to_data_class_action(string_data)
     new_shell = DataClassShell(new_data)
     FileService.write_to_file(my_file, new_shell.to_json())
 def TEST_codex_object(self):
     url_path = "Resources/WebData/Codex/GoogleCodex.json"
     string_data = FileService.get_object_from_path(url_path)
     Log.log(string_data)
     new_codex = FileService.convert_string_to_web_codex_action(string_data)
     new_name = new_codex.get_file_name()
     Log.log(new_name)
     Log.log(new_codex.to_json())
 def TEST_codex_object(self):
     url_path = "Resources/WebData/Codex/GoogleCodex.json"
     string_data = FileService.get_object_from_path(url_path)
     Log.log(string_data)
     new_codex = FileService.convert_string_to_web_codex_action(string_data)
     new_name = new_codex.get_file_name()
     Log.log(new_name)
     Log.log(new_codex.to_json())
Example #5
0
 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
Example #6
0
 def get_codex_data():
     complete_file_list = SharedDataActions.get_codex_directory_files()
     complete_dictionary = {}
     for my_file in complete_file_list:
         string_data = FileService.get_object_from_path(my_file)
         new_codex = FileService.convert_string_to_web_codex_action(string_data)
         new_map = new_codex.get_codex_map()
         list_dictionary = TextActions.convert_string_to_dictionary(new_map)
         #Log.log(list_dictionary)
         complete_dictionary.update(list_dictionary)
     #TextActions.print_dictionary(complete_dictionary)
     return complete_dictionary
 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)
Example #9
0
 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)
 def TEST_read_file_as_string(self):
     url_path = "Resources/test.json"
     string_data = FileService.get_object_from_path(url_path)
     new_data = FileService.convert_string_to_data_class_action(string_data)
     new_name = new_data.get_name()
     Log.log(new_name)
 def TEST_read_file_as_string(self):
     url_path = "Resources/test.json"
     string_data = FileService.get_object_from_path(url_path)
     new_data = FileService.convert_string_to_data_class_action(string_data)
     new_name = new_data.get_name()
     Log.log(new_name)