jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 63059] New: Create a new JSONExporter that would export as JSON the content of Statistic table
Date Sun, 06 Jan 2019 22:40:07 GMT
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: issues@jmeter.apache.org
          Reporter: p.mouawad@ubik-ingenierie.com
  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.
Mime
View raw message