def TEST_suite_data_directory(self):
     url_path = "Resources/WebData/SuiteFileGroups"
     directory_info_list = FileService.get_files_in_directory(url_path)
     updated_list = TextActions.append_prefix_to_string_list(url_path, directory_info_list)
     Log.log(updated_list)
     combined_list = FileService.get_joined_files_from_combined_directory_list(updated_list)
     Log.log(combined_list)
 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())
 def TEST_suite_data_directory(self):
     url_path = "Resources/WebData/SuiteFileGroups"
     directory_info_list = FileService.get_files_in_directory(url_path)
     updated_list = TextActions.append_prefix_to_string_list(
         url_path, directory_info_list)
     Log.log(updated_list)
     combined_list = FileService.get_joined_files_from_combined_directory_list(
         updated_list)
     Log.log(combined_list)
Example #7
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
 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_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)
Example #11
0
 def get_codex_directory_files():
     url_path = Constants.CODEX_DIRECTORY
     file_list = FileService.get_files_in_directory(url_path)
     complete_file_list = []
     for my_file in file_list:
         complete_path = url_path + Constants.PATH_SLASH + my_file
         complete_file_list.append(complete_path)
     return complete_file_list
 def TEST_data_converison(self):
     group_name = "RedditSuite"
     file_name = "Reddit_Test_Login.json"
     test_number = 0
     suite_shell = SharedDataActions.get_suite_shell_from_group_and_file(group_name, file_name)
     suite_data_array = FileService.get_suite_data_array_from_shell(suite_shell)
     first_suite = suite_data_array[test_number]
     command_data_class_array = first_suite.convert_to_command_data_class_array()
 def TEST_run_suite_by_name(self):
     #group_name = "GoogleSuite"
     #file_name = "Google_Test_Search.json"
     group_name = "RedditSuite"
     file_name = "Reddit_Test_Login.json"
     test_number = 0
     suite_shell = SharedDataActions.get_suite_shell_from_group_and_file(group_name, file_name)
     suite_data_array = FileService.get_suite_data_array_from_shell(suite_shell)
     first_suite = suite_data_array[test_number]
     my_suite_name = first_suite.get_suite_name()
     print(my_suite_name)
 def TEST_data_converison(self):
     group_name = "RedditSuite"
     file_name = "Reddit_Test_Login.json"
     test_number = 0
     suite_shell = SharedDataActions.get_suite_shell_from_group_and_file(
         group_name, file_name)
     suite_data_array = FileService.get_suite_data_array_from_shell(
         suite_shell)
     first_suite = suite_data_array[test_number]
     command_data_class_array = first_suite.convert_to_command_data_class_array(
     )
 def TEST_run_suite_by_name(self):
     #group_name = "GoogleSuite"
     #file_name = "Google_Test_Search.json"
     group_name = "RedditSuite"
     file_name = "Reddit_Test_Login.json"
     test_number = 0
     suite_shell = SharedDataActions.get_suite_shell_from_group_and_file(
         group_name, file_name)
     suite_data_array = FileService.get_suite_data_array_from_shell(
         suite_shell)
     first_suite = suite_data_array[test_number]
     my_suite_name = first_suite.get_suite_name()
     print(my_suite_name)
Example #16
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_regex_fix(self):
     url_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Small.json"
     my_file = FileService.read_file_at_location(url_path)
     my_array = TextActions.regex_fixer(my_file)
     my_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Updated.json"
     FileService.write_file_at_location(my_path, my_array)
Example #18
0
 def get_test_suite_directory_files():
     url_path = Constants.SUITE_DIRECTORY
     directory_info_list = FileService.get_files_in_directory(url_path)
     updated_list = TextActions.append_prefix_to_string_list(url_path, directory_info_list)
     combined_list = FileService.get_joined_files_from_combined_directory_list(updated_list)
     return combined_list
 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_regex_fix(self):
     url_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Small.json"
     my_file = FileService.read_file_at_location(url_path)
     my_array = TextActions.regex_fixer(my_file)
     my_path = "Resources/WebData/SuiteFileGroups/GoogleSuite/Updated.json"
     FileService.write_file_at_location(my_path, my_array)
 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)