Andre
Andre

Reputation: 1840

Can Jenkins Gatling plugin show the different paths

Is there a way to get the gatling requests in the Gatling Jenkins trend graph? Our build with Jenkins Gatling plugin only shows the trend for the global information in the graph and we want to see the trend per request type as this gives us much more information. Is this possible?

I was looking at the description on their site and it mentions you can configure assertions but to me it wasn't clear if that covers this use case and I'm not finding the assertion files when I run the build with the flag -Dgatling.useOldJenkinsJUnitSupport=true.

To clarify I want the transactions highlighted below in the blue square to appear in the Jenkins graph that shows the trend

Gatling Report enter image description here

Upvotes: 0

Views: 433

Answers (3)

Andre
Andre

Reputation: 1840

I got it working using a workaround. The gatling plugin graph will show a trend per simulation. It is looking for /{simulation-name}/global_stats.json in the /build folder.

I wrote a groovy script to parse the json data from stats.json. The structure in stats.json is the same as in global_stats.json. So simply parse the stats.json and copy the json.contents[scenario].stats to a separate file in the build folder:

stats.json structure:

{
  ...
  "contents": {
    "scenarioName": { 
       stats: {...}  // copy this part
    }
  } 

scenario-report/global_stats.json

Note the dash "-" in the folder name is required as the plugin is searching for this dash to determine the simulation name. It will nullpointer without it.

Upvotes: 0

Stéphane LANDELLE
Stéphane LANDELLE

Reputation: 6608

No, this feature is not available in Gatling OSS Jenkins plugin. It's available in Gatling FrontLine though.

enter image description here

Upvotes: 1

Amerousful
Amerousful

Reputation: 2545

Unfortunately isn't possible. However, Gatling has feature for live monitoring where you can setup all needed metrics for each request. https://gatling.io/docs/current/realtime_monitoring

Upvotes: 1

Related Questions