def read_log_file()

in src/modules/render_html_report.py [0:0]


    def read_log_file(self) -> List[Dict[str, Any]]:
        """
        Reads the log file and returns the test case results.

        :return: A list of test case results.
        :rtype: List[Dict[str, Any]]
        """
        log_file_path = os.path.join(
            self.workspace_directory, "logs", f"{self.test_group_invocation_id}.log"
        )
        try:
            with open(log_file_path, "r", encoding="utf-8") as log_file:
                return [json.loads(line) for line in log_file.readlines()]
        except FileNotFoundError as ex:
            self.log(
                logging.ERROR,
                f"Log file {log_file_path} not found.",
            )
            self.handle_error(ex)
            return []