diff --git a/doc/analysis/generaterobotdata.py b/doc/analysis/generaterobotdata.py index ff408f6107a59d139797687c83edeb0c75c3ef72..511a9ff8d9dbac8a429672e105e74105b07ed507 100644 --- a/doc/analysis/generaterobotdata.py +++ b/doc/analysis/generaterobotdata.py @@ -9,7 +9,7 @@ from re import match, findall, finditer, sub, MULTILINE class GenerateRobotData: def __init__(self, robot_file: str, execdir: str): - self.robot_file = robot_file + self.robot_file = robot_file.replace('\\', "/") self.execdir = execdir self.suite = TestSuiteBuilder().build(robot_file) @@ -502,8 +502,8 @@ class GenerateRobotData: return aux def generate_name(self): - base_dir = dirname(dirname(dirname(__file__))) - tp_id = str(self.suite.source.parent).replace(f'{base_dir}/', "") + base_dir = dirname(dirname(dirname(__file__))).replace('\\', "/") + tp_id = str(self.suite.source.parent).replace('\\', "/").replace(f'{base_dir}/', "") for key, value in self.identifier.items(): tp_id = tp_id.replace(key, value) diff --git a/doc/generateDocumentationData.py b/doc/generateDocumentationData.py index c3a3d66ed5e0cb492498f600c44f87e0de18cd36..b4451d382c67ff8b98f888dad051071ed9cf0146 100644 --- a/doc/generateDocumentationData.py +++ b/doc/generateDocumentationData.py @@ -7,8 +7,7 @@ from os import makedirs, walk def create_json_of_robotfile(robot_file_to_be_processed: str, computestatistics: bool=False): # TODO: ApiUtils.resource -> 'Delete Context Source Registration Subscription' added 'url=' as parameter - folder_test_suites = dirname(dirname(__file__)) - + folder_test_suites = dirname(dirname(__file__)).replace('\\', "/") folder_result_path = f'{folder_test_suites}/doc/results' result_file = f'{folder_result_path}/{robot_file_to_be_processed}.json' robot_path_to_be_processed, robot_file = find_robot_file(basedir=folder_test_suites,