https://bz.apache.org/bugzilla/show_bug.cgi?id=63059
Bug ID: 63059
Summary: Create a new JSONExporter that would export as JSON
the content of Statistic table
Product: JMeter
Version: 5.0
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.1
I think there is a need to export as JSON the data computed by HTML Report
generator.
For example, in jmeter-maven-plugin, it would be nice to have Failure criterion
rules and I don't want to recompute the same data that are already done by
JMeter.
But I guess there are many other use cases:
- Jenkins plugin that would historize those datas
- Users wanting to render those data differently
...
To do that, we can create a new JSONExtractor that extends
AbstractDataExporter.
It would be configured this way:
# JSON Export
jmeter.reportgenerator.exporter.json.classname=org.apache.jmeter.report.dashboard.JSONExporter
It would generate a file statistic.json with this format:
[ {
"transaction" : "Total",
"sampleCount" : 3749,
"errorCount" : 0,
"errorPct" : 0.0,
"meanResTime" : 229.63,
"minResTime" : 100.0,
"maxResTime" : 360.0,
"pct1ResTime" : 331.0,
"pct2ResTime" : 344.0,
"pct3ResTime" : 354.0,
"throughput" : 31.21,
"receivedKBytesPerSec" : 0.0,
"sentKBytesPerSec" : 0.0
}, {
"transaction" : "JR1",
"sampleCount" : 3749,
"errorCount" : 0,
"errorPct" : 0.0,
"meanResTime" : 229.63,
"minResTime" : 100.0,
"maxResTime" : 360.0,
"pct1ResTime" : 331.0,
"pct2ResTime" : 344.0,
"pct3ResTime" : 354.0,
"throughput" : 31.21,
"receivedKBytesPerSec" : 0.0,
"sentKBytesPerSec" : 0.0
} ]
I have nearly completed implementation, we would require those additional jars:
- jackson-annotations-2.9.8.jar
- jackson-core-2.9.8.jar
- jackson-databind-2.9.8.jar
--
You are receiving this mail because:
You are the assignee for the bug.