From e6443e869c590b7f258cb30bd7cb9ba08a549ed3 Mon Sep 17 00:00:00 2001 From: Julia <51991513+js-xc@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:12:40 +0100 Subject: [PATCH 1/7] #383: Ability to log custom data to a file and have that file accessible in the report --- config/reportgenerator.properties | 1 + .../xsl/loadreport/sections/custom-values.xsl | 44 ++++ config/xsl/loadreport/sections/navigation.xsl | 7 +- config/xsl/loadreport/text/descriptions.xsl | 12 + .../xceptance/xlt/api/engine/DataLogger.java | 29 +++ .../xceptance/xlt/api/engine/DataManager.java | 7 + .../com/xceptance/xlt/api/engine/Session.java | 14 ++ .../xceptance/xlt/common/XltConstants.java | 5 + .../xceptance/xlt/engine/DataLoggerImpl.java | 212 ++++++++++++++++ .../xceptance/xlt/engine/DataManagerImpl.java | 16 ++ .../xlt/report/providers/CustomLogReport.java | 40 +++ .../report/providers/CustomLogsReport.java | 32 +++ .../providers/CustomLogsReportProvider.java | 233 ++++++++++++++++++ 13 files changed, 651 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/xceptance/xlt/api/engine/DataLogger.java create mode 100644 src/main/java/com/xceptance/xlt/engine/DataLoggerImpl.java create mode 100644 src/main/java/com/xceptance/xlt/report/providers/CustomLogReport.java create mode 100644 src/main/java/com/xceptance/xlt/report/providers/CustomLogsReport.java create mode 100644 src/main/java/com/xceptance/xlt/report/providers/CustomLogsReportProvider.java diff --git a/config/reportgenerator.properties b/config/reportgenerator.properties index d642621db..ad41a7121 100644 --- a/config/reportgenerator.properties +++ b/config/reportgenerator.properties @@ -440,6 +440,7 @@ com.xceptance.xlt.reportgenerator.providers.16 = com.xceptance.xlt.report.provid com.xceptance.xlt.reportgenerator.providers.17 = com.xceptance.xlt.report.providers.PageLoadTimingsReportProvider com.xceptance.xlt.reportgenerator.providers.18 = com.xceptance.xlt.report.providers.RequestMethodsReportProvider com.xceptance.xlt.reportgenerator.providers.19 = com.xceptance.xlt.report.providers.WebVitalsReportProvider +com.xceptance.xlt.reportgenerator.providers.20 = com.xceptance.xlt.report.providers.CustomLogsReportProvider ############################################################################### # diff --git a/config/xsl/loadreport/sections/custom-values.xsl b/config/xsl/loadreport/sections/custom-values.xsl index e0fac30c1..d2edb3624 100644 --- a/config/xsl/loadreport/sections/custom-values.xsl +++ b/config/xsl/loadreport/sections/custom-values.xsl @@ -204,6 +204,50 @@ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ScopeSize
+ + + + + + + + +
No data available
+
+
+ diff --git a/config/xsl/loadreport/sections/navigation.xsl b/config/xsl/loadreport/sections/navigation.xsl index 37a9f7379..7b613aa64 100644 --- a/config/xsl/loadreport/sections/navigation.xsl +++ b/config/xsl/loadreport/sections/navigation.xsl @@ -32,7 +32,12 @@
  • Page Load Timings
  • Web Vitals
  • Custom Timers
  • -
  • Custom Values
  • +
  • Custom Data + +
  • External Data
  • Errors