I have specific task.
During scenario I’m creating a new object, and unfortunatly, server doesn’t send back ID of created object. That’s why I have to execute usual SQL query to get ID of this object.
I know about gatling - jdbc tool and I has write the code for SQL selection
`
val technic_root_id = exec(jdbc("selection").select("technic_root_id").from("ods_req_car.technic_request").where("id = ${car_request_id}"))
`
In scenarion I call it through this exec:
`
.exec(Technic.viewTechnicCard(Technic.technic_root_id.toString))
`
In output log I see the following
`
GET http://server.host/api/tech/ChainBuilder(List(JdbcSelectionWithWhereActionBuilder(<function1>,<function1>,<function1>,io.gatling.core.session.el.ElCompiler$$$Lambda$338/879423823@6464ef69)))?loadTree=true
`
Seems like this is not what I want. This is not ID of my object after tech/ part of URL.
Please help, how can I execute SQL query during scenario correct ?