Hi,
We need to set gatling session status to KO based on some post checks after the simulation. Could you please help in that?
Thanks,
Amit
Hi,
We need to set gatling session status to KO based on some post checks after the simulation. Could you please help in that?
Thanks,
Amit
Hi,
Could anyone please help with the below query? We are using Gatling 3.0.
Thanks,
Amit
Hi, can anyone please reply?
Thanks,
Amit
Hi,
you don’t “set gatling session status to KO”, you can only set KO for a single request you send. This can be done via multiple checks on a single request - the first that fails marks the request as KO.
You can also add assertions to the whole simulation, but to my knowledge, there is no way to write arbitrary checks in assertions, you can only use predefined set of statistics to test against:
https://gatling.io/docs/current/general/assertions/
Cheers,
Adam
Thanks for the response but our requirement is to assert something at the whole simulation level after the simulation has finished with all the requests. Can you please help me in that? Also the assertion we want to do is a generic one like if something is false fail the simulation.
We have tried a lot of things from session API but couldn’t make it work. Any help is much appreciated.
Regards,
Amit