Search code examples
pythonjenkinsjmeterlocust

Integrating LocustIO results in Jenkins' performance plugin


I am using Locust to fire a large number of queries to an api. The results of this process are saved as the normal csv files. Since I am running Locust through command line, I have rewritten the response writer and used it directly in my test code.

The only problem I am facing currently is how do I plug this csv with the performance plugin of jenkins so that I have a graph that shows me a graphical result. I have been looking around but it seems jmeter and junit are the only two options that I have. Anyone who has been through this ordeal off lately?


Solution

  • The Jenkins performance plugin, as you've noted, is geared towards JMeter and JUnit. It has built in capabilities for JMeter's .jtl files, which are internally XML, and JUnit's .xml files. As far as I can tell there is no capability for .csv files.

    You have a couple of options:

    1. You can further modify your response writer to write out XML files that the performance plugin can directly consume

    2. If plot are really all you care about there is the Jenkins Plot plugin that can consume CSV files and draw pretty graphs. Note though that the performance plugin has other features such as response time tracking across builds, which the simpler plot plugin wont do.