def render_report()

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


    def render_report(self, test_case_results: List[Dict[str, Any]]) -> None:
        """
        Renders the HTML report using the provided template and test case results.

        :param test_case_results: A list of test case results.
        :type test_case_results: List[Dict[str, Any]]
        """
        try:
            report_path = os.path.join(
                self.workspace_directory,
                "quality_assurance",
                f"{self.test_group_name}_{self.test_group_invocation_id}.html",
            )
            os.makedirs(os.path.dirname(report_path), exist_ok=True)
            template = jinja2.Template(self.report_template)
            with open(report_path, "w", encoding="utf-8") as report_file:
                report_file.write(
                    template.render(
                        {
                            "test_case_results": test_case_results,
                            "report_generation_time": datetime.now().strftime(
                                "%m/%d/%Y, %I:%M:%S %p"
                            ),
                        }
                    )
                )
            self.result["report_path"] = report_path
            self.result["status"] = TestStatus.SUCCESS.value
        except Exception as ex:
            self.handle_error(ex)