Gatling version: 3.12.0 (must be up to date)
Gatling flavor: java kotlin scala javascript typescript
Gatling build tool: maven gradle sbt bundle npm
I read the guidelines and how to ask a question topics.
I provided a SSCCE (or at least, all information to help the community understand my topic)
I copied output I observe, and explain what I think should be.
Hello Gatling Community,
I’m facing an issue where I need to mock (not actually perform) a specific request within a transaction, while still including its time in the total transaction duration calculation.
A real-world example would be a third-party request that incurs a cost, but where I already know the range of its response times.
In JMeter, we have something like the Dummy Sampler, which allows for this kind of functionality.
Is there a simple way to achieve this in Gatling?
I created a workaround that works for me (see the example here),
but I don’t really want to reinvent the wheel if Gatling already has this feature.
So maybe I missed something?
From my perspective, it looks like all I need is statsEngine.logResponse()
.
Thanks!