# Cannot implement .extraInfoExtractor in Gatling Script

**URL:** <https://community.gatling.io/t/cannot-implement-extrainfoextractor-in-gatling-script/4887>\
**Category:** Gatling (Open-Source)\
**Created:** [March 28, 2019, 6:38am UTC](https://community.gatling.io/t/cannot-implement-extrainfoextractor-in-gatling-script/4887 "2019-03-28T06:38:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shantanu\_Sen](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Shantanu\_Sen](https://community.gatling.io/u/Shantanu_Sen)\
**Post date:** [March 28, 2019, 6:38am UTC](https://community.gatling.io/t/cannot-implement-extrainfoextractor-in-gatling-script/4887/1 "2019-03-28T06:38:29Z")

</div>

Hello  
I am trying to log extra response information in gatling result through, http.extraInfoExtractor. Below is my code, I am failing to execute the same, also mentioned the error. Please help.

Code :

package cloudnative

import scala.concurrent.duration.\_

import io.gatling.core.Predef.\_  
import io.gatling.http.Predef.\_  
import io.gatling.jdbc.Predef.\_

class cloudnativems extends Simulation {

val nbUsers = Integer.getInteger(“users”, 1)  
val myRamp = java.lang.Long.getLong(“ramp”, 0L)  
val varPipelineId = sys.env.get(“CI\_PIPELINE\_ID”)  
println(varPipelineId)

val httpProtocol = http  
.baseUrl(“[https://lXXXXXXXXXX](https://lXXXXXXXXXX)”)  
.inferHtmlResources()  
.contentTypeHeader(“application/json”)

val scn = scenario(“cloudnativems”)  
.exec(http(“account\_movement\_post”)  
.post("/XXXXXXX/gatling-poc/demo/movement/account")  
.extraInfoExtractor(extraInfo =\> List(extraInfo.response.statusCode.get))  
.body(StringBody("""{  
“movementId”: “m0001”,  
“accountId”: “a0001”,  
“amount”: 2000,  
“movementDate”: “2019-02-26T09:34:50.301Z”,  
“counterparty”: “c0001”  
}""")))

.exec(http(“account\_movement\_get”)  
.get("/XXXXXXX/gatling-poc/demo/movement/account/m0001")  
)  
setUp(scn.inject(atOnceUsers(1)).protocols(httpProtocol))  
}

Error

C:\Sopra Project\Tools\gatling-charts-highcharts-bundle-3.0.3\bin\>gatling.bat -s cloudnative.cloudnativems  
GATLING\_HOME is set to “C:\Sopra Project\Tools\gatling-charts-highcharts-bundle-3.0.3”  
JAVA = ““C:\Program Files\Java\jdk1.8.0\_201\bin\java.exe””  
11:56:14.849 [ERROR] i.g.c.ZincCompiler$ - C:\Sopra Project\Tools\gatling-charts-highcharts-bundle-3.0.3\user-files\simulations\cloudnative\cloudnativems.scala:25:8: value extraInfoExtractor is not a member of io.gatling.http.request.builder.HttpRequestBuilder  
possible cause: maybe a semicolon is missing before `value extraInfoExtractor’?  
.extraInfoExtractor(extraInfo =\> List(extraInfo.response.statusCode.get))  
^  
11:56:15.190 [ERROR] i.g.c.ZincCompiler$ - one error found  
11:56:15.193 [ERROR] i.g.c.ZincCompiler$ - Compilation crashed  
sbt.internal.inc.CompileFailed: null

---

<div class="post-metadata">

**Author:** ![G\_Madhana\_Mohana\_Red](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@G\_Madhana\_Mohana\_Red](https://community.gatling.io/u/G_Madhana_Mohana_Red)\
**Post date:** [March 29, 2019, 4:04am UTC](https://community.gatling.io/t/cannot-implement-extrainfoextractor-in-gatling-script/4887/2 "2019-03-29T04:04:03Z")

</div>

- `extraInfoExtractor` was dropped as it wasn’t used in any Gatling component in gatling 3.0.3.  
Please see the migration guide [https://gatling.io/docs/current/migration\_guides/2.3-to-3.0/](https://gatling.io/docs/current/migration_guides/2.3-to-3.0/)

---

<div class="post-metadata">

**Author:** ![Murthy\_N](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Murthy\_N](https://community.gatling.io/u/Murthy_N)\
**Post date:** [May 12, 2019, 7:52am UTC](https://community.gatling.io/t/cannot-implement-extrainfoextractor-in-gatling-script/4887/3 "2019-05-12T07:52:10Z")

</div>

Hi madhanamohana,

do you have any sample on whats available in Gatling 3.0 instead of extraInfoExtractor. Basiccally I need to save the excel which gets downloaded, how can we achieve that?

Thanks in advance,  
Murthy
