Reputation: 182
logger.info("Error Response:[" + extraInfo.session("username").asOption[String]
+ "], Code:[" + statusCode + "], Response Body:[" + extraInfo.response.body.string
+ "], Token:[" + extraInfo.session("cspAuthToken").asOption[String]
+ "], Org id:[" + extraInfo.session("defaultOrgId").asOption[String]
+ "], Started At: [" + startedAt + "], Current time:[" + System.nanoTime()
+ "], Total Seconds:[" + totalSecondsPassed + "]")
This was code written in scala version 2.12.3 and later on upgrading scala version to version to 2.13.1 I getting this error as:
Sorry, type inference was unable to figure out the type. You need to provide it explicitly.
logger.info("Error Response:[" + extraInfo.session("username").asOption[String]
Upvotes: 1
Views: 508
Reputation: 2604
Gatling doesn't support scala 2.13 (see https://docs.gatling.io/reference/install/oss/) (as of Gatling 3.3)
Upvotes: 1