Get Average response or general stats in after() method simulation class

Hi

We want to save some results to the database but we don`t know how to get the average response in the after() method simulation class. We tried to read through the documentation but couldn’t find it.

public class SomeSimulation extends Simulation {
    public SomeSimulation() {
       setUp(scenario.injectOpen(atOnceUsers(atOnceUsers))).protocols(protocol);
    }

    @Override
    public void after() {
        **// get stats or average response for specified endpoint**
    }
}

Hi,

That’s not possible. The simulation doesn’t have access to the stats.

Then, if you’re looking for a system to persist your test results, this is something features in Gatling Enterprise.

Regards

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.