Porting scenario from 1.5.x to 2.0 - problem with .protocols( httpConf )

I have a test scenario that runs perfectly under 1.5.6. I am porting it to 2.0. (2.0.0-M3a) I’m almost done, I just have one more challenge (that I know of), and I would appreciate some help with it…

I have a configuration object, e.g.:

object Config { ... val httpConf = http .baseURL(TEST_INSTANCE) .acceptCharsetHeader("ISO-8859-1,utf-8;q=0.7,*;q=0.7") .acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") .acceptEncodingHeader("gzip, deflate") .acceptLanguageHeader("fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3") .disableFollowRedirect ... }

Then I start my scenario like so:

`
setUp( sequence.inject( ramp( Config.numUsers users ) over ( Config.rampTime ) ) )
.protocols( **Config.**httpConf )
.pauses( if ( Config.pause ) exponentialPauses else disablePauses )

`

When I try to run it, I get the following compile error:

10:59:46.371 [ERROR] i.g.a.ZincCompiler$ - /[...]/LoadTest.scala:56: type mismatch; found : io.gatling.http.config.HttpProtocolBuilder required: io.gatling.core.config.Protocol 10:59:46.374 [ERROR] i.g.a.ZincCompiler$ - .protocols( Config.httpConf )

It seems to me I must be doing my configuration definition wrong. So, what is the right way of doing this in 2.0?

I tested with current snapshot and it compiles just fine.

Thank you. Yes, now it compiles. I’ll let you know if I get stuck on anything else.