Set attribute to a session throw an exception

Hello,

I am actually trying to create some scenario with Gatling 2M3. I want to set some session values and use the wiki page on github (https://github.com/excilys/gatling/wiki/Session#wiki-functions) and when I run my script, this exception is thrown:

AnswerSimulation.scala:28: value setAttribute is not a member of io.gatling.core.session.Session

My import look like this:

import io.gatling.core.Predef._
import io.gatling.core.session.Expression
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.http.Headers.Names._
import io.gatling.http.Headers.Values._
import scala.concurrent.duration._
import bootstrap._
import assertions._

So I don’t understand why I can’t run my scenario.

Let me know if more informations are required to solve my problem.

Thanks in advance.

The wiki documentation is for Gatling 1.5.2

Gatling 2 is still a work in progress and especially the documentation. It’s gonna be one of our main focus in M4.
Anyway, the correct information for you is here : https://github.com/excilys/gatling/wiki/Gatling-2#wiki-session

cheers
Nicolas

https://github.com/excilys/gatling/wiki/Gatling-2#wiki-session

This is for M2 or M3?

We update the wiki after each milestone release, so M3 now.

cheers,
Nicolas