Loading doc/generateDocumentationData.py +12 −8 Original line number Diff line number Diff line Loading @@ -17,14 +17,18 @@ def create_json_of_robotfile(robot_file_to_be_processed: str): if not exists(folder_result_path): makedirs(folder_result_path) #try: try: data = GenerateRobotData(robot_file=robot_file, execdir=folder_test_suites) data.parse_robot() info = data.get_info() #except Exception as e: # print("WHILE GENERATING ROBOT DATA:", e) # info = dict() # info["error_while_parsing"] = True except Exception as e: print("WHILE GENERATING ROBOT DATA:", e) info = dict() info["error_while_parsing"] = True info["robotfile"] = robot_file_to_be_processed if(robot_path_to_be_processed.startswith("/")): robot_path_to_be_processed = robot_path_to_be_processed[1:] info["robotpath"] = robot_path_to_be_processed with open(result_file, 'w') as fp: dump(obj=info, indent=2, fp=fp) Loading Loading
doc/generateDocumentationData.py +12 −8 Original line number Diff line number Diff line Loading @@ -17,14 +17,18 @@ def create_json_of_robotfile(robot_file_to_be_processed: str): if not exists(folder_result_path): makedirs(folder_result_path) #try: try: data = GenerateRobotData(robot_file=robot_file, execdir=folder_test_suites) data.parse_robot() info = data.get_info() #except Exception as e: # print("WHILE GENERATING ROBOT DATA:", e) # info = dict() # info["error_while_parsing"] = True except Exception as e: print("WHILE GENERATING ROBOT DATA:", e) info = dict() info["error_while_parsing"] = True info["robotfile"] = robot_file_to_be_processed if(robot_path_to_be_processed.startswith("/")): robot_path_to_be_processed = robot_path_to_be_processed[1:] info["robotpath"] = robot_path_to_be_processed with open(result_file, 'w') as fp: dump(obj=info, indent=2, fp=fp) Loading