Errors on upgrading to 2.1.2

I went from 2.0 to 2.1, and now I’m getting a bunch of errors. I don’t see anything about them in the migration docs online, so here are my errors. Hopefully they are minor. But if the guts were changed radically between 2.0 and 2.1, I may need to pick your brains about how to refactor my code for 2.1.

07:36:03.300 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/RestfulService.scala:5: object HttpRequestWithParamsBuilder is not a member of package io.gatling.http.request.builder 07:36:03.303 [ERROR] i.g.c.ZincCompiler$ - import io.gatling.http.request.builder.{ HttpRequestBuilder, HttpRequestWithParamsBuilder } 07:36:03.303 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.304 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/RestfulService.scala:7: object AbstractHttpRequestBuilder is not a member of package io.gatling.http.request.builder 07:36:03.305 [ERROR] i.g.c.ZincCompiler$ - import io.gatling.http.request.builder.AbstractHttpRequestBuilder 07:36:03.305 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.533 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:4: object slf4j is not a member of package com.typesafe.scalalogging 07:36:03.533 [ERROR] i.g.c.ZincCompiler$ - import com.typesafe.scalalogging.slf4j.StrictLogging 07:36:03.533 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.571 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:57: value extractAll is not a member of object io.gatling.core.check.extractor.jsonpath.JsonPathExtractor 07:36:03.571 [ERROR] i.g.c.ZincCompiler$ - JsonPathExtractor.extractAll[String]( Boon.parse( json ), path ) match { 07:36:03.571 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.583 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:58: value toVector is not a member of Any 07:36:03.583 [ERROR] i.g.c.ZincCompiler$ - case Success(x) => x.toVector 07:36:03.584 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.731 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:149: not found: type StrictLogging 07:36:03.731 [ERROR] i.g.c.ZincCompiler$ - class debugLogger extends _DEBUG with StrictLogging { 07:36:03.731 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.740 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:152: not found: value logger 07:36:03.740 [ERROR] i.g.c.ZincCompiler$ - logger.debug( x.toString ) 07:36:03.740 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.748 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:157: not found: value logger 07:36:03.748 [ERROR] i.g.c.ZincCompiler$ - value(session).map( v => logger.debug( v.toString ) ) 07:36:03.748 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.754 [ERROR] i.g.c.ZincCompiler$ - /src/poc/cdep/src/scala/com/cigna/common/SessionManagement.scala:162: not found: value logger 07:36:03.754 [ERROR] i.g.c.ZincCompiler$ - logger.debug( session(name).as[String] ) 07:36:03.754 [ERROR] i.g.c.ZincCompiler$ - ^ 07:36:03.874 [ERROR] i.g.c.ZincCompiler$ - 9 errors found

We only guarantee DSL compatibility between versions, minus what we document in migration guides.
The rest of our code is considered internal and subject to changes. But of course we can help.

  • HttpRequestWithParamsBuilder was dropped because all request methods now have access to form params, not only POST
  • AbstractHttpRequestBuilder same reason as above. So now, you only have HttpRequestBuilder (which BTW should GREATLY simplify your code IIRC)
  • StrictLogging (scalalogging third party) changed package
  • JsonPathExtractor.extractAll is no longer an object method, but an instance one (which makes sense). No sure what you’re doing with it, but you should probably be creating a MultipleJsonPathExtractor instance

Thanks. Right now, we are in the middle of a development cycle. When we finish this and get the testing done, I will branch and start the upgrade process.

In the mean time, most of the issues during the upgrade were from my module built to extend the DSL. Maybe we can roll some of those features upstream? In case that interests you, I’ve attached my code.

SessionManagement.scala (7.15 KB)

SessionVariable.scala (188 Bytes)