Gatling: exclude preparation request from reports
Asked Answered
B

1

8

Here is my test scenario on Gatling:

val createTemplatesScenario = scenario("Template creation")
  .feed(userFeeder)
  .exec(doLogin) // populates access token in the session
  .exec(doListProviders)
  .exec(doCreateTemplate)
    ...
  .exec(doDeleteTemplate)

And I want to exclude Login request from reports because sometimes it can take too much time on our system and affects all the metrics:

Gatling report

Is there a way to "prepare" test scenario so that only necessary actions will be taken into account?

Birdie answered 7/3, 2017 at 12:38 Comment(0)
F
5

You can use groups of requests.

Add all your requests except Login to a group.

As mentioned in the documentation:

If your scenario contains groups, this panel becomes a tree : each group is a non leaf node, and each request is a descendant leaf of a group. Group timings are by default the cumulated response times of all elements inside the group. Group duration can be displayed instead of group cumulated response time by editing the gatling.conf file.

The Global Information node should still be affected by Login request, but the node for your group of all other requests should contain unaffected aggregate results.

Flutist answered 18/3, 2017 at 20:48 Comment(1)
This is probably the only option. Thank you!Birdie

© 2022 - 2024 — McMap. All rights reserved.