Gatling 3.0 - Session TypeMismatch - Can no longer persist into session

Hello,

This code was working before. The only thing that’s changed is Gatling from 2.3.x to 3.0

The following code:
https://gist.github.com/dragoonis/813d5b9ee507e336e0e3a92afcdd7bad#file-simulation-scala-L36-L41

Is producing the following error:
https://gist.github.com/dragoonis/8e95fb43312b221853026021fa292b4f

Can someone advise what’s going wrong? I can’t persist things in my session anymore :frowning:

Many thanks,
Paul

I highly doubt util.Random.shuffle(session(“siriusAssignedDocuments”)) ever worked as expected, even in Gatling 2.

session(“FOO”) has always returned a SessionAttribute instance, not the stored values.
Please check Session API and use something like session(“FOO”).as[ExpectedType]

Solved this. Thanks!