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


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

The following code:

Is producing the following error:

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

Many thanks,

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!