Getting type mismatch error

Hi,

I am getting type mismatch for below request.
Not sure what is wrong

exec(http(“batch_reports_after_login”)
.post("/service/batch/report")
//.headers(headers_2)
.body(RawFileBody(“MasterData_0002_request.txt”)),
http(“request_3”)
.post("/images/background")
.check(status.is(500)),
http(“names_state_reports”)
.post("/service/batch/report")
//.headers(headers_4)
.body(RawFileBody(“MasterData_0004_request.txt”)))
.pause(12)

Errors:-

type mismatch;
found : io.gatling.http.request.builder.HttpRequestBuilder
required: io.gatling.core.structure.ChainBuilder
16:37:15.798 [ERROR] i.g.c.ZincCompiler$ - .body(RawFileBody(“MasterData_0002_request.txt”)),
16:37:15.800 [ERROR] i.g.c.ZincCompiler$ - ^

type mismatch;
found : io.gatling.http.request.builder.HttpRequestBuilder
required: io.gatling.core.structure.ChainBuilder
16:37:15.807 [ERROR] i.g.c.ZincCompiler$ - .check(status.is(500)),

Try something like below:

`
val chain1 = exec(http(“batch_reports_after_login”)
.post("/service/batch/report")
//.body(RawFileBody(“MasterData_0002_request.txt”))
)

.exec(http(“request_3”)
.post("/images/background")
.check(status.is(500)))

.exec(http(“names_state_reports”)
.post("/service/batch/report")
//.body(RawFileBody(“MasterData_0004_request.txt”))
)

val scn = scenario(“Firefox”)
.exec(chain1)

`

http://gatling.io/docs/1.5.6/user_documentation/reference/structure_elements.html