allure-framework / allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
https://allurereport.org/
Apache License 2.0
4.11k stars 703 forks source link

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

Open kamal2222ahmed opened 3 years ago

kamal2222ahmed commented 3 years ago

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

YuriiChukhrai commented 3 years ago

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 commented 3 years ago

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 ?

baev commented 3 years ago

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.