add button for download console logs (#4007)

Co-authored-by: Peter Hedenskog <peter@soulgalore.com>
This commit is contained in:
bairov pavel 2023-11-24 05:49:29 +02:00 committed by GitHub
parent 380524c95f
commit b72a9c6c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -12,3 +12,6 @@ if d.browsertime && d.browsertime.har
if options.browsertime.chrome && options.browsertime.chrome.collectNetLog
- const netlogPath = 'data/chromeNetlog-' + (iteration ? iteration : 1) + '.json.gz'
a.button.button-download(href=netlogPath, download=downloadName + '-netlog.json.gz') Download netlog
if options.browsertime.chrome && options.browsertime.chrome.collectConsoleLog
- const consoleLogPath = 'data/console-' + (iteration ? iteration : 1) + '.json.gz'
a.button.button-download(href=consoleLogPath, download=downloadName + '-consoleLogs.json.gz') Download Console Logs

View File

@ -11,4 +11,7 @@ if d.browsertime && d.browsertime.har
- const harEnding = options.gzipHAR ? '.har.gz' : '.har'
- const harName = 'data/browsertime' + harEnding
- const harDownloadName = downloadName + harEnding
a.button.button-download(href=harName, download=harDownloadName) Download HAR
a.button.button-download(href=harName, download=harDownloadName) Download HAR
if options.browsertime.chrome && options.browsertime.chrome.collectConsoleLog
- const consoleLogPath = 'data/console-' + (runNumber? runNumber : 1) + '.json.gz'
a.button.button-download(href=consoleLogPath, download=downloadName + '-consoleLogs.json.gz') Download Console Logs

View File

@ -67,6 +67,9 @@ block content
if d.browsertime && d.browsertime.har
a(href='#downloads') Download HAR
| &nbsp;|&nbsp;
if options.browsertime.chrome && options.browsertime.chrome.collectConsoleLog
a(href='#downloads') Download Console Logs
| &nbsp;|&nbsp;
a#summary
h2 Summary