allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

JMeter ( jtl or csv result log ) Integration with Allure to display on-going JMeter Results

Open kamal2222ahmed opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. Since JMeter does not have a built-in mechanism to:

  1. Display modern looking and meaningful Analytics
  2. There is no way to convert a JTL file to Allure

Describe the solution you'd like Integration of JMeter *.jtl result files with Allure framework, to display the following reports ( to start with )

$cmd --generate-csv results/$1_aggregate-report.csv --plugin-type AggregateReport $png results/$1_bytes-throughput-over-time.png --plugin-type BytesThroughputOverTime $png results/$1_hits-per-second.png --plugin-type HitsPerSecond $png results/$1_latencies-over-time.png --plugin-type LatenciesOverTime $png results/$1_response-times-distribution.png --plugin-type ResponseTimesDistribution $png results/$1_response-times-percentiles.png --plugin-type ResponseTimesPercentiles $png results/$1_throughput-vs-threads.png --plugin-type ThroughputVsThreads $png results/$1_response-codes-per-second.png --plugin-type ResponseCodesPerSecond $png results/$1_transactions-per-second.png --plugin-type TransactionsPerSecond

Describe alternatives you've considered The Result Metrics should have time stamps associated with them, so as to make it possible to display a year or multiple years of data in a graph

Additional context None, Yet

kamal2222ahmed avatar Dec 28 '20 17:12 kamal2222ahmed

JMeter has the ability to save his results in XML: GitHub gist

If dev can provide guide/reference to Allure API (generate Allure results without JUnit/TestNG listeners) it will be easy to implement a small converter and JMeter plugin.

What do you think @baev / @eroshenkoam ?

YuriiChukhrai avatar Mar 17 '21 07:03 YuriiChukhrai

JMeter has the ability to save his results in XML: GitHub gist

If dev can provide guide/reference to Allure API (generate Allure results without JUnit/TestNG listeners) it will be easy to implement a small converter and JMeter plugin.

What do you think @baev / @eroshenkoam ?

anjie0818 avatar May 19 '21 05:05 anjie0818

you can integrate Allure without additional converter, by implementing Allure Reader interface. You can use JunitXmlPlugin as the reference.

In general, all you need is to parse XML and fill io.qameta.allure.entity.TestResult POJO.

baev avatar May 19 '21 11:05 baev