The integer returned by fromMap is the exit code, and there are currently 3 exit codes :
- 0 => everything went well : no incorrect command line arguments, assertions are OK
- 1 => Parsing of command line arguments failed
- 2 => There were some failed assertions
So, basically, you're interested in simulations exiting with exit code 2.
Assertions are stored in the simulation, and are accessible using the assertions method (which returns a Seq[Assertion]).
However, with the current implementation of assertions checking, result is not stored anywhere : an Assertion only store the assertion itself and the message to display.
At the end of the simulation, Gatling checks the assertions against simulations.log's data, prints the result on the standard output and only gets back a boolean telling if all the assertions are OK or not.
To sum up, you can't currently individual results for each assertions, only a global result.