Type mismatch (Session -> Validation[Session])

207 views
Skip to first unread message

Shawn Clark

unread,
Nov 17, 2014, 5:53:00 PM11/17/14
to gat...@googlegroups.com
   exec(session => {
     queue.addAll(session("eventIds").as[Collection[Long]])

     session
   })

Trying to setup the above based on examples I have read but getting a type mismatch. Not sure how to correct it. Anyone able to offer guidance?

[ERROR] CombinedReadWrite.scala:56: error: type mismatch;
[ERROR]  found   : io.gatling.core.session.Session
[ERROR]  required: io.gatling.core.validation.Validation[io.gatling.core.session.Session]
[ERROR]       session
[ERROR]       ^
[ERROR] one error found

Thanks

Stéphane Landelle

unread,
Nov 18, 2014, 3:38:30 AM11/18/14
to gat...@googlegroups.com
You probably miss the standard import:

import io.gatling.core.Predef._


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shawn Clark

unread,
Nov 18, 2014, 12:52:50 PM11/18/14
to gat...@googlegroups.com
Perfect thanks. Problem with Eclipse was it had one import statement per import. There is an option to always wildcard import specific packages so added io.gatling.core.Predef and io.gatling.http.Predef to the list and it works like a charm.
Reply all
Reply to author
Forward
0 new messages