diff --git a/scubagoggles/orchestrator.py b/scubagoggles/orchestrator.py index f0e6fd80..f45fee38 100644 --- a/scubagoggles/orchestrator.py +++ b/scubagoggles/orchestrator.py @@ -9,6 +9,7 @@ import os import platform import shutil +import uuid import webbrowser from datetime import datetime, timezone @@ -273,7 +274,7 @@ def _run_reporter(self): timestamp_utc = datetime.now(timezone.utc) timestamp_zulu = timestamp_utc.strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + 'Z' - + report_uuid = str(uuid.uuid4()) report_metadata = { 'TenantId': None, 'DisplayName': None, @@ -283,7 +284,8 @@ def _run_reporter(self): 'ProductAbbreviationMapping': product_abbreviation_mapping, 'Tool': 'ScubaGoggles', 'ToolVersion': Version.number, - 'TimeStampZulu': timestamp_zulu + 'TimeStampZulu': timestamp_zulu, + 'ReportUUID': report_uuid } total_output.update({'MetaData': report_metadata}) @@ -341,7 +343,9 @@ def _run_reporter(self): 'Details': self._generate_summary(stats[0])}) fragments.append(Reporter.create_html_table(table_data)) - front_page_html = Reporter.build_front_page_html(fragments, tenant_info) + front_page_html = Reporter.build_front_page_html(fragments, + tenant_info, + report_uuid) report_path.write_text(front_page_html, encoding = 'utf-8') # suppress opening the report in the browser diff --git a/scubagoggles/reporter/FrontPageReport/FrontPageReportTemplate.html b/scubagoggles/reporter/FrontPageReport/FrontPageReportTemplate.html index 6667705c..276ff432 100644 --- a/scubagoggles/reporter/FrontPageReport/FrontPageReportTemplate.html +++ b/scubagoggles/reporter/FrontPageReport/FrontPageReportTemplate.html @@ -21,6 +21,7 @@