Bug 64305 - Produce a self contained index.html for the whole report
Summary: Produce a self contained index.html for the whole report
Status: NEEDINFO
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.2.1
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-03 20:24 UTC by cen
Modified: 2020-04-25 13:03 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cen 2020-04-03 20:24:56 UTC
Right now the report directory consists of index.html, statistics.json, sbadmin2 and content folder. This is a bit cumbersome to share with other people, you either need to put it on some webserver or make a zip archive to send via email or another medium.

A welcome option would be if jmeter could inline all the assets (js, css and data) into a single index.html page.
Comment 1 Philippe Mouawad 2020-04-03 20:27:28 UTC
Hello(In reply to cen from comment #0)
> Right now the report directory consists of index.html, statistics.json,
> sbadmin2 and content folder. This is a bit cumbersome to share with other
> people, you either need to put it on some webserver or make a zip archive to
> send via email or another medium.
> 
> A welcome option would be if jmeter could inline all the assets (js, css and
> data) into a single index.html page.

Hello,
Did you try using such approach ?

https://github.com/DustinJackson/html-webpack-inline-source-plugin


Would you be ready to contribute a patch ?

Thanks
Comment 2 cen 2020-04-03 21:32:41 UTC
Seems rather straightforward. Report template would be treated like an npm project, pulling in sbadmin, jquery and other external dependencies (probably as a local resource so it doesnt pull megabytes after each clean), plus a plugin like this which you linked, invoking a build after the template generation would produce the final page.

Some additional merging and JS magic would be needed to include the other html pages.

I can't guarantee I can contribute a patch right now but if there is some time hole towards the summer I might aswell. If so, I will comment here.
Comment 3 The ASF infrastructure team 2022-09-24 20:38:19 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5286