JMeter to record results on an hourly basis

I have a project JMeterwith several requests and statements GETand POSTfor them. I use listeners Aggregate resultsand View results tree, but none of them can store the results hourly. I tried the bags JMeterPlugins-Standardand JMeterPlugins-Extrasand jp@gc - Graphs Generatorlistener, but they all use aggregated data instead of hourly data. Therefore, I would like to get the number of successful and unsuccessful requests / statements per hour, perhaps a histogram would be most suitable for this purpose.

+4
source share
4 answers

I am going to propose an unconventional solution at the project level: dynamically name your samplers for hours (or date and time) so that the name changes every hour, and therefore they will appear in different categories, i.e.

enter image description here

Code for this name:

${__time(dd:hh,)} the rest of sampler name

Such a sampler will be displayed as follows in the summary report (here I modeled it using minutes / seconds, but the same thing will happen with days / hours, only on a larger scale):

enter image description here

Pros and cons of this approach:

  • Simple, you can aggregate anything by hours, minutes, or any other time fragment during the execution of the test, rather than analysis after execution.

  • Listener independent, can be used with almost any listener or visualizer

  • , . , , - .

  • __time , , , script.

  • , JTL CSV ( , ) , , .

  • Script , . 100 , . ...

+1

, :

/

jmeter.properties , 1 , 3600 :

 summariser.interval=3600 

.

+1

You can try using Jmeter backend Listener. It has integration with graphite and Influxdb. After storing the results in this time series database, you can display the result in the Grafana dashboard. Grafana has its own filtering for showing results on an hourly, monthly, daily basis, etc.

+1
source

Source: https://habr.com/ru/post/1686711/


All Articles