Adding a custom check

Hi, Im using gatling to test my site, mostly response times and status codes.

Now, Id like to push it a little, and use gatling to check the service’s response.

I have this api call that cannot repeat its answer for at least 10 consecutive calls, and Id like to check that in my gatling simulation too.

I was thinking of adding some extra information to the session variable, and then access it in the “check” for the api call, but I couldnt find a check for the session variable.
Something like this:


What do you think, is this possible?, or maybe, is there a better way?

Thanks, Jc

sorry, Im using Gatling 2