Store val in session

Hi,

Strange problem when trying to store value in my session and retrieve it in exec block behind. Here a sample :

exec(

session => {
val toto = “totototototo”
session.set(“cookieval”, toto)
}

)

exec(
session => {
println(session)
session
}
)

when printing my session variable, nothing about my cookieval attribute… Anything missing ?

Every DSL element in Gatling is a builder. Therefore, nothing happens unless everything is chained properly and given to Gatling’s setUp.

You are missing a dot before the second exec.

Cheers!